/* Shared by index.html (client onboarding) and admin.html (builder). Based on the Premier Basketball Club onboarding page. */
:root {
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  /* Sports Up Marketing brand (from Sports-Up-Marketing-Frontend/src/styles/theme.css) */
  --navy-900: #062033;
  --navy-800: #0a3450;
  --gold-500: #f5a623;
  --gold-600: #e8960c;
  --bg: #fdfcf9;
  --panel: #ffffff;
  --line: #dce6ea;
  --text: #0b1f2b;
  --heading: #062033;
  --muted: #5c7583;
  --blue: #1e6f97;
  --orange: #f5a623;
  --accent-text: #b86e00;
  --field: #f9fbfc;
  --ok: #15803d;
  --err: #b42318;
  --serif: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #062033; --panel: #0a3450; --line: #1d4a68; --text: #eef5f8; --heading: #ffffff; --muted: #bfdcea;
    --blue: #4a93b8; --field: #072a42; --accent-text: #fbce79; --ok: #4ade80; --err: #fca5a5;
  }
}
:root[data-theme="dark"] {
  --bg: #062033; --panel: #0a3450; --line: #1d4a68; --text: #eef5f8; --heading: #ffffff; --muted: #bfdcea;
  --blue: #4a93b8; --field: #072a42; --accent-text: #fbce79; --ok: #4ade80; --err: #fca5a5;
}
[hidden] { display: none !important; }
html { height: 100%; scroll-padding-top: env(safe-area-inset-top, 0px); }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; min-height: 100%;
  background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
}
.topbar { background: var(--navy-900); border-bottom: 1px solid rgba(255,255,255,.08); }
.topbar-in { max-width: 680px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: flex-start; gap: 16px; flex-wrap: wrap; }
.topbar img { height: 36px; width: auto; display: block; }
.topbar .client-logo { height: 34px; max-width: 180px; object-fit: contain; }
.topbar .client-logo.badge { background: #fff; border-radius: 8px; padding: 4px 8px; height: 42px; }
.topbar .client-name { color: #fff; font-weight: 800; font-size: 17px; }
.topbar .x { color: #bfdcea; font-size: 20px; font-weight: 700; line-height: 1; }
.topbar small { color: #bfdcea; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.wrap { max-width: 680px; margin: 0 auto; padding: 32px 20px 72px; }
.progress { margin-bottom: 30px; }
.progress-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-600), var(--gold-500)); transition: width .35s ease; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.08; margin: 0 0 12px; color: var(--heading); }
h1 { font-size: clamp(30px, 6.5vw, 42px); }
h2 { font-size: clamp(26px, 5.5vw, 36px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--gold-500); border-radius: 2px; }
.lead { color: var(--muted); margin: 0 0 26px; max-width: 56ch; }
#problemHome { color: var(--muted); }
#problemHome a { color: var(--accent-text); font-weight: 700; }
.q { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.q label.t, .q legend { display: block; font-weight: 600; margin-bottom: 4px; padding: 0; }
.q .hint { color: var(--muted); font-size: 14.5px; margin: 0 0 12px; }
.q .sub { display: block; color: var(--muted); font-size: 14.5px; margin: 14px 0 6px; }
.q.note { background: color-mix(in srgb, var(--gold-500) 10%, var(--panel)); border-color: color-mix(in srgb, var(--gold-500) 45%, var(--line)); }
.q.note p { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
input[type=text], input[type=email], input[type=tel], input[type=date], select, textarea {
  width: 100%; background: var(--field); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  font: inherit; font-size: 16px;
}
textarea { min-height: 96px; resize: vertical; }
textarea.short { min-height: 64px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .7; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 14px; }
.grid > div { display: flex; flex-direction: column; justify-content: flex-end; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--line); background: var(--field); border-radius: 999px;
  padding: 9px 15px; font-size: 15.5px; user-select: none;
}
.opts input { position: absolute; opacity: 0; pointer-events: none; }
.opts label:has(input:checked) { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 16%, var(--field)); }
.opts label:has(input:focus-visible) { outline: 2px solid var(--gold-500); outline-offset: 2px; }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-500); outline-offset: 2px;
}
.nav { display: flex; gap: 12px; margin-top: 26px; }
button {
  font: inherit; font-weight: 800; font-size: 14.5px; letter-spacing: 0.03em; text-transform: uppercase; cursor: pointer;
  border-radius: 999px; padding: 14px 26px; border: 2px solid var(--line);
  background: transparent; color: var(--text);
}
button.primary { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); margin-left: auto; box-shadow: 0 10px 24px -8px rgba(245, 166, 35, 0.55); }
button:hover { filter: brightness(1.08); }
button:disabled { opacity: .55; cursor: default; }
.summary { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 6px 20px 16px; }
.summary h3 { font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--heading); margin: 22px 0 0; }
.summary dl { margin: 0; }
.summary dt { color: var(--muted); font-size: 14.5px; margin-top: 14px; }
.summary dd { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.summary .empty { color: var(--muted); font-style: italic; }
.copyrow { display: flex; flex-wrap: wrap; gap: 10px; }
.upload { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  border: 2px dashed var(--line); border-radius: 12px; padding: 22px 16px; cursor: pointer; background: var(--field); margin-top: 14px; }
.upload:hover, .upload:has(input:focus-visible) { border-color: var(--orange); }
.upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload strong { font-weight: 600; }
.upload span { color: var(--muted); font-size: 14.5px; }
.preview { margin-top: 14px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.preview img { max-width: 220px; max-height: 160px; border-radius: 8px; border: 1px solid var(--line); }
.preview p { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.preview button { padding: 8px 16px; font-size: 13px; }
.err { color: var(--err); font-weight: 600; font-size: 15px; margin-top: 10px; }
.err:empty { display: none; }
.req { color: var(--accent-text); font-weight: 600; }
input.invalid, textarea.invalid { border-color: var(--err); }
.status { color: var(--ok); min-height: 1.5em; margin-top: 10px; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .bar > i { transition: none; } }
