/* RP Fitness public booking form (Brief 20). Mobile first, always light. */
:root { --navy: #002c41; --red: #e4022e; --red-dark: #b80025; --ivory: #f6f5ee; --ink: #1b2a33; --muted: #5d6b73; --line: #d9dcd3; --ok: #1f7a4d; color-scheme: light only; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 500; line-height: 1.5; font-size: 16px; }
.wrap { max-width: 640px; margin: 0 auto; padding: 20px 16px 40px; }
.intro h1 { font-size: 1.55rem; line-height: 1.2; margin: 4px 0 8px; color: var(--navy); font-weight: 800; }
.intro p { margin: 0 0 18px; color: var(--muted); }
.card { background: #fff; border: 0; border-radius: 16px; box-shadow: 0 1px 3px rgba(0, 44, 65, .08), 0 4px 14px rgba(0, 44, 65, .05); padding: 18px 16px; margin: 0 0 14px; min-width: 0; }
.card.plain { background: transparent; box-shadow: none; padding: 4px 0; }
h2, legend { font-size: 1.05rem; line-height: 1.3; margin: 0 0 6px; color: var(--navy); font-weight: 700; padding: 0; }
.choice legend { margin-bottom: 10px; }
.hint, .opt { color: var(--muted); font-size: .88rem; margin: 0 0 10px; font-weight: 500; }
label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], textarea { width: 100%; font: inherit; font-size: 16px; padding: 14px 14px; min-height: 52px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0, 44, 65, .15); }
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field.invalid input, .field.invalid textarea { border-color: var(--red); }
.field-error { color: var(--red-dark); font-weight: 700; font-size: .9rem; margin: 6px 0 0; }
.field-error[hidden] { display: none; }
.field-error button { font: inherit; font-weight: 700; color: var(--navy); background: none; border: 0; text-decoration: underline; padding: 0; cursor: pointer; }
.sub { margin: 4px 0 12px 44px; }
/* Big tap targets: every tick box and choice is a full-width row at least 52px tall. */
.checks { display: grid; gap: 8px; }
.radio, .check { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; margin: 0 0 8px; font-weight: 600; color: var(--ink); background: #fff; position: relative; }
.checks .radio, .checks .check { margin: 0; }
.radio.big { padding: 12px 14px; }
.radio input, .check input { position: absolute; opacity: 0; width: 100%; height: 100%; left: 0; top: 0; margin: 0; cursor: pointer; }
.mark { flex: none; width: 28px; height: 28px; border: 2px solid #aab3b8; background: #fff; display: inline-block; position: relative; }
.radio .mark { border-radius: 50%; }
.check .mark { border-radius: 8px; }
.txt { min-width: 0; }
.txt b { display: block; color: var(--navy); }
.txt small { display: block; color: var(--muted); font-weight: 500; font-size: .85rem; }
input:checked ~ .mark { border-color: var(--red); background: var(--red); }
.radio input:checked ~ .mark::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.check input:checked ~ .mark::after { content: ''; position: absolute; left: 7px; top: 2px; width: 8px; height: 15px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.radio:has(input:checked), .check:has(input:checked) { border-color: var(--red); background: #fff5f6; }
.radio:has(input:focus-visible), .check:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(0, 44, 65, .25); }
/* Day and time pickers */
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; }
.day, .time { font: inherit; font-weight: 700; border: 2px solid var(--line); background: #fff; color: var(--navy); border-radius: 12px; cursor: pointer; }
.day { flex: none; min-width: 92px; min-height: 60px; padding: 8px 12px; text-align: center; line-height: 1.25; }
.day small { display: block; font-weight: 600; color: var(--muted); font-size: .78rem; }
.day[aria-selected=true], .time[aria-pressed=true] { background: var(--navy); border-color: var(--navy); color: #fff; }
.day[aria-selected=true] small { color: #cfe0e8; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.time { min-height: 52px; padding: 8px; }
.btn { display: block; width: 100%; font: inherit; font-weight: 800; font-size: 1.05rem; min-height: 58px; border: 0; border-radius: 14px; background: var(--red); color: #fff; cursor: pointer; margin-top: 14px; box-shadow: 0 2px 8px rgba(228, 2, 46, .25); }
.btn:hover:not(:disabled) { background: var(--red-dark); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.ghost { background: #fff; color: var(--navy); border: 2px solid var(--line); box-shadow: none; }
.marketing { margin: 0 0 8px; font-size: .92rem; color: var(--muted); }
.privacy { margin: 12px 0 0; font-size: .82rem; color: var(--muted); }
.turnstile { margin-top: 12px; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.thanks { text-align: center; padding: 28px 18px; }
.thanks .tick { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 2rem; line-height: 64px; font-weight: 800; }
.thanks h2 { font-size: 1.3rem; }
.thanks p { margin: 6px 0; }
@media (min-width: 560px) { .wrap { padding-top: 32px; } .checks.two { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: no-preference) { .btn, .radio, .check, .day, .time { transition: background .15s, border-color .15s; } }

/* ---------- Form v2 (Brief 21): three steps ---------- */
.progress { margin: 0 0 16px; }
.progress-text { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 8px; color: var(--navy); }
.progress-text span { color: var(--muted); font-size: .88rem; font-weight: 600; }
.bar { height: 10px; border-radius: 99px; background: #e4e2d6; overflow: hidden; }
.bar span { display: block; height: 100%; width: 33%; border-radius: 99px; background: var(--red); transition: width .25s ease; }
.step[hidden] { display: none; }
.nav { display: flex; gap: 10px; margin-top: 4px; }
.nav .btn { margin-top: 10px; flex: 1 1 0; }
.nav .btn.back { flex: 0 0 34%; }
.q.invalid { box-shadow: 0 0 0 2px var(--red); }
.q > .field-error, .sub .field-error { margin-top: 10px; }
.label { font-weight: 700; color: var(--navy); margin: 0 0 8px; }
.sub { margin: 8px 0 4px 0; padding-left: 12px; border-left: 3px solid var(--line); }
.checks .off { opacity: .45; cursor: not-allowed; }
.checks .off input { cursor: not-allowed; }
.marketing-box { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.marketing { margin: 0 0 8px; font-size: .84rem; line-height: 1.45; color: #46565f; }
.marketing-box .check { min-height: 52px; font-size: .88rem; }
.privacy { font-size: .8rem; }
