/* Propel course enquiry: same design as the Infocus enrolment form, in black and white. */
:root {
    --ink: #0E0E0E;
    --text: #2A2A2A;
    --muted: #6A6A6A;
    --line: #E4E4E2;
    --cream: #F6F6F4;
    --brand: #111111;
    --brand-dark: #333333;
    --brand-soft: rgba(17, 17, 17, .07);
    --gold: #BDBDBD;
    --ok: #1F7A4D;
    --ok-soft: #E7F4EC;
    --warn: #8A5A00;
    --warn-soft: #FFF4DB;
    --err: #B3261E;
    --radius: 20px;
    --shadow: 0 1px 2px rgba(14, 14, 14, .04), 0 12px 40px rgba(14, 14, 14, .10);
}

* { 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, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .10) 0%, transparent 55%),
        radial-gradient(80% 80% at 100% 100%, rgba(255, 255, 255, .06) 0%, transparent 60%),
        var(--ink);
    color: #fff;
    padding: max(20px, env(safe-area-inset-top)) 16px 92px;
}
.hero-inner { max-width: 600px; margin: 0 auto; }
.logo { display: block; height: 44px; width: auto; margin-bottom: 28px; }
.eyebrow {
    margin: 0 0 6px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.hero h1 {
    margin: 0;
    font-size: clamp(24px, 6vw, 36px);
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -.01em;
    text-wrap: balance;
}
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
    font-size: 13px;
    color: rgba(255, 255, 255, .82);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    padding: 3px 11px;
}

/* ---------- Card ---------- */
.card {
    position: relative;
    width: calc(100% - 24px);
    max-width: 600px;
    margin: -64px auto 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px 20px 28px;
}

.progress { display: flex; gap: 6px; margin-bottom: 22px; }
.progress span {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: var(--line);
    transition: background .3s;
}
.progress span.on { background: var(--brand); }

.step { display: none; }
.step.active { display: block; animation: rise .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

h2 {
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -.01em;
}
.lead { margin: 0 0 22px; color: var(--muted); }
.lead strong { color: var(--text); overflow-wrap: anywhere; }

/* ---------- Form ---------- */
.field { margin-bottom: 16px; }
label, .label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ink);
}
label .opt { font-weight: 400; color: var(--muted); }

input {
    width: 100%;
    font: inherit;
    font-size: 16px; /* stops iOS zooming */
    color: var(--text);
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 13px 14px;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
    appearance: none;
}
input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
input[readonly] { background: var(--cream); color: var(--muted); }
.field.invalid input { border-color: var(--err); }

.hint { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.err { display: block; margin-top: 6px; font-size: 13px; color: var(--err); }
.err:empty { display: none; }

.grid-2 { display: grid; gap: 0 14px; grid-template-columns: 1fr; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error {
    margin: 0 0 14px;
    padding: 11px 14px;
    border-radius: 12px;
    background: #FDECEA;
    color: var(--err);
    font-size: 14px;
}

/* Locked organisation */
.locked {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border-radius: 12px;
    background: var(--cream);
    border: 1.5px solid var(--line);
    font-weight: 500;
}
.locked svg { flex: none; color: var(--gold); }

/* Searchable organisation list */
.combo { position: relative; }
.combo input { padding-right: 40px; }
.combo .chev {
    position: absolute; right: 14px; top: 50%;
    width: 10px; height: 10px; margin-top: -7px;
    border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
    transform: rotate(45deg); pointer-events: none;
}
.combo ul {
    position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px);
    margin: 0; padding: 6px; list-style: none;
    max-height: 264px; overflow-y: auto;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow);
}
.combo li { padding: 10px 12px; border-radius: 9px; cursor: pointer; }
.combo li[aria-selected="true"], .combo li:hover { background: var(--brand-soft); }
.combo li.none { color: var(--muted); cursor: default; background: none; }
.combo mark { background: none; color: var(--brand); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    margin-top: 8px;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--brand-dark); box-shadow: 0 8px 20px rgba(0, 0, 0, .22); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; box-shadow: none; }
.btn.secondary { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); }
.btn.secondary:hover { background: var(--brand-soft); box-shadow: none; }

.btn-link {
    display: block;
    margin: 14px auto 0;
    padding: 6px;
    background: none;
    border: 0;
    color: var(--brand);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.btn-link:disabled { color: var(--muted); cursor: default; font-weight: 500; }
.btn-link.subtle { color: var(--muted); font-weight: 500; font-size: 14px; }
.alt-actions { display: flex; flex-direction: column; align-items: center; margin-top: 6px; }
.alt-actions .btn-link { margin-top: 6px; text-align: center; }

/* ---------- OTP ---------- */
/* One real input stretched invisibly over six drawn boxes */
.otp { position: relative; display: flex; gap: 8px; justify-content: space-between; margin: 4px 0 18px; }
.otp input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    opacity: 0;
    font-size: 16px;
    cursor: text;
}
.otp input:focus { box-shadow: none; }
.otp-box {
    flex: 1;
    max-width: 56px;
    height: 60px;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    font-size: 24px;
    font-weight: 600;
    color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}
.otp.focused .otp-box.current { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.otp.focused .otp-box.current:empty::after {
    content: "";
    width: 2px;
    height: 26px;
    background: var(--brand);
    animation: blink 1s steps(1) infinite;
}
.otp.invalid .otp-box { border-color: var(--err); }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Notices ---------- */
.notice { margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.notice.info { background: var(--brand-soft); color: var(--brand-dark); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.test {
    background: var(--warn-soft);
    color: var(--warn);
    border: 1.5px dashed rgba(138, 90, 0, .35);
}
.notice.test b { font-size: 18px; letter-spacing: .2em; }

.icon-badge {
    width: 52px; height: 52px; margin-bottom: 16px;
    display: grid; place-items: center;
    border-radius: 50%;
    font-size: 24px; font-weight: 700;
}
.icon-badge.ok { background: var(--ok-soft); color: var(--ok); }
.icon-badge.warn { background: var(--warn-soft); color: var(--warn); }

/* ---------- Summary / account ---------- */
.summary {
    margin: 0 0 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}
.summary div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border-top: 1px solid var(--line);
    font-size: 15px;
}
.summary div:first-child { border-top: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; text-align: right; }

.pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: var(--warn-soft);
    color: var(--warn);
    white-space: nowrap;
}
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.neutral { background: var(--cream); color: var(--muted); }

.account {
    padding: 18px 16px;
    border-radius: 14px;
    background: var(--cream);
    border: 1px solid var(--line);
}
.account h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 6px;
    font-size: 16px;
    color: var(--ink);
}
.account p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.account .method {
    margin: 0 0 14px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    font-weight: 500;
}
.account .email-row { display: flex; gap: 8px; align-items: stretch; }
.account .email-row input { flex: 1; }
.account .field { margin-bottom: 8px; }

/* ---------- Footer & busy ---------- */
.foot {
    margin-top: auto;
    padding: 28px 16px max(28px, env(safe-area-inset-bottom));
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.foot a { color: var(--brand); font-weight: 600; text-decoration: none; }
.foot span { font-size: 12px; }

.busy {
    position: fixed; inset: 0; z-index: 100;
    display: grid; place-items: center;
    background: rgba(246, 246, 244, .9);
    backdrop-filter: blur(2px);
}
.busy { align-content: center; gap: 16px; }
.busy[hidden] { display: none; }
.busy-msg { margin: 0; max-width: 280px; text-align: center; color: var(--ink); font-weight: 500; }
.spinner {
    width: 44px; height: 44px;
    border: 4px solid var(--line);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
    .hero { padding: 28px 24px 110px; }
    .logo { height: 52px; margin-bottom: 40px; }
    .card { padding: 40px 44px 44px; margin-top: -76px; }
    h2 { font-size: 26px; }
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .btn { width: auto; min-width: 200px; }
    form .btn, .step > .btn { width: 100%; }
    .otp { justify-content: flex-start; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* ---------- Propel additions ---------- */
.logos { margin-bottom: 28px; line-height: 0; }
.logos img { width: min(420px, 100%); height: auto; }
@media (min-width: 640px) { .logos { margin-bottom: 40px; } }
.options.compact { grid-template-columns: repeat(3, 1fr); }
.options.compact .box { align-items: center; text-align: center; justify-content: center; padding: 12px 8px; }
.options.compact .box strong { font-size: 15px; }

/* Big tappable choice cards */
.options { display: grid; gap: 10px; margin-bottom: 18px; }
.options.cols-3 { grid-template-columns: 1fr; }
@media (min-width: 560px) { .options.cols-3 { grid-template-columns: repeat(3, 1fr); } .options.cols-2 { grid-template-columns: 1fr 1fr; } }
.option { position: relative; display: block; margin: 0; cursor: pointer; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .box {
    display: flex; flex-direction: column; gap: 2px; height: 100%;
    padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.option .box strong { color: var(--ink); font-size: 16px; }
.option .box span { color: var(--muted); font-size: 14px; font-weight: 400; }
.option:hover .box { border-color: #bdbdbd; }
.option input:checked + .box { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand); }
.option input:focus-visible + .box { box-shadow: 0 0 0 4px var(--brand-soft); border-color: var(--brand); }
.group-label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin: 4px 0 8px; }

textarea {
    width: 100%; font: inherit; font-size: 16px; color: var(--text); background: #fff;
    border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; resize: vertical; min-height: 96px;
}
textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--muted); margin: 6px 0 14px; }
.check input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--brand); padding: 0; -webkit-appearance: auto; appearance: auto; }
.next-list { margin: 0 0 8px; padding-left: 20px; color: var(--muted); }
.next-list li { margin-bottom: 6px; }
