/* DHCC Fitness Day. Mobile-first: most people arrive from the QR code on a phone.
   Same palette as the DFC-DHCC sites: one navy ramp, Dubai Fitness Challenge blue for actions. */
:root {
  --brand: #00BAFA;
  --brand-hover: #33C8FB;
  --brand-ink: #021B26;
  --lime: #52F00A;
  --bad: #FF9C93;
  --bg: #062230;
  --surface: #0B2C3C;
  --raised: #123A4D;
  --line: rgba(238, 244, 247, .12);
  --line-strong: rgba(238, 244, 247, .24);
  --text: #EEF4F7;
  --text-2: #B3C6D0;
  --text-3: #8CA3B0;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --display: "Barlow Condensed", "Bahnschrift", "Arial Narrow", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: url(/assets/img/pattern.svg) 0 0 / 360px 360px; opacity: .3; pointer-events: none; }
img { max-width: 100%; display: block; }
h1, h2, p, dl, dd, fieldset { margin: 0; }
fieldset { padding: 0; border: 0; min-width: 0; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.wrap { width: 100%; max-width: 640px; margin: 0 auto; padding: 0 16px; }

.top { padding: 20px 0 8px; }
.partners { width: auto; height: 36px; }
@media (min-width: 560px) { .partners { height: 44px; } }

.hero { padding: 32px 0 24px; }
.eyebrow { display: inline-block; margin-bottom: 12px; padding-top: 8px; border-top: 2px solid var(--brand); color: var(--brand); font-size: 14px; font-weight: 600; }
.hero h1 { font: 600 clamp(44px, 13vw, 64px)/.95 var(--display); }
.lede { margin-top: 12px; max-width: 34em; color: var(--text-2); font-size: 17px; }
.facts { display: grid; gap: 8px; margin-top: 24px; }
.facts div { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: baseline; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.facts dt { color: var(--text-3); font-size: 14px; }
.facts dd { font-weight: 600; font-size: 17px; }

.card { margin-bottom: 32px; padding: 24px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
@media (min-width: 560px) { .card { padding: 28px; } }
.card h2 { margin-bottom: 20px; font: 600 30px/1 var(--display); }

.row { display: grid; gap: 0 12px; }
@media (min-width: 480px) { .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; margin-bottom: 20px; }
.field > span, .field legend { padding: 0; font-weight: 500; font-size: 15px; }
.field legend { margin-bottom: 6px; }
input:not([type=radio]) { width: 100%; min-height: 48px; padding: 0 14px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; font-size: 16px; }
input:not([type=radio]):focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 186, 250, .25); }
input::placeholder { color: var(--text-3); }
.field.bad input:not([type=radio]) { border-color: var(--bad); }
.hint { color: var(--text-3); font-size: 13px; }
.err { color: var(--bad); font-size: 14px; }
.err:empty { display: none; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 48px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; font-weight: 500; transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.seg input:checked + span { background: rgba(0, 186, 250, .14); border-color: var(--brand); color: var(--text); }
.seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.field.bad .seg span { border-color: var(--bad); }

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

.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-weight: 600; font-size: 17px; cursor: pointer; transition: background-color .15s var(--ease); }
.btn:hover { background: var(--brand-hover); }
.btn:disabled { opacity: .6; cursor: progress; }
.note { margin-top: 12px; color: var(--bad); font-size: 15px; }
.note:empty { display: none; }
.fine { margin-top: 12px; color: var(--text-3); font-size: 13px; text-align: center; }

.done { padding: 16px 0; text-align: center; outline: none; }
.tick { width: 64px; height: 64px; margin: 0 auto 16px; fill: none; stroke: var(--lime); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.done h2 { margin-bottom: 8px; }
.done p { color: var(--text-2); font-size: 17px; }

.foot { padding-bottom: 32px; color: var(--text-3); font-size: 13px; }
