/* =====================================================================
   Ads landing + booking flow stylesheet — "Slate & Forest" design system.
   Retrofitted from the external design (BookTheoryTests Funnel.html).
   Forest green = trust anchor, orange = action. Hanken Grotesk + JetBrains Mono.
   Single swap-point; targets the fixed class-name contract. Mobile-first.
   ===================================================================== */

:root {
    --page: #eef2f0;
    --card: #ffffff;
    --ink: #14171d;
    --muted: #59616e;
    --line: #e3e7ec;
    --brand: #f39421;      /* orange */
    --cta: #f39421;        /* action colour */
    --cta-hover: #e5851a;
    --trust: #2f5d4a;      /* forest green */
    --trust-hover: #274e3e;
    --trust-tint: #e7efe9;
    --ok: #2f7d4f;
    --err: #c0392b;
    --ink-soft: #2a2f38;

    --font: 'Hanken Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

    --r-sm: 8px;
    --r: 12px;
    --r-lg: 16px;
    --shadow-card: 0 1px 3px rgba(20, 23, 29, .05), 0 12px 30px -18px rgba(20, 23, 29, .18);
    --shadow-panel: 0 24px 60px -34px rgba(10, 15, 25, .45);
    --maxw: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 20px; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--page);
    line-height: 1.55;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--trust); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.015em; color: var(--ink); }
h1 { font-size: 2.6rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1rem; }
strong { font-weight: 700; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.text-accent { color: var(--brand); }
.text-blue { color: var(--trust); }
.small { font-size: .82rem; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 52px 0; }
.section.alt { background: var(--card); }
.mt-sm { margin-top: 8px; } .mt-md { margin-top: 16px; } .mt-lg { margin-top: 30px; }
.mb-sm { margin-bottom: 8px; } .mb-md { margin-bottom: 16px; }

/* ---------- Header ---------- */
/* Not sticky: the navbar scrolls away with the page. */
.ads-header { background: var(--card); border-bottom: 1px solid var(--line); }
.ads-header .inner { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.ads-logo { display: flex; align-items: center; }
.ads-logo:hover { text-decoration: none; }
.ads-logo img { height: 34px; width: auto; display: block; }
@media (max-width: 520px) { .ads-logo img { height: 28px; } }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: .9rem; }
.header-trust { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 600; }
.header-trust .stars { color: var(--brand); letter-spacing: 1px; }
.header-link { color: var(--muted); font-weight: 600; }
.header-link:hover { color: var(--ink); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit; font-weight: 700; font-size: 1.02rem;
    padding: 15px 26px; border-radius: 11px; border: 0; cursor: pointer;
    text-decoration: none; line-height: 1.2; transition: background .15s, transform .04s, box-shadow .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(47, 93, 74, .4); outline-offset: 2px; }
/* Primary = action orange with dark ink text (per design) */
.btn-primary { background: var(--cta); color: var(--ink); }
.btn-primary:hover { background: var(--cta-hover); color: var(--ink); }
/* Blue slot in the contract = forest green (Search, Selected, Log in to training) */
.btn-blue { background: var(--trust); color: #fff; }
.btn-blue:hover { background: var(--trust-hover); color: #fff; }
.btn-ghost { background: #fff; color: var(--trust); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--trust); }
.btn-lg { padding: 17px 30px; font-size: 1.08rem; width: 100%; }
/* Pay CTA: deliberately the largest button in the funnel. */
.btn-pay { padding: 22px 30px; font-size: 1.25rem; width: 100%; }
.btn-block { width: 100%; }
.btn[disabled], .btn.loading { opacity: .7; pointer-events: none; }
/* Subtle text-link button for back / edit (matches the design's restrained secondary nav) */
.btn-link { display: inline-block; background: none; border: 0; color: var(--trust); font-family: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; padding: 10px 8px; text-decoration: none; }
.btn-link:hover { text-decoration: underline; color: var(--trust-hover); }
/* Tighter secondary links inside funnel panels (e.g. Change test centre / search toggles) */
.pref-card > .btn-link { padding: 4px 2px; }

/* ---------- Cards / grid ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-card); padding: 24px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Pills ---------- */
.pill {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--trust-tint); color: var(--trust); font-weight: 700;
    font-size: .82rem; border-radius: 999px; padding: 7px 15px; margin-bottom: 18px;
}

/* ---------- Hero + booking panel ---------- */
.hero { background: var(--page); padding: 26px 0 28px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; align-items: start; }
.hero h1 { font-size: 3rem; margin-bottom: 14px; }
.hero-single { max-width: 680px; }
.hero h1 a { color: inherit; text-decoration: none; }
.hero h1 a:hover { text-decoration: underline; }
.hero-sub { font-size: 1.14rem; color: var(--muted); margin-bottom: 22px; }
.benefit-list { list-style: none; padding: 0; margin: 0 0 20px; }
.benefit-list li { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; font-weight: 500; }
.benefit-list a { color: var(--ink); text-decoration: none; }
.benefit-list .tick { flex: 0 0 auto; color: var(--trust); font-size: 1rem; font-weight: 800; margin-top: 3px; }

.booking-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-panel); padding: 26px; }
.booking-panel h2 { font-size: 1.15rem; margin-bottom: 16px; }
.booking-panel .panel-sub { color: var(--muted); font-size: .9rem; margin: -10px 0 16px; }
.field { margin-bottom: 16px; }
.funnel-compact .field { margin-bottom: 10px; }
/* Grid fields rely on the grid gap only (no own margin), so stacked mobile spacing matches the other fields */
.funnel-compact .grid-2 { gap: 10px; margin-bottom: 10px; }
.funnel-compact .grid-2 .field { margin-bottom: 0; }

/* Each preference (time / language / voiceover) in its own tappable panel */
.pref-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-card); padding: 14px 16px; }
/* Completed-section tick, top right of the panel. */
.pref-tick { position: absolute; top: 12px; right: 14px; color: var(--ok); font-size: 1.1rem; display: none; }
.pref-card.is-complete > .pref-tick { display: block; }
.pref-card > .field-group-label { padding-right: 26px; }

/* Inline availability calendar (preferred dates / ranges) */
.cal { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-title { font-weight: 800; }
.cal-nav { background: none; border: 0; cursor: pointer; font-size: 1.3rem; line-height: 1; color: var(--trust); padding: 4px 12px; border-radius: 8px; }
.cal-nav:hover { background: var(--trust-tint); }
.cal-nav[disabled] { color: var(--line); cursor: default; background: none; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: .68rem; color: var(--muted); font-weight: 700; padding: 2px 0; }
.cal-day { text-align: center; padding: 9px 0; border-radius: 8px; cursor: pointer; font-size: .9rem; font-weight: 600; -webkit-user-select: none; user-select: none; }
.cal-day.empty { visibility: hidden; cursor: default; }
.cal-day.disabled { color: #c8cdd4; cursor: default; }
.cal-day.available { background: var(--trust-tint); color: var(--trust); }
.cal-day.available:hover { background: #cfe3da; }
.cal-day.pending { outline: 2px solid var(--trust); outline-offset: -2px; }
.cal-day.in-range { background: var(--trust); color: #fff; }
.cal-legend { font-size: .78rem; color: var(--muted); margin: 0 0 10px; }
.cal-note { font-size: .72rem; color: var(--muted); margin: 10px 0 0; }
/* Time-of-day options connected to the calendar within the same availability panel */
.time-sub { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
/* Plain radio / checkbox lists, as used on the legacy funnel, rather than graphical toggles. */
.centre-list-heading { font-size: 1.1rem; font-weight: 800; margin: 0 0 12px; }
/* Per-field completion ticks, sat on the label line at the right of each field. */
.field-check { position: relative; }
.field-check > .field-tick { position: absolute; top: 0; right: 0; color: var(--ok); font-size: 1rem; display: none; }
.field-check.is-complete > .field-tick { display: block; }
/* First/last name stay side by side at every width (beats the <=520px .grid-2 collapse on specificity). */
.grid.name-row { grid-template-columns: repeat(2, 1fr); }
.radio-list { display: grid; gap: 9px; }
.opt-row { display: flex; align-items: center; gap: 9px; }
.opt-row input { width: 18px; height: 18px; accent-color: var(--trust); margin: 0; flex: 0 0 auto; }
.opt-row label { margin: 0; font-size: .92rem; font-weight: 500; cursor: pointer; }
.sub-label { display: block; font-size: .92rem; font-weight: 600; margin-bottom: 6px; }
textarea.input { min-height: 92px; resize: vertical; font-family: inherit; }
.range-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.range-chip { background: var(--trust); color: #fff; border-radius: 20px; padding: 6px 8px 6px 14px; font-size: .82rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.range-chip button { background: rgba(255,255,255,.25); border: 0; color: #fff; cursor: pointer; font-weight: 800; line-height: 1; width: 20px; height: 20px; border-radius: 50%; }

/* Belt-and-braces: hide datalist options on browsers that don't support <datalist>
   (unsupported browsers skip the UA display:none and would otherwise dump the options as text). */
datalist { display: none; }
.field > label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 7px; color: var(--ink-soft); }
.input, select.input {
    width: 100%; font-family: inherit; font-size: 1.05rem; color: var(--ink);
    padding: 15px 15px; border: 1.5px solid var(--line); border-radius: 11px;
    background: #fff; -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: #9aa6b2; }
.input:focus { outline: none; border-color: var(--trust); box-shadow: 0 0 0 3px rgba(47, 93, 74, .14); }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2359616e' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 36px; }

/* Segmented control (test-type toggle) */
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--page); padding: 5px; border-radius: 12px; }
.segmented label {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px; border-radius: 9px; font-weight: 700; cursor: pointer;
    color: var(--muted); text-align: center; transition: background .15s, color .15s;
}
.segmented input { position: absolute; opacity: 0; width: 0; height: 0; }
.segmented input:checked + label { background: var(--trust); color: #fff; box-shadow: 0 6px 16px -10px rgba(47, 93, 74, .8); }
.segmented input:focus-visible + label { outline: 2px solid var(--trust); outline-offset: 2px; }

.reassure { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: .84rem; color: var(--muted); align-items: center; }
.reassure span { display: inline-flex; align-items: center; gap: 5px; }
.reassure .tick { color: var(--ok); font-weight: 800; }

/* Compliance note in monospace, per design */
.compliance-note {
    font-family: var(--mono); font-size: .74rem; line-height: 1.5; color: var(--muted);
    padding: 12px 2px 0; margin-top: 4px;
}
.compliance-note a { color: var(--trust); text-decoration: underline; }

/* ---------- Trust row (full-width white band) ---------- */
.trust-row { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-row .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 24px; padding: 20px; }
.trust-row .item { display: flex; align-items: center; gap: 12px; }
.trust-row .ti-icon { font-size: 19px; line-height: 1; width: 22px; text-align: center; flex: 0 0 auto; }
.trust-row .item strong { display: block; color: var(--ink); font-weight: 700; font-size: .92rem; }
.trust-row .ti-sub { color: var(--muted); font-size: .82rem; }
.trust-row .stars { color: var(--brand); }

/* Eyebrow label above section headings */
.eyebrow { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 700; margin-bottom: 8px; }

/* ---------- What's included (numbered) ---------- */
.inc-card { text-align: left; }
.inc-card .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; font-weight: 800; margin-bottom: 14px; background: var(--trust-tint); color: var(--trust); }
.inc-card:nth-child(2n) .ic { background: #fdecd6; color: var(--brand); }
.inc-card h3 { margin-bottom: 5px; font-size: 1.08rem; }
.inc-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Steps */
.steps { counter-reset: step; }
.step-item { display: flex; gap: 14px; align-items: flex-start; }
.step-item .num { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: var(--trust-tint); color: var(--trust); font-weight: 800; display: grid; place-items: center; }

/* ---------- Transparent price (two columns; green panel, orange total) ---------- */
.price-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.price-2col .price-text h2 { margin-bottom: 12px; }
.price-panel { max-width: none; margin: 0; background: var(--trust); color: #fff; border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 28px 30px; }
.price-panel .price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.price-panel .price-row .lbl { color: rgba(255, 255, 255, .9); flex: 1; }
.price-panel .price-row > span:last-child { white-space: nowrap; }
.price-panel .price-row.total { border-bottom: 0; border-top: 1px solid rgba(255, 255, 255, .22); margin-top: 6px; padding-top: 18px; font-weight: 800; font-size: 1.15rem; align-items: baseline; }
.price-panel .price-row.total .amt { color: var(--cta); font-size: 2rem; font-weight: 800; }
.price-panel .disclosure { color: rgba(255, 255, 255, .8); font-size: .8rem; margin: 12px 0 0; }
.price-panel a { color: #fff; text-decoration: underline; }

/* ---------- How it works (orange numbered circles) ---------- */
.hiw-step { text-align: left; }
.hiw-num { width: 44px; height: 44px; border-radius: 50%; background: var(--cta); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 1.1rem; margin-bottom: 16px; }
.hiw-step h3 { font-size: 1.05rem; margin-bottom: 5px; }
.hiw-step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Support checkboxes (test details) */
.check-option { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; margin-bottom: 10px; cursor: pointer; }
.check-option input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--trust); flex: 0 0 auto; }
.check-option .co-title { font-weight: 700; }
.check-option .co-sub { color: var(--muted); font-size: .85rem; }

/* ---------- FAQ ---------- */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; padding: 4px 20px; box-shadow: var(--shadow-card); }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; font-size: 1.02rem; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--trust); font-weight: 800; font-size: 1.3rem; line-height: 1; flex: 0 0 auto; }
.faq details[open] summary::after { content: '\2212'; }
.faq details > p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* ---------- Footer (dark) ---------- */
.ads-footer { background: var(--ink); border-top: 0; padding: 26px 0; color: rgba(255, 255, 255, .7); font-size: .84rem; }
.ads-footer .container { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; }
.ads-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.ads-footer a:hover { text-decoration: underline; color: #fff; }

/* ---------- Funnel layout ---------- */
.funnel-bg { padding: 0 0 64px; }
.funnel-grid { display: grid; grid-template-columns: 1.5fr .85fr; gap: 30px; align-items: start; padding-top: 30px; }
.funnel-grid.no-sidebar { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
.funnel-main { background: transparent; border: 0; box-shadow: none; padding: 0; max-width: 720px; margin: 0 auto; }
.funnel-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; }
.funnel-sub { color: var(--muted); margin-bottom: 22px; }
.funnel-crumb { color: var(--muted); font-size: .9rem; font-weight: 600; margin-bottom: 12px; }
.funnel-crumb a { color: var(--trust); text-decoration: none; }
.funnel-crumb a:hover { text-decoration: underline; }
.field-group-label { display: block; font-weight: 700; font-size: 12pt; margin-bottom: 10px; }
/* Beats the `.field > label` rule above, which would otherwise win on specificity. */
.field > .field-group-label { font-size: 12pt; }

/* Progress bar (full-width white band) */
.progress-wrap { background: var(--card); border-bottom: 1px solid var(--line); }
/* Deliberately compact: visitors scroll straight past this, so it should not cost a screenful. */
.progress { display: flex; align-items: flex-start; max-width: var(--maxw); margin: 0 auto; padding: 7px 20px 8px; }
.progress .p-step { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 0 0 auto; width: 96px; }
.progress .p-dot { width: 20px; height: 20px; border-radius: 50%; background: #eef1f4; color: var(--muted); font-weight: 800; display: grid; place-items: center; font-size: .7rem; border: 1px solid var(--line); }
.progress .p-step.active .p-dot { background: var(--trust); color: #fff; border-color: var(--trust); }
.progress .p-step.done .p-dot { background: var(--trust); color: #fff; border-color: var(--trust); }
.progress .p-label { font-size: .72rem; color: var(--muted); font-weight: 600; }
.progress .p-step.active .p-label { color: var(--trust); }
.progress .p-line { flex: 1 1 auto; height: 2px; background: var(--line); margin: 10px -8px 0; }
.progress .p-line.done { background: var(--trust); }
/* Completed steps are clickable links back to earlier steps */
.progress a.p-step { text-decoration: none; color: inherit; }
.progress .p-step.clickable { cursor: pointer; }
.progress .p-step.clickable:hover .p-label { color: var(--trust); text-decoration: underline; }
.progress .p-step.clickable:hover .p-dot { box-shadow: 0 0 0 3px var(--trust-tint); }

/* Centre result cards */
.centre-card { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 12px; cursor: pointer; background: #fff; transition: border-color .12s, box-shadow .12s; }
.centre-card:hover { border-color: var(--trust); box-shadow: var(--shadow-card); }
.centre-card.selected, .centre-card:focus-within { border-color: var(--trust); box-shadow: 0 0 0 1px var(--trust); }
.centre-card .c-name { font-weight: 800; font-size: 1.05rem; }
.centre-card .c-badge { display: inline-block; vertical-align: middle; margin-left: 8px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--trust); background: var(--trust-tint); border-radius: 6px; padding: 2px 8px; }
.centre-card .c-addr { color: var(--muted); font-size: .88rem; }
.centre-card .c-select { margin-left: auto; color: var(--trust); background: #fff; border: 1.5px solid var(--line); font-weight: 700; font-size: .85rem; white-space: nowrap; padding: 9px 18px; border-radius: 9px; }
.centre-card:hover .c-select { border-color: var(--trust); }
.centre-card.selected .c-select { background: var(--trust); color: #fff; border-color: var(--trust); }

/* Inline postcode search (input + Search button) */
.search-row { display: flex; gap: 10px; margin-bottom: 8px; }
.search-row .input { flex: 1; }
.search-row .btn { flex: 0 0 auto; padding-left: 26px; padding-right: 26px; }

/* Tiles (vehicle / when / support) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { display: block; border: 2px solid var(--line); border-radius: var(--r); padding: 18px; cursor: pointer; font-weight: 700; background: #fff; text-align: left; transition: border-color .12s; }
.tiles > div { position: relative; }
.tiles input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.tile:hover { border-color: #c9d4cd; }
.tile.selected { border-color: var(--trust); }
.tile .t-icon { font-size: 24px; display: block; margin-bottom: 8px; }
.tile .t-desc { font-weight: 500; font-size: .82rem; color: var(--muted); display: block; margin-top: 2px; }

/* Sidebar summary (white card, green accents) */
.funnel-sidebar { position: sticky; top: 20px; }
.summary-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-card); padding: 24px; }
.summary-card h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.summary-list { list-style: none; padding: 0; margin: 14px 0 0; }
.summary-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: .95rem; }
.summary-list li .tick { display: none; }
.summary-list .hl { color: var(--ok); font-weight: 700; }
.summary-list .li-sub { display: block; font-size: .72rem; color: var(--muted); font-weight: 400; line-height: 1.4; margin-top: 3px; max-width: 30ch; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 16px; }
.summary-total .amt { font-size: 1.9rem; font-weight: 800; color: var(--trust); }
.summary-discount { color: var(--ok); font-size: .82rem; font-weight: 700; text-align: right; margin: 6px 0 0; }

/* Centered header (logo only) */
.ads-header .inner.centered { justify-content: center; }

/* Booking-package accordion (above the page content) — currently hidden on all steps (kept for later) */
.pkg-accordion { display: none; }
.pkg-accordion { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-card); margin: 0 auto 20px; max-width: 720px; overflow: hidden; }
.pkg-accordion > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 15px 18px; font-weight: 700; }
.pkg-accordion > summary::-webkit-details-marker { display: none; }
.pkg-accordion .pkg-chev { margin-left: 4px; color: var(--muted); font-size: .95rem; transition: transform .15s; }
.pkg-accordion[open] .pkg-chev { transform: rotate(180deg); }
.pkg-accordion .pkg-total { color: var(--trust); font-weight: 800; font-size: 1.1rem; margin-left: auto; }

/* Spacing between the step panel and the booking-package accordion / content */
.funnel-bg > .container { padding-top: 24px; }
.pkg-accordion .pkg-body { padding: 0 18px 16px; }
.pkg-accordion .summary-list { margin-top: 0; }
.summary-disclosure { font-family: var(--mono); font-size: .72rem; line-height: 1.5; color: var(--muted); margin-top: 14px; }
.summary-disclosure a { color: var(--trust); }
.review-quote { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-top: 16px; font-size: .88rem; box-shadow: var(--shadow-card); }
.review-quote .stars { color: var(--brand); }

/* Social proof band */
.social-proof { text-align: center; }
.sp-rating { display: inline-flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-card); padding: 14px 22px; }
.sp-rating .sp-score { font-size: 2.1rem; font-weight: 800; color: var(--ink); line-height: 1; }
.sp-rating .sp-stars { color: var(--brand); font-size: 1.05rem; letter-spacing: 2px; display: block; }
.sp-rating .sp-meta { text-align: left; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.review-card { text-align: left; }
.review-card .stars { color: var(--brand); letter-spacing: 1px; font-size: .95rem; }
.review-card p { margin: 10px 0 12px; font-size: .92rem; color: var(--ink); }
.review-card .rc-name { color: var(--muted); font-size: .82rem; font-weight: 600; }

/* Validation */
.field-error { color: var(--err); font-size: .84rem; margin-top: 6px; display: none; }
.field.invalid .input { border-color: var(--err); }
.field.invalid .field-error { display: block; }

/* Funnel action row */
.funnel-actions { margin-top: 26px; }
/* Sticky Continue so it is always reachable without scrolling. No panel behind it:
   the button is opaque on its own and floats over the content. */
.funnel-actions.is-sticky { position: sticky; bottom: 0; z-index: 20; padding-bottom: 12px; }
.funnel-trust { display: flex; gap: 8px 22px; justify-content: center; flex-wrap: wrap; margin-top: 18px; color: var(--muted); font-size: .84rem; }
.funnel-trust .tick { color: var(--ok); }

/* Payment badges (review step) */
.pay-badges { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: center; align-items: center; margin-top: 16px; color: var(--muted); font-size: .85rem; }
/* Uniform payment-method chips: equal box height, logo padding normalised so the
   acceptance marks (Apple/Google Pay) sit at the same glyph size as the wordmarks. */
.pay-badges img { height: 30px; width: auto; box-sizing: border-box; padding: 6px 9px; background: #fff; border: 1px solid var(--line); border-radius: 6px; object-fit: contain; }
.pay-badges img[alt="Apple Pay"], .pay-badges img[alt="Google Pay"] { padding: 3px 8px; }

/* Review panel */
.review-block { border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin-bottom: 16px; background: #fff; box-shadow: var(--shadow-card); }
.review-block h4 { margin: 0 0 12px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.review-block h4.rb-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.review-block .rb-change { text-transform: none; letter-spacing: 0; font-size: .82rem; font-weight: 600; color: var(--trust); text-decoration: underline; white-space: nowrap; }
.review-line { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.review-line:last-child { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; font-weight: 800; }
/* Prominent "Total today" — this is the amount the user pays */
.review-line.total-line { align-items: baseline; padding-top: 16px; }
.review-line.total-line > span:first-child { font-size: 1.05rem; }
.review-line.total-line .amt-big { font-size: 1.7rem; font-weight: 800; color: var(--cta); }
.review-line .rv { color: var(--ink); font-weight: 600; text-align: right; }
/* Key/value summary blocks (customer + test details): no bold-total treatment on the last row */
.review-block.kv .review-line:last-child { border-top: none; margin-top: 0; padding-top: 8px; font-weight: 400; }

/* Button loading state */
.btn.is-loading { opacity: .75; pointer-events: none; }
/* Disabled button (e.g. Continue until a centre is selected) */
.btn.is-disabled { opacity: .5; pointer-events: none; }

/* Licence number: force typed value uppercase, but keep the placeholder in normal case */
.licence-input { text-transform: uppercase; }
.licence-input::placeholder { text-transform: none; }
.terms-check { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0; font-size: .92rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; cursor: pointer; }
.terms-check input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--trust); flex: 0 0 auto; cursor: pointer; }
.terms-check .terms-label { cursor: pointer; }
.terms-check .terms-label a { cursor: pointer; }
.terms-implied { font-size: .88rem; color: var(--muted); margin: 4px 0 16px; }
/* Defined after .terms-implied so its margin shorthand doesn't win on source order. */
.terms-under-cta { margin-top: 14px; text-align: center; }
/* Pay CTA sticks to the bottom only once every panel is complete (toggled in JS). */
.pay-cta.is-sticky { position: sticky; bottom: 12px; z-index: 20; }
.terms-implied a { color: var(--trust); text-decoration: underline; }

/* Green info box (Pass Protection Plus reminder / notes) */
.info-note { background: var(--trust-tint); border-radius: var(--r); padding: 14px 16px; font-size: .9rem; margin-bottom: 16px; }
.info-note strong { color: var(--trust); }
.info-note a { color: var(--trust); font-weight: 600; text-decoration: underline; }

/* ---------- Post-payment ---------- */
.confirm-hero { background: var(--trust); color: #fff; text-align: center; padding: 54px 20px 46px; margin-bottom: 34px; }
.confirm-hero h1 { color: #fff; font-size: 2.2rem; }
.confirm-hero .text-muted, .confirm-hero p { color: rgba(255, 255, 255, .85); }
.confirm-badge { width: 66px; height: 66px; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; display: grid; place-items: center; font-size: 32px; margin: 0 auto 16px; }
.confirm-badge.fail { background: #fdecea; color: var(--err); }
.ref-pill { display: inline-block; font-family: var(--mono); background: #fff; color: var(--trust); border-radius: 12px; padding: 12px 20px; font-weight: 700; letter-spacing: .04em; margin-top: 6px; }

.login-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-card); padding: 26px; }
.login-panel h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.cred-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cred-row .k { color: var(--muted); font-weight: 600; }
.cred-row .v { font-weight: 700; font-family: var(--mono); font-size: 1.02rem; }
.app-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.app-badges img { height: 46px; width: auto; }
.processing-spin { width: 46px; height: 46px; border: 4px solid var(--line); border-top-color: var(--trust); border-radius: 50%; margin: 24px auto; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Legal pages (Terms / Privacy / Cookies) ---------- */
.legal { max-width: 820px; }
.legal h1 { margin-bottom: 4px; }
.legal .lead { color: var(--muted); }
.legal h2 { margin-top: 30px; font-size: 1.2rem; }
.legal h3 { margin-top: 20px; font-size: 1rem; }
.legal p, .legal li { color: var(--ink); line-height: 1.7; }
.legal ul, .legal ol { padding-left: 20px; margin: 12px 0; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--trust); }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .9rem; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--page); font-weight: 700; }
.legal .warn { color: var(--err); font-weight: 700; }
.legal .updated { font-family: var(--mono); font-size: .74rem; color: var(--muted); margin-top: 26px; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 0; }
    .funnel-grid { grid-template-columns: 1fr; }
    .funnel-sidebar { position: static; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: 1fr; }
    .trust-row .container { grid-template-columns: repeat(2, 1fr); }
    .price-2col { grid-template-columns: 1fr; gap: 24px; }
    .hero h1 { font-size: 2.3rem; }
    .header-trust { display: none; }
    .sticky-cta {
        display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
        background: #fff; border-top: 1px solid var(--line); padding: 10px 14px;
        box-shadow: 0 -8px 24px -12px rgba(20, 23, 29, .3);
    }
    body.has-sticky-cta { padding-bottom: 80px; }
}
@media (max-width: 520px) {
    .grid-4, .grid-2 { grid-template-columns: 1fr; }
    .segmented label { padding: 10px 4px; font-size: .82rem; gap: 4px; white-space: nowrap; }
    .progress .p-label { font-size: .72rem; }
    .progress .p-step { width: 72px; }
    h1 { font-size: 1.9rem; }
    .hero h1 { font-size: 2rem; }
    .ads-footer .container { flex-direction: column; text-align: center; }
}
