/* ── Variables ─────────────────────────────────────────────── */
:root {
  --teal:      #069494;
  --teal-dark: #057a7a;
  --teal-light:#e6f7f7;
  --gold:      #D4A85C;
  --gold-light:#fdf6e8;
  --cream:     #FDFBD4;
  --cream-bg:  #f9f8ed;
  --sidebar-bg:#0f2e2e;
  --text:      #1a2e2e;
  --text-muted:#5a7070;
  --border:    #d5e5e5;
  --error:     #c0392b;
  --white:     #ffffff;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow:    0 2px 12px rgba(6,148,148,.08);
  --shadow-lg: 0 8px 32px rgba(6,148,148,.12);
  --font: 'General Sans', -apple-system, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--cream-bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.6;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
input, select, textarea, button { font-family: inherit; font-size: 15px; }

/* ── Container ─────────────────────────────────────────────── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
}
.logo-lockup { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 36px; height: 36px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-weight: 600; font-size: 15px; color: var(--text); }
.logo-sub  { font-size: 11px; color: var(--text-muted); letter-spacing: .02em; }
.header-contact { display: flex; align-items: center; }
.contact-link {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--teal);
  padding: 6px 14px; border: 1.5px solid var(--teal);
  border-radius: 20px; transition: background .15s, color .15s;
}
.contact-link:hover { background: var(--teal); color: #fff; text-decoration: none; }

/* ── Page Switching ────────────────────────────────────────── */
.page { display: none; flex: 1; }
.page.active { display: block; }

/* ── Hero / Route Picker ───────────────────────────────────── */
.hero {
  padding: 64px 0 80px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 600; color: var(--text);
  line-height: 1.2; margin-bottom: 14px;
}
.hero-desc {
  max-width: 500px; margin: 0 auto 40px;
  color: var(--text-muted); font-size: 16px;
}

/* Route cards */
.route-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto 36px;
}
.route-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  display: flex; flex-direction: column; gap: 10px;
}
.route-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.route-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.route-icon.teal { background: var(--teal-light); color: var(--teal); }
.route-icon.gold { background: var(--gold-light); color: var(--gold); }
.route-title { font-size: 17px; font-weight: 600; color: var(--text); }
.route-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; flex: 1; }
.route-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--teal);
  margin-top: 4px;
}

.trust-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-muted);
}

/* ── Form Shell ────────────────────────────────────────────── */
.form-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 68px);
}

/* Sidebar */
.form-sidebar {
  background: var(--sidebar-bg);
  color: #c8dede;
  padding: 32px 28px 40px;
  display: flex; flex-direction: column; gap: 28px;
}
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  color: #8ab8b8; font-size: 13px; font-weight: 500;
  padding: 0; transition: color .15s;
}
.back-btn:hover { color: #ffffff; }
.sidebar-brand { display: flex; flex-direction: column; gap: 10px; }
.sidebar-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.sidebar-icon.teal { background: rgba(6,148,148,.25); color: #4dd8d8; }
.sidebar-icon.gold { background: rgba(212,168,92,.2); color: #e8c07c; }
.sidebar-title { font-size: 17px; font-weight: 600; color: #ffffff; line-height: 1.3; }
.sidebar-note { font-size: 13px; color: #8ab8b8; line-height: 1.6; }

/* Steps indicator */
.sidebar-steps { display: flex; flex-direction: column; gap: 6px; }
.step {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: #6a9898; padding: 8px 10px;
  border-radius: 8px; transition: background .15s, color .15s;
}
.step span {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #6a9898;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; flex-shrink: 0;
}
.step.active { color: #ffffff; background: rgba(6,148,148,.25); }
.step.active span { background: var(--teal); color: #fff; }
.step.done { color: #4dd8d8; }
.step.done span { background: var(--teal); color: #fff; }

/* Sidebar info (supervision) */
.sidebar-info { display: flex; flex-direction: column; gap: 12px; }
.info-item { display: flex; flex-direction: column; gap: 2px; }
.info-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #6a9898; }
.info-val { font-size: 13.5px; color: #c8dede; font-weight: 500; }

.sidebar-contact { margin-top: auto; }
.sidebar-contact p { font-size: 12px; color: #6a9898; margin-bottom: 4px; }
.sidebar-contact a { color: #4dd8d8; font-weight: 600; font-size: 15px; }
.sidebar-contact a:hover { color: #fff; }

/* Form body */
.form-body {
  background: var(--white);
  padding: 48px 52px 60px;
  overflow-y: auto;
}

/* Steps */
.form-step { display: none; border: none; padding: 0; }
.form-step.active { display: block; }
.step-legend {
  font-size: 20px; font-weight: 600; color: var(--text);
  margin-bottom: 28px; padding: 0;
  border-bottom: 2px solid var(--teal-light);
  padding-bottom: 14px;
}

/* Fields */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.field label { font-size: 13px; font-weight: 500; color: var(--text); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.req { color: var(--error); }
input[type="text"], input[type="email"], input[type="tel"],
input[type="date"], input[type="month"], select, textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(6,148,148,.1);
}
input.invalid, select.invalid, textarea.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(192,57,43,.08);
}
textarea { resize: vertical; min-height: 100px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a7070' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.field-error { font-size: 12px; color: var(--error); min-height: 16px; }

/* Radio group */
.radio-group { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; margin-bottom: 20px; }
.radio-option {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text); cursor: pointer;
  padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  transition: border-color .15s, background .15s;
}
.radio-option:has(input:checked) {
  border-color: var(--teal); background: var(--teal-light);
}
.radio-option input[type="radio"] { accent-color: var(--teal); width: 16px; height: 16px; flex-shrink: 0; }

/* Checkbox consent */
.consent-box {
  background: #f5f9f9; border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin: 24px 0;
}
.checkbox-option {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text-muted); cursor: pointer; line-height: 1.55;
}
.checkbox-option input[type="checkbox"] {
  accent-color: var(--teal); width: 16px; height: 16px;
  flex-shrink: 0; margin-top: 2px;
  width: auto; padding: 0; border: none; box-shadow: none;
}

/* Step nav */
.step-nav {
  display: flex; align-items: center;
  justify-content: space-between; margin-top: 8px;
}
.step-nav.single { justify-content: flex-end; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: #fff;
  font-size: 14px; font-weight: 600;
  padding: 11px 24px; border: none; border-radius: 8px;
  cursor: pointer; transition: background .15s, transform .1s;
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-primary:active { transform: none; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--teal);
  font-size: 14px; font-weight: 500;
  padding: 11px 20px;
  border: 1.5px solid var(--teal); border-radius: 8px;
  cursor: pointer; transition: background .15s;
}
.btn-outline:hover { background: var(--teal-light); text-decoration: none; }
.btn-submit { min-width: 180px; justify-content: center; position: relative; }
.btn-spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn-submit.loading .btn-text { opacity: 0; }
.btn-submit.loading .btn-spinner { display: block; position: absolute; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Thank You ─────────────────────────────────────────────── */
.thankyou-shell {
  max-width: 560px;
  padding-top: 80px; padding-bottom: 80px;
  text-align: center;
}
.thankyou-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--teal-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.thankyou-title { font-size: 28px; font-weight: 600; margin-bottom: 12px; }
.thankyou-desc { font-size: 15px; color: var(--text-muted); margin-bottom: 32px; }
.thankyou-next {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 28px;
  text-align: left; margin-bottom: 32px;
}
.next-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 12px; }
.next-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.next-list li { font-size: 14px; color: var(--text); padding-left: 20px; position: relative; }
.next-list li::before { content: '→'; position: absolute; left: 0; color: var(--teal); font-weight: 600; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 28px 0;
  margin-top: auto;
}
.footer-inner {
  display: flex; flex-direction: column; gap: 8px;
  align-items: center; text-align: center;
  max-width: 1100px;
}
.footer-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; color: var(--text);
}
.footer-note { font-size: 13px; color: var(--text-muted); }
.footer-legal { font-size: 11.5px; color: #9ab4b4; max-width: 560px; line-height: 1.5; }

/* ── Error Toast ────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #2d2d2d; color: #fff;
  padding: 12px 24px; border-radius: 8px;
  font-size: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.2);
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
  z-index: 999;
}
.toast.show { opacity: 1; pointer-events: auto; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .route-cards { grid-template-columns: 1fr; }
  .form-shell { grid-template-columns: 1fr; }
  .form-sidebar {
    display: none;  /* hide sidebar on mobile; back button in header */
  }
  .form-body { padding: 32px 20px 48px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .step-legend { font-size: 18px; }
  /* show back button at top of form on mobile */
  .form-body::before {
    content: none;
  }
  .form-body { position: relative; }
  .hero { padding: 40px 0 56px; }
  .hero-title { font-size: 26px; }
  .thankyou-shell { padding-top: 48px; }
}
@media (max-width: 480px) {
  .trust-bar { gap: 6px; font-size: 11.5px; }
  .trust-bar span:nth-child(even) { display: none; }
}
