/*
 * Training plan questionnaire: Full Potential's own look, the same tokens and
 * font as book.fullpotential.co.uk (static/bookings/booking.css), so the two read
 * as one site. #057FFA is 3.9:1 on white, fine for shapes; text and filled controls
 * use --blue-ink (5.3:1).
 */
@font-face {
    font-family: "Manrope FP";
    src: url("assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 800;
    font-display: swap;
}
:root {
    color-scheme: light;
    --blue: #057ffa; --blue-ink: #0469d6; --navy: #0b2545;
    --ink: #13233a; --muted: #5b6b80; --line: #dde6f1; --wash: #eaf3ff; --bg: #f2f6fb;
    --card: #fff; --ok: #0e8a5f; --bad: #b42318; --warn: #8a4b00; --warn-bg: #fff4e0;
    /* Manrope, chosen by Ben 2026-10-05 over Libre Baskerville and Playfair
       ("the font isn't classy" about the heavy Avenir), at lighter weights.
       The booking page uses the same. */
    --font: "Manrope FP", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: var(--font); --font-head: var(--font);
    --w-title: 700; --w-strong: 650; --w-ui: 600; --w-button: 700; --title-track: -.015em;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue-ink); }
[hidden] { display: none !important; }

/* ── Header ───────────────────────────────────────────────────────────── */
.head { position: relative; color: #fff; background: var(--navy) url("assets/hero-900.jpg") 72% 62% / cover no-repeat; }
/* A wide, short banner shows only a strip of the photo, and at 62% that strip is the top of the
   runner's head: a smudge. Wide screens get the sky instead; a phone's taller crop keeps the runner. */
@media (min-width: 700px) { .head { background-image: url("assets/hero.jpg"); background-position: 72% 28%; } }
.head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,45,100,.86), rgba(8,28,56,.92)); }
.head-inner { position: relative; max-width: 600px; margin: 0 auto; padding: 18px 18px 16px; }
.brandrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brandrow img { height: 20px; }
.brandrow .with { font-size: 13px; font-weight: var(--w-ui); color: rgba(255,255,255,.92); text-align: right; }
.head h1 { margin: 14px 0 0; font-size: 21px; font-family: var(--font-head); font-weight: var(--w-title); letter-spacing: var(--title-track); }
.head .sub { font-size: 13.5px; color: rgba(255,255,255,.86); }

/* ── Step bar ─────────────────────────────────────────────────────────── */
.stepbar { max-width: 600px; margin: 0 auto; padding: 14px 18px 0; }
.stepbar .bars { display: flex; gap: 6px; }
.stepbar .bars span { flex: 1; height: 5px; border-radius: 4px; background: #d5dfeb; }
.stepbar .bars span.done { background: var(--blue); }
.stepbar .bars span.now { background: var(--blue); box-shadow: 0 0 0 3px rgba(5,127,250,.22); }
.stepbar .labels { display: flex; gap: 6px; margin-top: 6px; }
.stepbar .labels span { flex: 1; text-align: center; font-size: 11px; font-weight: var(--w-ui); color: var(--muted); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepbar .labels span.now { color: var(--blue-ink); }

/* ── Body ─────────────────────────────────────────────────────────────── */
main { max-width: 600px; margin: 0 auto; padding: 14px 16px 120px; }
.card { background: var(--card); border-radius: 18px; padding: 20px 18px; box-shadow: 0 1px 2px rgba(19,35,58,.06), 0 10px 28px rgba(19,35,58,.08); }
.card + .card { margin-top: 14px; }
.intro { font-size: 15px; color: #33445a; }
.intro p { margin: 0 0 8px; }
.intro p:last-child { margin: 0; }
.intro .fine { font-size: 13px; color: var(--muted); }
.steptitle { margin: 0 0 14px; font-size: 20px; font-family: var(--font-head); font-weight: var(--w-title); letter-spacing: var(--title-track); }

.q { margin: 0 0 20px; }
.q:last-child { margin-bottom: 0; }
.q > .lab { display: block; font-weight: var(--w-strong); font-size: 15.5px; margin-bottom: 6px; line-height: 1.35; }
.q .help { display: block; font-size: 13.5px; color: var(--muted); margin: -2px 0 9px; }
.q.err > .lab { color: var(--bad); }
.q .errmsg { display: none; margin-top: 7px; font-size: 13.5px; font-weight: var(--w-ui); color: var(--bad); }
.q.err .errmsg { display: block; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row2 .q { margin-bottom: 20px; }

.inp { display: block; width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; font-size: 16px; background: #fff; min-height: 46px; }
.inp:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(5,127,250,.15); }
textarea.inp { resize: vertical; min-height: 70px; line-height: 1.45; }
select.inp { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%235b6b80' stroke-width='2' fill='none'/%3E%3C/svg%3E") right 14px center no-repeat; padding-right: 40px; }
.inp.short { max-width: 140px; }
.follow { margin-top: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 0; cursor: pointer; padding: 10px 14px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: var(--w-ui); font-size: 14.5px; color: #33445a; line-height: 1.25; text-align: left; }
.chip:hover { box-shadow: inset 0 0 0 1.5px #b7c7da; }
.chip.on { background: var(--wash); color: var(--blue-ink); box-shadow: inset 0 0 0 2px var(--blue); }
.chip:focus-visible { outline: 3px solid rgba(5,127,250,.35); outline-offset: 2px; }
.chips.days .chip { min-width: 52px; text-align: center; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; background: #e6edf6; border-radius: 13px; padding: 4px; }
.seg .chip { flex: 1 1 auto; text-align: center; box-shadow: none; background: transparent; }
.seg .chip.on { background: #fff; box-shadow: 0 1px 3px rgba(19,35,58,.16); }

/* Email suggestion */
.hint { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 14px; margin-top: 8px; font-size: 13.5px; padding: 9px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); }
/* An address has no break points, so it may break anywhere rather than push the page wider. */
.hint-text { flex: 1 1 12em; min-width: 0; overflow-wrap: anywhere; }
.hint-fixes { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.hint button { border: 0; background: none; font-weight: var(--w-strong); color: var(--blue-ink); cursor: pointer; white-space: nowrap; padding: 0; }

/* Race picker */
.picker .results { margin-top: 8px; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.picker .opt { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; width: 100%; padding: 11px 14px; border: 0; border-bottom: 1px solid #eef2f8; background: #fff; text-align: left; cursor: pointer; }
.picker .opt:last-child { border-bottom: 0; }
.picker .opt:hover, .picker .opt:focus { background: var(--wash); outline: none; }
.picker .opt b { font-weight: var(--w-strong); }
.picker .opt .d { font-size: 13px; color: var(--muted); white-space: nowrap; }
.picker .none { padding: 12px 14px; font-size: 14px; color: var(--muted); }
.picker .alt { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--blue-ink); font-weight: var(--w-strong); font-size: 14.5px; cursor: pointer; text-align: left; }
.chosen { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 14px; padding: 12px 14px; background: var(--wash); box-shadow: inset 0 0 0 2px var(--blue); }
.chosen b { display: block; font-size: 16px; font-weight: var(--w-strong); }
.chosen .d { font-size: 13.5px; color: #3a5a86; }
.sublab { display: block; font-weight: var(--w-strong); font-size: 14.5px; margin: 14px 0 6px; }

/* Times */
.tb { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.tb .box { width: 58px; text-align: center; padding: 9px 4px; min-height: 44px; }
.tb .sep { color: var(--muted); font-weight: var(--w-strong); padding: 0 2px; }
.tb .unit { color: var(--muted); font-weight: var(--w-ui); font-size: 14px; margin-right: 6px; }
.pbrow { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #eef2f8; }
.pbrow:last-of-type { border-bottom: 0; }
.pbrow .d { font-weight: var(--w-strong); font-size: 15px; }
.pbrow .yr { width: 76px; margin-left: 10px; }
.pbrow .yrlab { font-size: 13px; color: var(--muted); margin-left: 8px; }
.hrrow { display: grid; grid-template-columns: 112px 110px auto; align-items: center; gap: 10px; padding: 6px 0; }
.hrrow .d { font-weight: var(--w-strong); }

.consent { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--wash); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--blue-ink); flex: none; }
.consent span { font-weight: var(--w-ui); }
.privacy { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ── Bottom bar ───────────────────────────────────────────────────────── */
.bar { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(242,246,251,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.bar-inner { max-width: 600px; margin: 0 auto; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; }
.btn { flex: 1; border: 0; border-radius: 14px; background: var(--blue-ink); color: #fff; font-weight: var(--w-button); font-size: 17px; padding: 14px 16px; cursor: pointer; box-shadow: 0 6px 18px rgba(4,105,214,.25); }
.btn:hover { background: #035bbd; }
.btn.ghost { flex: 0 0 32%; background: #fff; color: var(--blue-ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn[disabled] { opacity: .55; cursor: default; }
.status { max-width: 600px; margin: 10px auto 0; padding: 0 18px; display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.saved { display: inline-flex; align-items: center; gap: 6px; font-weight: var(--w-ui); color: var(--ok); }
.saved::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

/* ── Done ─────────────────────────────────────────────────────────────── */
.done-head { position: relative; color: #fff; background: var(--navy) url("assets/hero-900.jpg") 72% 70% / cover no-repeat; padding-bottom: 54px; }
.done-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,45,100,.74), rgba(4,83,168,.42) 50%, rgba(8,28,56,.88)); }
.done-head .head-inner { padding-top: 18px; }
.tick { width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--ok); display: grid; place-items: center; font-size: 30px; font-weight: 900; margin-top: 34px; }
.done-head h2 { margin: 16px 0 6px; font-size: 30px; line-height: 1.12; font-family: var(--font-head); font-weight: var(--w-title); letter-spacing: var(--title-track); }
.done-head p { margin: 0; color: rgba(255,255,255,.94); }
.done-main { margin-top: -40px; position: relative; }
.summary .k { font-size: 12px; font-weight: var(--w-strong); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.summary .v { font-size: 20px; font-family: var(--font-head); font-weight: var(--w-title); margin-top: 3px; }
.summary .m { font-size: 14px; color: var(--muted); }
.summary hr { border: 0; height: 1px; background: var(--line); margin: 14px 0; }
.summary .line { font-size: 14.5px; margin: 4px 0; }
.payload { white-space: pre-wrap; font: 12px/1.45 ui-monospace, Menlo, monospace; background: #0b2545; color: #d8e6f7; padding: 14px; border-radius: 12px; overflow: auto; max-height: 420px; }

.tb .box::placeholder { color: #b2bdcb; font-weight: 600; }
@media (max-width: 420px) {
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .pbrow { grid-template-columns: 1fr; gap: 6px; }
  .pbrow .tb { flex-wrap: nowrap; }
  .tb .box { width: 46px; }
  .pbrow .yr { width: 62px; margin-left: 4px; }
  .pbrow .yrlab { margin-left: 4px; }
  .hrrow { grid-template-columns: 90px 100px auto; }
}

/* Small layout helpers (classes, not style attributes: the live page's
   Content-Security-Policy refuses inline styles). */
.mt0 { margin-top: 0; }
.mt10 { margin-top: 10px; }
.w220 { max-width: 220px; }
.center { text-align: center; }
.noscript { padding: 20px; }
.btn.block { display: block; text-align: center; text-decoration: none; }
.cta p { margin: 0 0 8px; }
.btn:disabled { opacity: .65; cursor: wait; }

/* Sending failed: the answers are still on the device. */
.senderr { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #fdecec; color: #9b1c1c; font-size: 14.5px; line-height: 1.45; }

/* The honeypot: off-screen for people, there for form-filling bots. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
