/*
| Public pages (e-learning order, card payment, Direct Debit): shared styles
*/
:root{
  --ink:#1b2430; --muted:#5b6573; --line:#dfe3e8; --soft:#f4f6f8; --bg:#fbfcfd;
  --brand:#004E86; --brand-2:#0070C0; --accent:#0f7b6c; --warn:#a15c00; --bad:#b42318;
  --radius:10px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font:16px/1.5 "Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif;color:var(--ink);background:var(--bg)}
a{color:var(--brand-2)}
a.plain{color:inherit;text-decoration:none}
a.plain:hover{text-decoration:underline}
header.top{background:var(--brand);color:#fff}
header.top .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px}
header.top .brand{display:block;height:34px;width:auto;filter:brightness(0) invert(1)} /* colour logo shown white */
header.top .contact{display:flex;gap:18px;flex-wrap:wrap;justify-content:flex-end;font-size:14px}
header.top .contact a{color:#dbe5f1;text-decoration:none}
header.top .contact a:hover{color:#fff;text-decoration:underline}
@media (max-width:560px){header.top .contact{flex-direction:column;gap:2px;align-items:flex-end;font-size:13px}}
.req{color:var(--bad);font-weight:700}
.wrap{max-width:980px;margin:0 auto;padding:0 20px}
.intro{padding:32px 0 8px}
.intro h1{font-size:30px;line-height:1.2;margin:0 0 8px}
.intro p{margin:0;color:var(--muted);max-width:640px}
.layout{display:grid;grid-template-columns:1fr 300px;gap:28px;align-items:start;padding:24px 0 64px}
@media (max-width:860px){.layout{grid-template-columns:1fr}.summary{position:static!important}}
section.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px 22px 24px;margin-bottom:18px}
section.card h2{font-size:18px;margin:0 0 12px;display:flex;align-items:center;gap:10px}
section.card h2 .n{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--soft);color:var(--brand);font-size:13px;font-weight:700}
section.card h2 + .q{margin-top:14px}
section.card .lead{margin:0 0 16px;color:var(--muted);font-size:14px}
.stack{display:grid;gap:14px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px}
@media (max-width:560px){.grid2{grid-template-columns:1fr}}
label.f{display:block;font-weight:600;font-size:14px;margin-bottom:5px}
label.f .opt{font-weight:400;color:var(--muted)}
input[type=text],input[type=email],input[type=tel],input[type=number],input[type=date],input[type=search],textarea,select{
  width:100%;font:inherit;padding:10px 12px;border:1px solid #c9d0d8;border-radius:8px;background:#fff;color:var(--ink)}
textarea{min-height:84px;resize:vertical}
input:focus,textarea:focus,select:focus,button:focus-visible,.choice:focus-within{outline:3px solid rgba(0,112,192,.25);outline-offset:1px;border-color:var(--brand-2)}
[aria-invalid=true]{border-color:var(--bad)!important}
.err{color:var(--bad);font-size:13px;margin:6px 0 0}
.alert{border:1px solid #f3c1bc;background:#fdf0ef;color:var(--bad);padding:12px 14px;border-radius:8px;margin-bottom:18px}
.q{margin:0 0 18px}
.q:last-child{margin-bottom:0}
.q > .qt{font-weight:600;font-size:15px;margin:0 0 4px}
.q > .qh{font-size:13px;color:var(--muted);margin:0 0 10px}
.choices{display:flex;gap:10px;flex-wrap:wrap}
.choice{position:relative;display:flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid #c9d0d8;border-radius:8px;cursor:pointer;background:#fff;font-size:15px}
.choice input{margin:0;accent-color:var(--brand-2)}
.choice:has(input:checked){border-color:var(--brand-2);background:#eef3f9}
.sub{margin-top:14px;padding:14px;background:var(--soft);border-radius:8px}
.hidden{display:none!important}
.hint{font-size:13px;color:var(--muted);margin:8px 0 0}
.stepper{display:flex;align-items:center;gap:6px;margin-top:6px}
.stepper input{text-align:center;max-width:110px}
.stepper button{width:40px;height:42px;border:1px solid #c9d0d8;background:#fff;border-radius:8px;font-size:20px;line-height:1;cursor:pointer;color:var(--brand)}
.badge{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.03em;padding:2px 7px;border-radius:999px;background:#fff4e5;color:var(--warn);border:1px solid #f5d6a8;white-space:nowrap}
table.bands{width:100%;border-collapse:collapse;font-size:13px;margin-top:16px}
table.bands th,table.bands td{padding:6px 8px;border-bottom:1px solid var(--line);text-align:left}
table.bands th{color:var(--muted);font-weight:600}
table.bands .p{text-align:right!important;font-variant-numeric:tabular-nums}
table.bands tr.on td{background:#eef3f9;font-weight:600}
details.bandsd summary{cursor:pointer;color:var(--brand-2);font-size:14px;margin-top:14px;list-style:none;display:inline-flex;align-items:center;gap:8px}
details.bandsd summary::-webkit-details-marker{display:none}
/* The Admac mark, as on the portal's Documents folders: points right, turns down when open */
details.bandsd summary::before{content:'';width:10px;height:11.5px;background:url('/ext/icon.svg') no-repeat center/contain;transition:transform .25s ease;flex:none}
details.bandsd[open] summary::before{transform:rotate(90deg)}
.tip{margin-top:14px;padding:10px 12px;border-radius:8px;background:#e8f5f2;color:#0b5c51;font-size:14px;display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.tip button{border:0;background:var(--accent);color:#fff;border-radius:6px;padding:6px 10px;font:inherit;font-size:13px;cursor:pointer}

/* course picker */
.picker-tools{display:grid;grid-template-columns:1fr 190px;gap:10px;margin-bottom:10px}
@media (max-width:560px){.picker-tools{grid-template-columns:1fr}}
.picker-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:14px;color:var(--muted);margin-bottom:8px;flex-wrap:wrap}
.picker-bar label{display:flex;align-items:center;gap:6px;cursor:pointer;color:var(--ink)}
.linkbtn{border:0;background:none;color:var(--brand-2);font:inherit;font-size:14px;cursor:pointer;padding:0;text-decoration:underline}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.chip{display:inline-flex;align-items:center;gap:6px;font-size:13px;background:#eef3f9;border:1px solid #cfdcec;color:var(--brand);border-radius:999px;padding:3px 4px 3px 10px}
.chip button{border:0;background:none;color:var(--brand);font-size:16px;line-height:1;cursor:pointer;padding:0 4px}
.list{border:1px solid var(--line);border-radius:8px;max-height:480px;overflow:auto;background:#fff}
.grp h3{position:sticky;top:0;z-index:1;margin:0;padding:8px 12px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);background:#f7f8fa;border-bottom:1px solid var(--line)}
.item{border-bottom:1px solid #eef0f3}
.item:last-child{border-bottom:0}
.item .row{display:flex;align-items:flex-start;gap:10px;padding:9px 12px}
.item .row label{flex:1;display:flex;gap:10px;align-items:flex-start;cursor:pointer;font-size:15px}
.item .row input{margin-top:4px;width:17px;height:17px;accent-color:var(--brand-2);flex:none}
.item .meta{display:flex;gap:6px;align-items:center;flex:none;margin-top:2px}
.item .mins{font-size:12px;color:var(--muted);white-space:nowrap}
.item .more{border:0;background:none;color:var(--brand-2);font-size:13px;cursor:pointer;padding:2px 0;white-space:nowrap}
.item .desc{padding:0 12px 12px 39px;font-size:14px;color:#37414d}
.item .desc p{margin:0 0 6px}
.item .desc ul{margin:0;padding-left:18px}
.item .desc .ap{font-size:12px;color:var(--muted);margin-top:6px}
.item:has(input:checked){background:#f5f8fc}
.empty{padding:24px;text-align:center;color:var(--muted);font-size:14px}

.terms{font-size:14px;color:#37414d}
.terms ul{margin:8px 0 14px;padding-left:18px}
.terms li{margin-bottom:4px}
.check{display:flex;gap:10px;align-items:flex-start;font-size:15px;cursor:pointer}
.check input{margin-top:4px;width:17px;height:17px;accent-color:var(--brand-2);flex:none}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* summary */
.summary{position:sticky;top:16px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px}
.summary h2{font-size:16px;margin:0 0 12px}
.summary dl{margin:0;display:grid;grid-template-columns:1fr auto;gap:6px 12px;font-size:14px}
.summary dt{color:var(--muted)}
.summary dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}
.summary .total{border-top:1px solid var(--line);margin-top:12px;padding-top:12px;display:flex;justify-content:space-between;align-items:baseline}
.summary .total strong{font-size:24px}
.summary .small{font-size:12px;color:var(--muted);margin:6px 0 0}
.summary .after{font-size:14px;color:var(--muted);margin:12px 0 0;text-align:center}
.summary .note{font-size:13px;margin-top:12px;padding:8px 10px;background:#fff4e5;border-radius:6px;color:#6b3d00}
.submit{display:block;width:100%;margin-top:16px;border:0;background:var(--brand);color:#fff;font:inherit;font-weight:600;padding:13px 16px;border-radius:8px;cursor:pointer}
.submit:hover{background:var(--brand-2)}
.submit[disabled]{opacity:.6;cursor:wait}

/* thanks */
.thanks{max-width:680px;margin:32px auto 64px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px}
.thanks h1{margin:0 0 8px;font-size:26px}
.btn{display:inline-block;margin-top:8px;background:var(--brand);color:#fff;font-weight:600;padding:12px 20px;border-radius:8px;text-decoration:none}
.btn:hover{background:var(--brand-2)}
.thanks .ref{display:inline-block;font-weight:700;background:var(--soft);padding:4px 10px;border-radius:6px;margin:4px 0 16px}
.thanks table{border-collapse:collapse;width:100%;font-size:14px}
.thanks td{padding:7px 0;border-bottom:1px solid #eef0f3;vertical-align:top}
.thanks td:first-child{color:var(--muted);width:40%;padding-right:12px}
footer{border-top:1px solid var(--line);color:var(--muted);font-size:13px;padding:20px 0}

/* ---- shared by card payment and Direct Debit ---- */
.info{background:#eef3f9;border-left:4px solid var(--brand-2);padding:12px 14px;border-radius:6px;font-size:15px;margin:0 0 16px}
.btn-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:20px}
button.btn{border:0;font:inherit;font-weight:600;cursor:pointer}
.btn[disabled]{opacity:.55;cursor:not-allowed}
.btn.secondary{background:#fff;color:var(--brand);border:1px solid #c9d0d8}
.btn.secondary:hover{background:var(--soft)}
input.narrow{max-width:220px}
.single{max-width:760px;padding:24px 0 64px}
.single section.card{padding:26px 26px 28px}
.screen{animation:screenin .3s ease}
@keyframes screenin{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.screen{animation:none}}
.screen p,.screen .text{margin:0 0 16px}
.screen ul{margin:8px 0 16px;padding-left:20px}
.screen li{margin-bottom:6px}
.helpline{font-size:14px;color:var(--muted);margin-top:18px}
.helpline a{color:inherit;text-decoration:none}
.helpline a:hover{color:var(--brand-2)}
.field{margin-bottom:16px}
.field:last-of-type{margin-bottom:0}
.errbox{border:1px solid #f3c1bc;background:#fdf0ef;color:var(--bad);padding:12px 14px;border-radius:8px;margin-top:16px;font-size:15px}
.confirm{display:grid;grid-template-columns:auto 1fr;gap:6px 18px;margin:0 0 16px}
.confirm dt{color:var(--muted)}
.confirm dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.confirm .gap{grid-column:1/-1;height:8px}
.trace{font-size:13px;color:var(--muted)}
.dd-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:32px 0 8px}
.dd-head h1{font-size:30px;line-height:1.2;margin:0}
.dd-head img{height:46px;width:auto}
.provider{display:flex;align-items:center;justify-content:center;gap:8px;font-size:13px;color:var(--muted);margin-top:12px}
.provider img{height:18px;width:auto}
.summary .fee{border-top:1px solid var(--line);margin-top:6px;padding-top:6px}

/* e-learning order form: credits box with "Equivalent to" beside it */
.credits-row{display:flex;flex-wrap:wrap;gap:14px 24px;align-items:flex-start}
.f-label{display:block;font-weight:600;font-size:14px;margin-bottom:5px}
.equiv{display:flex;align-items:center;min-width:200px;height:42px;margin-top:6px;padding:0 14px;border:1px dashed #c9d0d8;border-radius:8px;background:var(--soft);font-weight:600;font-variant-numeric:tabular-nums}
.credits-card .lead,.credits-card .hint{font-size:14px;line-height:1.55}
.credits-card .lead{margin:0 0 12px}
.credits-card .lead strong{color:var(--ink)}
.credits-card .credits-row{margin-top:20px}
.credits-card .hint{margin-top:16px}

/* --------------------------------------------------------------------------
   Text sizes: only 14px, 16px and 18px, as agreed. Body text, labels and
   notes that sit with them are 16px; small print, hints and badges are
   14px; section headings are 18px. (Page titles, the order total and the
   stepper's + and - keep their larger sizes.)
   -------------------------------------------------------------------------- */

/* 16px */
header.top .contact,
section.card .lead,
.credits-card .lead,
.credits-card .hint,
label.f,
.f-label,
.q > .qt,
.choice,
table.bands,
details.bandsd summary,
.tip,
.picker-bar,
.linkbtn,
.item .row label,
.item .desc,
.empty,
.terms,
.check,
.summary dl,
.summary .after,
.thanks table,
.info,
.helpline,
.errbox,
.chip button {
    font-size: 16px;
}

/* 14px */
section.card h2 .n,
.err,
.q > .qh,
.hint,
.badge,
.tip button,
.chip,
.grp h3,
.item .mins,
.item .more,
.item .desc .ap,
.summary .small,
.summary .note,
.trace,
.provider,
footer {
    font-size: 14px;
}

/* 18px */
section.card h2,
.summary h2 {
    font-size: 18px;
}

@media (max-width: 560px) {
    header.top .contact {
        font-size: 14px;
    }
}

/* "Standard Courses = 10 credits per user", under the courses boxes */
.credits-card .credits-row ~ .lead {
    margin-top: 20px;
}

/* A hint that reads as part of the page (e.g. "Additional titles can be
   added..."): body size */
.hint.hint-body {
    font-size: 16px;
}

/* "30 CREDITS" badges in the course list: smaller than the text */
.badge {
    font-size: 12px;
}

/* "You'll get a copy of your order by email..." under Place order */
.summary .after {
    font-size: 14px;
}

/* Bullet points (the order terms, and the lists on the card and Direct
   Debit pages): blue squares */
.terms ul,
.screen ul {
    list-style-type: square;
}

.terms li::marker,
.screen li::marker {
    color: var(--brand-2);
}

/* Card page: "Secure payment by" with the SumUp logo larger, on its own
   line underneath */
.provider.provider-stack {
    flex-direction: column;
    gap: 8px;
}

.provider.provider-stack img {
    height: 30px;
}

/* Direct Debit page: more space between the title and the box below */
.dd-head {
    padding-bottom: 20px;
}

/* A box filled in for you and locked (e.g. Direct Debit "Same as company
   name"): shaded so it's clear it can't be typed in */
input[readonly] {
    background: var(--soft);
    color: #37414d;
}

/* Direct Debit page (the only one using .single): the full width of the
   page, so the title's logo and the box line up on the right with the
   header's phone and email, like the order and card pages */
.single {
    max-width: none;
}

/* Cloudflare Turnstile security check (classes/turnstile.php) */
.ts{margin-top:16px}
/* No gap of its own in the summary: it's usually hidden (interaction-only) */
.summary .ts{display:flex;justify-content:center;margin:0}
