/* IEL public forms: the house cloud card look (iel-doc-studio styles/sop.css and the cloud
   cards in docs/guides/*-cards.css), mobile first. Local fonts only. */
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('/static/fonts/AtkinsonHyperlegible-Regular.ttf'); font-weight: 400; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('/static/fonts/AtkinsonHyperlegible-Bold.ttf'); font-weight: 700; }
@font-face { font-family: 'Baloo 2'; src: url('/static/fonts/Baloo2-Bold.ttf'); font-weight: 700; }

:root {
  --navy: #14406b; --ink: #2b3640; --muted: #5f6b75; --line: #d9e3ee; --green: #3aa935; --link: #3f6d99;
  --sky: #e3effa; --mint: #def3e6; --lemon: #fbf3cf; --peach: #fde4d4; --lilac: #ebe6f9; --rose: #fbe5e3;
  --red: #b5564e; --bg: #f6f9fc;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Atkinson Hyperlegible', 'Segoe UI', Arial, sans-serif; font-size: 18px; line-height: 1.5;
  color: var(--ink); background: var(--bg); }
h1, h2, h3 { font-family: 'Baloo 2', 'Atkinson Hyperlegible', sans-serif; color: var(--navy); line-height: 1.15; margin: 0 0 8px; }
h1 { font-size: 30px; } h2 { font-size: 24px; margin-top: 4px; } h3 { font-size: 20px; }
p { margin: 0 0 10px; }
a { color: var(--link); }
.ic { width: 26px; height: 26px; vertical-align: -6px; margin-right: 8px; }
.ic.big { width: 32px; height: 32px; vertical-align: -7px; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.top .brand img { height: 40px; display: block; }
.eyebrow { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--navy);
  background: var(--sky); padding: 3px 10px; border-radius: 20px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 16px 16px 40px; }
.foot { max-width: 720px; margin: 0 auto; padding: 16px; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); }
.lead { font-size: 19px; color: #3f4a52; }
.help { color: var(--muted); font-size: 16px; margin: 0 0 8px; }
.help.small { font-size: 14px; }
.req { color: var(--red); }

/* cloud cards */
.cloud { position: relative; z-index: 0; margin: 28px 0 14px; padding: 16px 18px 14px; border-radius: 26px;
  box-shadow: 0 7px 18px rgba(20,64,107,0.10); background: var(--sky); }
.cloud::before { content: ""; position: absolute; z-index: -1; top: -12px; left: 20px; width: 40px; height: 40px; border-radius: 50%; background: inherit; }
.cloud::after  { content: ""; position: absolute; z-index: -1; top: -20px; left: 48px; width: 60px; height: 60px; border-radius: 50%; background: inherit; }
.cloud .puff   { position: absolute; z-index: -1; top: -10px; right: 28px; width: 34px; height: 34px; border-radius: 50%; display: block; background: inherit; }
.cloud.sky { background: var(--sky); } .cloud.mint { background: var(--mint); } .cloud.lemon { background: var(--lemon); }
.cloud.peach { background: var(--peach); } .cloud.lilac { background: var(--lilac); } .cloud.rose { background: var(--rose); }
.head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.chip span { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(20,64,107,0.12); align-items: center; justify-content: center; }
.chip img { width: 22px; height: 22px; margin: 0; }
.head .t h3 { margin: 0; } .head .t .sub { margin: 0; color: var(--muted); font-size: 15px; }
.cards { display: grid; gap: 8px; }
.card-link { display: block; text-decoration: none; color: var(--ink); }
.card-link p { margin: 0; }

/* scene art: the day centre guide's own pictures */
.hero-row { display: flex; gap: 14px; align-items: center; }
.hero-row > div { flex: 1; }
.hero { width: 120px; max-width: 32%; height: auto; flex: 0 0 auto; }
.card-link .art { width: 72px; height: auto; float: right; margin: 0 0 6px 10px; }

/* the form */
.form { background: #fff; border-radius: 22px; padding: 18px 16px 24px; box-shadow: 0 7px 18px rgba(20,64,107,0.08); }
.formhead { margin-bottom: 10px; }
.progress { height: 8px; background: var(--line); border-radius: 8px; overflow: hidden; margin: 8px 0 18px; }
.progress .bar { height: 100%; width: 0; background: var(--green); transition: width .3s; }
.step[hidden] { display: none; }
.step { animation: in .25s ease; }
@keyframes in { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: none; } }
.field { margin: 0 0 18px; }
.field[hidden] { display: none; }
.lbl { display: block; font-weight: 700; color: var(--navy); margin-bottom: 4px; font-size: 18px; }
.in { width: 100%; font: inherit; font-size: 18px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); }
.in:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20,64,107,0.15); }
textarea.in { min-height: 90px; resize: vertical; }
.in.file { padding: 12px; background: var(--sky); border-style: dashed; border-color: var(--navy); cursor: pointer; }
.in.file::file-selector-button { font: inherit; font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 16px; padding: 8px 14px; border-radius: 20px; border: 0; background: var(--navy); color: #fff; margin-right: 10px; cursor: pointer; }
.field.bad .in { border-color: var(--red); }
.err { color: var(--red); font-weight: 700; margin: 6px 0 0; font-size: 16px; }
.err.big { font-size: 17px; margin-top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* choices: big tap targets */
.opts { display: grid; gap: 8px; }
.opt { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt .box { flex: 0 0 26px; width: 26px; height: 26px; border: 2px solid var(--navy); border-radius: 8px; margin-top: 2px; position: relative; background: #fff; }
.opt input[type=radio] + .box { border-radius: 50%; }
.opt input:checked + .box { background: var(--green); border-color: var(--green); }
.opt input:checked + .box::after { content: ""; position: absolute; left: 8px; top: 3px; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.opt input:focus-visible + .box { box-shadow: 0 0 0 3px rgba(20,64,107,0.25); }
.opt .w { flex: 1; } .opt .w small { display: block; color: var(--muted); font-size: 15px; }
.opt:has(input:checked) { border-color: var(--green); background: #f3faf3; }
.field.bad .opt { border-color: var(--red); }

/* consents */
.consent { padding-top: 14px; }
.consent .means p { margin: 0 0 6px; }
.consent .ifno { color: var(--muted); font-size: 16px; }
.consent .opts { grid-template-columns: 1fr 1fr; margin-top: 8px; }
.field.info .note { background: var(--lemon); border-radius: 18px; padding: 12px 14px; }
.field.info .note p { margin: 0 0 4px; }
.field.tick .opt { background: var(--mint); border-color: var(--mint); }

/* review */
.review dl { margin: 0; }
.review .rv { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.review .rv dt { color: var(--muted); font-size: 15px; flex: 1; }
.review .rv dd { margin: 0; font-weight: 700; text-align: right; flex: 1; }
.review h3 { margin-top: 16px; }

/* nav */
.nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 8px; }
.btn { font: inherit; font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 20px; padding: 12px 22px; border-radius: 30px; border: 2px solid var(--navy);
  background: var(--navy); color: #fff; cursor: pointer; flex: 1; }
.btn.ghost { background: #fff; color: var(--navy); flex: 0 0 auto; }
.btn.go { background: var(--green); border-color: var(--green); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn:focus-visible { outline: 3px solid rgba(20,64,107,0.35); outline-offset: 2px; }
#signbox docuseal-form { display: block; min-height: 70vh; }
.done p { margin: 0 0 6px; }

@media (min-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 28px 20px 50px; }
  .form { padding: 28px 28px 30px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .consent .opts { max-width: 420px; }
}
@media (prefers-reduced-motion: reduce) { .step { animation: none; } .progress .bar { transition: none; } }
