/* QUEST design tokens. Colours are sampled from the official conclave brochure. */
:root {
  --navy: #284287;
  --navy-600: #1f3573;
  --navy-900: #0e1a3d;
  --green: #34a77b;
  --green-600: #1f8059;
  --red: #b71c2b;
  --red-600: #9a1623;
  --lime: #cce256;
  --paper: #e7e7e5;
  --sky: #ebf8fe;
  --line: #d5dae6;
  --ink: #0e1a3d;
  --muted: #56617d;
  --white: #ffffff;
  --grad: linear-gradient(100deg, #284287 0%, #284287 32%, #34a77b 100%);
  --spectrum: linear-gradient(90deg, #294793 0%, #2e758f 25%, #6b6bb0 50%, #c0c7c7 75%, #c42427 100%);
  --radius: 18px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Poppins', 'Manrope', system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 24px; border-radius: 999px; border: 2px solid transparent; font-weight: 800; font-size: 15px; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 24px -12px rgba(183, 28, 43, .7); }
.btn-red:hover { background: var(--red-600); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-600); }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--lime); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* Form controls */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 13px; font-weight: 800; letter-spacing: .02em; color: var(--navy-900); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field .err { font-size: 12.5px; color: var(--red); font-weight: 700; min-height: 0; }
.input, .select, .textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-size: 15.5px; transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 96px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: #aab3c9; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(40, 66, 135, .14); }
.field.bad .input, .field.bad .select, .field.bad .textarea { border-color: var(--red); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}