/* Learner pages (from the booking SMS): phone-first, InFocus-style hero and card in YRT colours. */
:root {
  --ink: #30302E; --text: #2F2F30; --muted: #6E6569; --line: #E7E0DA; --cream: #FAF6F3;
  --brand: #A03A26; --brand-dark: #7E2C1C; --brand-soft: rgba(160, 58, 38, .09);
  --ok: #1F7A4D; --ok-soft: #E7F4EC; --warn: #8A5A00; --warn-soft: #FFF4DB; --err: #B3261E; --err-soft: #FDECEA;
  --radius: 20px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--text); font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--brand); }
h1, h2, h3 { color: var(--ink); letter-spacing: -.015em; }
h2 { font-size: 1.4rem; margin: 0 0 .35rem; }
h3 { font-size: 1.05rem; margin: 1.25rem 0 .4rem; }
.lead { color: var(--muted); margin: 0 0 1rem; }
.small { font-size: .85rem; color: var(--muted); }
.center { text-align: center; }
.d-block { display: block; margin: .5rem auto 0; }
.mb-1 { margin-bottom: .25rem !important; }

.hero {
  background: radial-gradient(120% 90% at 0 0, rgba(243, 164, 107, .20), transparent 55%),
              radial-gradient(80% 80% at 100% 100%, rgba(160, 58, 38, .55), transparent 60%), var(--ink);
  color: #fff; padding: 22px 16px 92px;
}
.hero-inner { max-width: 600px; margin: 0 auto; }
.logo { height: 38px; display: block; margin-bottom: 18px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: #f3b48c; margin: 0 0 .25rem; }
.hero h1 { color: #fff; font-size: 1.55rem; line-height: 1.2; margin: 0 0 .6rem; }
.meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); color: #fff; padding: .2rem .65rem; border-radius: 99px; font-size: .8rem; font-weight: 600; }

.card { max-width: 600px; margin: -64px auto 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
        padding: 24px 20px 28px; box-shadow: 0 10px 40px rgba(48, 48, 46, .10); position: relative; animation: rise .35s ease; }
@media (max-width: 640px) { .card { margin: -64px 12px 0; } }
@keyframes rise { from { transform: translateY(8px); } to { transform: none; } }

.progress { display: flex; gap: 6px; margin-bottom: 6px; }
.progress span { flex: 1; height: 5px; border-radius: 5px; background: var(--line); }
.progress span.on { background: var(--brand); }
.progress-labels { display: flex; justify-content: space-between; font-size: .68rem; color: var(--muted); font-weight: 600; margin-bottom: 18px; text-transform: uppercase; letter-spacing: .04em; }
.progress-labels span { flex: 1; text-align: center; }
.progress-labels span:first-child { text-align: left; } .progress-labels span:last-child { text-align: right; }

.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; border: 0; border-radius: 999px;
       background: var(--brand); color: #fff; font: 600 1rem/1 inherit; font-family: inherit; cursor: pointer; text-decoration: none; margin: .5rem 0;
       transition: background .2s, transform .1s; }
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn:active { transform: scale(.99); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-secondary { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-secondary:hover { background: var(--cream); color: var(--ink); }
.btn-link { background: none; border: 0; color: var(--brand); font: 600 .9rem inherit; font-family: inherit; cursor: pointer; padding: .5rem; }
.btn-link:disabled { color: var(--muted); cursor: default; }

.notice { border-radius: 12px; padding: .75rem .9rem; margin-bottom: 1rem; font-weight: 600; font-size: .92rem; }
.notice.bad { background: var(--err-soft); color: var(--err); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.form-error { background: var(--err-soft); color: var(--err); border-radius: 12px; padding: .75rem .9rem; margin-bottom: 1rem; font-size: .9rem; }

.booking { background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: .85rem 1rem; margin: .75rem 0 1rem; display: grid; gap: .5rem; }
.booking .k { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--muted); }
.booking small { color: var(--muted); }
.pill-note { display: inline-block; background: var(--ok-soft); color: var(--ok); font-size: .8rem; font-weight: 700; border-radius: 99px; padding: .2rem .7rem; margin-bottom: .75rem; }

/* OTP: one real input drawn as six boxes */
.otp { position: relative; display: flex; gap: 8px; justify-content: center; margin: 1rem 0 1.25rem; }
.otp input { position: absolute; inset: 0; opacity: 0; font-size: 16px; width: 100%; height: 100%; caret-color: transparent; }
.otp-box { flex: 1; max-width: 56px; height: 62px; border: 1.5px solid var(--line); border-radius: 12px; display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; color: var(--ink); background: #fff; transition: .15s; }
.otp.focused .otp-box.current { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.otp-box.filled { border-color: #cdbfb6; }
.alt-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem; }
.alt-actions form { margin: 0; }

/* Demo SMS "notification" */
.sms-toast { position: fixed; top: 10px; left: 50%; transform: translate(-50%, -140%); width: min(420px, calc(100% - 20px)); z-index: 50;
             background: rgba(250, 250, 250, .97); backdrop-filter: blur(10px); border-radius: 18px; padding: .7rem .95rem .75rem;
             box-shadow: 0 12px 40px rgba(0, 0, 0, .25); animation: drop 6s ease forwards; cursor: pointer; }
.sms-toast b { display: block; color: #111; }
.sms-toast p { margin: 0; color: #222; font-size: .95rem; }
.sms-toast small { color: #8a6a00; font-size: .72rem; }
.sms-app { font-size: .7rem; color: #777; letter-spacing: .05em; display: flex; align-items: center; gap: .35rem; margin-bottom: .1rem; }
.sms-when { margin-left: auto; letter-spacing: 0; }
@keyframes drop { 0% { transform: translate(-50%, -140%); } 8%, 100% { transform: translate(-50%, 0); } }

/* Review summary */
.summary section { border: 1px solid var(--line); border-radius: 14px; padding: .75rem .95rem; margin-bottom: .7rem; }
.summary-head { display: flex; justify-content: space-between; align-items: baseline; }
.summary h3 { margin: 0 0 .4rem; font-size: .95rem; }
.summary-head a { font-weight: 700; font-size: .85rem; }
.summary dl { margin: 0; display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: .2rem .75rem; font-size: .9rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; color: var(--ink); font-weight: 500; word-break: break-word; }

/* Form */
.steps-head { position: sticky; top: 0; background: #fff; z-index: 5; padding: .5rem 0 .75rem; margin: -.5rem 0 .5rem; }
.progress-seg { display: flex; gap: 4px; }
.progress-seg span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background .25s; }
.progress-seg span.on { background: var(--brand); }
.step-count { font-size: .8rem; color: var(--muted); margin-top: .4rem; }
.fstep h2 { font-size: 1.25rem; }
.field { margin-bottom: 1rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; color: var(--ink); padding: 0; }
.opt { color: var(--muted); font-weight: 400; }
input[type=text], input[type=email], input[type=tel], input[type=date], select, textarea {
  width: 100%; font: 16px/1.4 inherit; font-family: inherit; color: var(--text); border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px;
  background: #fff; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236E6569' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") right 14px center no-repeat; padding-right: 36px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
input:disabled { background: #f5f2ef; color: #aaa; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); }
.hint { display: block; color: var(--muted); font-size: .8rem; margin-top: .3rem; }
.err { display: block; color: var(--err); font-size: .82rem; font-weight: 600; margin-top: .25rem; }
.err:empty { display: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .75rem; }
.grid-13 { display: grid; grid-template-columns: 1fr 3fr; gap: 0 .75rem; }
@media (max-width: 480px) { .grid-2 { grid-template-columns: 1fr; } }
.field-group { margin-bottom: 1rem; }
.field-group .field { margin-bottom: .35rem; }
.check { display: flex; align-items: flex-start; gap: .6rem; font-size: .92rem; cursor: pointer; margin: .25rem 0 .75rem; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; margin-top: 2px; }
.check.big { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.check.big:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }

.choice-grid { display: grid; gap: 8px; }
.cols-2 .choice-grid, .choice-grid.cols-2 { grid-template-columns: 1fr 1fr; }
label.choice, .field label.choice { display: flex; align-items: center; gap: 11px; padding: 13px 15px; min-height: 50px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 500 !important; margin: 0 !important; transition: .15s; background: #fff; }
.choice input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; margin: 0; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); font-weight: 600 !important; }
.choice:hover { border-color: #d3c4bb; }

.toggle-pill { display: flex; background: #f3eee9; border-radius: 99px; padding: 4px; margin-bottom: 1rem; }
.toggle-pill button { flex: 1; border: 0; background: transparent; border-radius: 99px; padding: .55rem; font: 600 .88rem inherit; font-family: inherit; color: var(--muted); cursor: pointer; }
.toggle-pill button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.addr-lookup { position: relative; }
.addr-results { border: 1px solid var(--line); border-radius: 12px; margin-top: 4px; overflow: hidden; }
.addr-results:empty { display: none; }
.addr-results button { display: block; width: 100%; text-align: left; border: 0; background: #fff; padding: 12px 14px; font: 15px inherit; font-family: inherit; cursor: pointer; border-bottom: 1px solid var(--line); }
.addr-results button:last-child { border-bottom: 0; }
.addr-results button:hover, .addr-results button:focus { background: var(--brand-soft); outline: none; }
.postal h3 { margin-top: .5rem; }

.qual-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.qual-row { display: flex; gap: .75rem; align-items: center; padding: .5rem .75rem; border-bottom: 1px solid var(--line); font-size: .9rem; }
.qual-row:last-child { border-bottom: 0; }
.qual-row span { flex: 1; }
.qual-row select { width: 46%; padding: 9px 30px 9px 10px; font-size: 15px; }
.usi-box { background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: .9rem; margin-top: .5rem; }
.usi-box input { text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.usi-status { font-size: .85rem; font-weight: 700; margin: .1rem 0 .5rem; min-height: 1.2em; }
.usi-status.ok { color: var(--ok); } .usi-status.bad { color: var(--err); }

.declaration-box { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: .75rem .95rem; background: var(--cream); font-size: .88rem; margin-bottom: .9rem; }
.declaration-box h4 { margin: .25rem 0 .25rem; font-size: .92rem; color: var(--ink); }
.declaration-box p { margin: 0 0 .6rem; }
.sig-box { border: 2px dashed #cfc1b8; border-radius: 14px; background: #fff; height: 190px; touch-action: none; }
.sig-box canvas { width: 100%; height: 100%; display: block; border-radius: 12px; }
.field.invalid .sig-box { border-color: var(--err); }

.form-nav { display: flex; gap: .75rem; margin-top: 1.25rem; }
.form-nav .btn { margin: 0; }
.form-nav .btn-secondary { flex: 0 0 34%; }
@media (max-width: 380px) { .form-nav { flex-direction: column-reverse; } .form-nav .btn-secondary { flex: auto; } }

/* LLND quiz */
.ticks { padding-left: 0; list-style: none; margin: 0 0 1.25rem; }
.ticks li { padding: .35rem 0 .35rem 1.8rem; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: .2rem; color: var(--ok); font-weight: 800; }
.q-progress { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem; font-size: .8rem; color: var(--muted); font-weight: 600; }
.q-bar { flex: 1; height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; }
.q-bar i { display: block; height: 100%; background: var(--brand); width: 0; transition: width .3s; }
.q-text { font-size: 1.1rem; line-height: 1.4; margin: 0 0 1rem; }
.passage { background: #FFFBEA; border: 2px solid #E9C46A; border-radius: 10px; padding: .75rem .95rem; margin-bottom: 1rem; font-size: .92rem; }
.passage b { display: block; letter-spacing: .08em; color: #7a5600; margin-bottom: .25rem; }
.passage p { margin: 0 0 .3rem; }
.num-answer { display: flex; align-items: center; gap: .75rem; }
.num-answer input { max-width: 140px; font-size: 1.3rem; font-weight: 700; text-align: center; }
.num-answer span { color: var(--muted); font-weight: 600; }
.q-err { color: var(--err); font-weight: 600; font-size: .88rem; }
.q { animation: rise .25s ease; }

.center-msg { text-align: center; }
.big-icon { font-size: 2.6rem; margin-bottom: .25rem; }
.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 1.25rem 1rem 2rem; }
.foot .sep { margin: 0 .35rem; }

.busy { position: fixed; inset: 0; background: rgba(250, 246, 243, .82); backdrop-filter: blur(3px); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 100; font-weight: 600; color: var(--ink); }
.busy[hidden] { display: none; }
.spinner { width: 42px; height: 42px; border: 4px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin-bottom: .75rem; }
@keyframes spin { to { transform: rotate(360deg); } }
