:root {
  --bg: #111111;
  --surface: #161410;
  --card: #1c1a15;
  --border: rgba(255, 255, 255, 0.1);
  --border-light: rgba(255, 255, 255, 0.05);
  --primary: #C0FC41;
  --primary-dim: rgba(192, 252, 65, 0.12);
  --primary-glow: rgba(192, 252, 65, 0.2);
  --on-primary: #111111;
  --text: #f0ede6;
  --text-dim: #9e9a8e;
  --text-muted: #635f54;
  --danger: #ef4444;
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Outfit', system-ui, sans-serif;
  --max: 720px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: linear-gradient(to bottom, rgba(17, 17, 17, 0.92), rgba(17, 17, 17, 0.6));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px 12px;
  text-decoration: none;
  color: inherit;
}
.brand-wordmark {
  display: block;
  height: auto;
  max-height: 18px;
  width: auto;
  max-width: 120px;
}

.header-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.header-link:hover { color: var(--text); }

.page {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 20px 80px;
}

.hero { margin-bottom: 28px; }
.hero-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.hero h1, .success h2 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.lede, .step-desc { color: var(--text-dim); font-size: 0.95rem; }
.lede strong, .step-desc strong { color: var(--text); font-weight: 600; }

.progress-wrap { margin-bottom: 24px; }
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
#stepTitle { color: var(--text-dim); font-weight: 700; }

.step-pills {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}
.step-pill {
  height: 4px;
  border-radius: 999px;
  background: var(--border-light);
  transition: background 0.2s;
}
.step-pill.active { background: var(--primary); }
.step-pill.done { background: rgba(192, 252, 65, 0.45); }

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.form-step h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.step-desc { margin-bottom: 20px; }

.notice-grid {
  display: grid;
  gap: 12px;
}
@media (min-width: 640px) { .notice-grid { grid-template-columns: repeat(3, 1fr); } }
.notice {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-light);
}
.notice strong { display: block; font-size: 0.88rem; margin-bottom: 4px; color: var(--text); }
.notice p { font-size: 0.82rem; color: var(--text-dim); line-height: 1.45; }

.field { margin-bottom: 16px; }
.field label, .field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  color: var(--text-dim);
}
.opt { font-weight: 500; color: var(--text-muted); }

input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(192, 252, 65, 0.45);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
input:disabled { opacity: 0.45; }
textarea { resize: vertical; min-height: 80px; }

.grid-2 { display: grid; gap: 12px; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-dim);
  cursor: pointer;
}
.checkbox-row input { width: auto; accent-color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.consent {
  margin-top: 20px;
  padding: 14px;
  background: var(--surface);
  border-radius: var(--radius-sm);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.chips label:has(input:checked) {
  background: var(--primary-dim);
  border-color: rgba(192, 252, 65, 0.35);
  color: var(--primary);
}
.chips input { width: auto; accent-color: var(--primary); }

.survey-list { display: grid; gap: 16px; }

.review-grid { display: grid; gap: 12px; }
.review-block h3 {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.review-block p { font-size: 0.9rem; margin-bottom: 4px; }
.review-block p.muted { color: var(--text-dim); }
.review-block.full { grid-column: 1 / -1; }
.review-actions { margin: 16px 0 8px; }

.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
}
.nav-right { display: flex; gap: 10px; flex-wrap: wrap; }

.btn {
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 8px 24px var(--primary-glow);
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.05); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  padding: 12px 14px;
}
.btn-sm { padding: 8px 14px; font-size: 0.8rem; }
.danger-text { color: var(--danger); }

.success { text-align: center; padding: 40px 24px; }
.success .lede { margin-bottom: 12px; }
.success-wordmark {
  display: block;
  margin: 0 auto 20px;
  opacity: 0.95;
}
.wa-btn {
  display: inline-flex;
  margin: 20px 0;
  text-decoration: none;
}
#anotherRiderBtn { margin-top: 12px; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 100;
  max-width: 90vw;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 559px) {
  .form-nav { flex-direction: column; align-items: stretch; }
  .nav-right { justify-content: stretch; }
  .nav-right .btn { flex: 1; text-align: center; }
  .notice-grid { grid-template-columns: 1fr; }
}
