/* ==========================================================================
   Move On Group — shared design tokens
   Palette is fixed by brand decision: do not adjust --color-bg or
   --color-accent without checking with Tony first.
   ========================================================================== */

:root {
  --color-bg: #F5F2F3;          /* White Convolvulus — page background */
  --color-surface: #FFFFFF;      /* cards / inputs */
  --color-accent: #021F94;       /* Imperial Blue — primary CTA */
  --color-accent-tint: #E7E9F7;  /* light wash of accent, for selected states */
  --color-text: #1B1830;         /* primary text, near-navy-black for cohesion with accent */
  --color-text-muted: #6D6A78;   /* secondary / hint text */
  --color-border: #E4DEE0;       /* hairlines, derived from bg */
  --color-border-strong: #C9C2C6;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; }

button {
  font-family: var(--font-body);
  cursor: pointer;
}

/* Focus visibility — keep, never remove for accessibility */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

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

/* ---- shared input styling (quiz + contact form) ---- */
input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
}

input::placeholder, textarea::placeholder {
  color: var(--color-text-muted);
}

/* ---- shared button styles ---- */
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 600;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: none;
  padding: 10px;
  font-size: 14px;
  text-decoration: underline;
}

.opt-btn {
  width: 100%;
  text-align: left;
  margin-bottom: 8px;
  padding: 12px 14px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
}

.opt-btn.selected {
  border-color: var(--color-accent);
  background: var(--color-accent-tint);
}

.opt-btn i { font-size: 17px; color: var(--color-text-muted); }
.opt-btn.selected i { color: var(--color-accent); }

/* ---- quiz question text ---- */
.qmeta { font-size: 12px; color: var(--color-text-muted); margin: 0 0 4px; }
.qtitle { font-size: 17px; font-weight: 600; margin: 0 0 4px; line-height: 1.35; }
.qhint { font-size: 12px; color: var(--color-text-muted); margin: 0 0 14px; line-height: 1.45; display: block; }

/* ---- quiz shell (phone-card frame) ---- */
.quiz-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
}
.top-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--color-border);
  color: var(--color-text-muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin: 0 0 14px;
}
.top-badge .badge-dot { opacity: 0.6; font-weight: 400; }
.quiz-card {
  width: 100%;
  max-width: 400px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  box-shadow: 0 1px 3px rgba(27,24,48,0.08);
}
.quiz-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.quiz-title { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--color-text); }
.quiz-title i { font-size: 15px; color: var(--color-accent); }
.progress-track { height: 4px; background: var(--color-border); border-radius: 4px; overflow: hidden; margin-bottom: 18px; }
.progress-fill { height: 100%; width: 0%; background: var(--color-accent); transition: width .2s; }
.progress-label { font-size: 12px; color: var(--color-text-muted); font-weight: 500; }
#screen-body { flex: 1; display: flex; flex-direction: column; }
.nav-row { display: flex; gap: 8px; margin-top: 16px; }
#back-btn { flex: 1; }
#next-btn { flex: 2; }
