:root {
  --navy: #1B3A5C;
  --navy-light: #2D5A8F;
  --navy-dark: #0F2535;
  --gold: #C9A24B;
  --gold-light: #DDBE73;
  --cream: #FAF8F1;
  --surface: #F5F0E4;
  --surface-alt: #EDE6D5;
  --border: #DDD5C0;
  --text: #24211B;
  --text-muted: #6B6255;
  --white: #FFFFFF;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--sans); background: var(--cream); color: var(--text); line-height: 1.6; }
#app { max-width: 640px; margin: 0 auto; min-height: 100vh; background: var(--white); box-shadow: 0 0 40px rgba(0,0,0,0.06); }

/* === HERO === */
.hero { position: relative; height: 420px; overflow: hidden; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,37,53,0.35) 0%, rgba(15,37,53,0.15) 40%, rgba(15,37,53,0.65) 100%); }
.hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 0 24px 32px; text-align: center; }
.hero-badge { display: inline-block; background: var(--gold); color: var(--navy-dark); font-size: 11px; font-weight: 700; padding: 4px 16px; border-radius: 20px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.hero-title { font-family: var(--serif); font-size: 28px; font-weight: 900; color: var(--white); text-shadow: 0 2px 8px rgba(0,0,0,0.25); margin-bottom: 6px; line-height: 1.1; }
.hero-sub { font-size: 13px; color: rgba(255,255,255,0.85); max-width: 320px; }

/* === ADDRESS BOX === */
.addr-box { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 16px 24px 0; padding: 16px 20px; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--gold); border-radius: 12px; }
.addr-icon { font-size: 22px; line-height: 1; margin-bottom: 6px; }
.addr-body { width: 100%; }
.addr-label { font-size: 11px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; }
.addr-street { font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.addr-city { font-size: 14px; color: var(--text-muted); line-height: 1.3; }
.addr-map { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--navy); text-decoration: none; border-bottom: 1.5px solid var(--gold); padding-bottom: 1px; }
.addr-map:hover { color: var(--navy-light); }
.addr-phone { width: 100%; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.addr-phone-label { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.addr-phone a { font-size: 14px; font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap; }
.addr-phone a:hover { color: var(--navy-light); }

/* === QUIZ === */
.quiz-container { padding: 28px 24px 40px; }
.quiz-intro { text-align: center; margin-bottom: 24px; }
.quiz-intro h2 { font-family: var(--serif); font-size: 24px; color: var(--navy); margin-bottom: 6px; font-weight: 700; }
.quiz-intro p { font-size: 14px; color: var(--text-muted); }
.progress-bar { height: 3px; background: var(--border); border-radius: 2px; margin-bottom: 24px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--gold); border-radius: 2px; transition: width 0.3s; }
.question-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin-bottom: 20px; }
.question-card .q-label { font-size: 11px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.question-card .q-text { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 18px; line-height: 1.3; }
.options { display: flex; flex-direction: column; gap: 10px; }
.option-btn { background: var(--white); border: 2px solid var(--border); border-radius: 12px; padding: 16px 18px; font-size: 15px; color: var(--text); cursor: pointer; text-align: left; transition: all 0.2s; font-weight: 600; font-family: var(--sans); }
.option-btn:hover { border-color: var(--navy-light); background: #EEF2F7; }
.option-btn.selected { border-color: var(--navy); background: #E4EAF1; color: var(--navy-dark); box-shadow: 0 2px 8px rgba(27,58,92,0.08); }
.option-btn .opt-desc { display: block; font-size: 13px; color: var(--text-muted); margin-top: 3px; font-weight: 400; }
.option-btn.selected .opt-desc { color: var(--navy-light); }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.btn-primary { background: var(--navy); color: var(--cream); border: none; padding: 14px 32px; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background 0.2s; font-family: var(--sans); }
.btn-primary:hover { background: var(--navy-light); }
.btn-primary:disabled { background: var(--border); color: var(--text-muted); cursor: not-allowed; }
.btn-back { background: transparent; border: none; color: var(--text-muted); font-size: 14px; cursor: pointer; padding: 8px; font-family: var(--sans); }
.btn-back:hover { color: var(--navy); }

/* === RESULT === */
.result-container { padding: 0 0 40px; }
.result-intro { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); padding: 32px 24px; color: var(--cream); }
.result-intro .itinerary-tag { display: inline-block; background: var(--gold); color: var(--navy-dark); font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: 20px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.result-intro h2 { font-family: var(--serif); font-size: 26px; font-weight: 700; margin-bottom: 8px; line-height: 1.2; }
.result-intro p { font-size: 14px; opacity: 0.9; line-height: 1.5; }
.result-intro .result-meta { font-size: 12px; opacity: 0.75; margin-top: 8px; }

.result-body { padding: 24px; }

.video-embed { margin: 0 0 20px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.video-embed iframe { width: 100%; height: 260px; border: none; display: block; }

.section-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; margin-bottom: 16px; }
.section-card h3 { font-size: 12px; font-weight: 700; color: var(--gold); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 6px; }
.section-card h3 .section-icon { font-size: 14px; }
.section-card ul { list-style: none; padding: 0; }
.section-card li { font-size: 14px; color: var(--text); margin-bottom: 10px; padding-left: 22px; position: relative; line-height: 1.5; }
.section-card li::before { content: '\2192'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

.split-card { background: #E8EEF4; border: 1px solid #C7D5E5; border-radius: 14px; padding: 22px; margin-bottom: 16px; }
.split-card h3 { font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; }
.split-card p { font-size: 14px; color: var(--text); line-height: 1.5; }

.stop-item { display: flex; gap: 14px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.stop-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.stop-time { flex-shrink: 0; width: 72px; font-size: 11px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.5px; text-align: right; padding-top: 3px; }
.stop-time .stop-dur { display: block; font-size: 10px; color: var(--text-muted); font-weight: 500; margin-top: 2px; text-transform: none; }
.stop-content { flex: 1; }
.stop-content .stop-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.stop-content .stop-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.stop-item.accent .stop-name::after { content: ' \2605'; color: var(--gold); }

.dining-card { background: #FDF4ED; border: 1px solid #F0DBC4; border-radius: 14px; padding: 22px; margin-bottom: 16px; }
.dining-card h3 { font-size: 12px; font-weight: 700; color: #B0722E; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; }
.dining-item { margin-bottom: 12px; }
.dining-item:last-child { margin-bottom: 0; }
.dining-item .d-name { font-size: 15px; font-weight: 700; color: var(--text); }
.dining-item .d-desc { font-size: 13px; color: var(--text-muted); }

.tips-card { background: #E8EEF4; border: 1px solid #C7D5E5; border-radius: 14px; padding: 22px; margin-bottom: 16px; }
.tips-card h3 { font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; }
.tips-card ul { list-style: none; padding: 0; }
.tips-card li { font-size: 14px; color: var(--text); margin-bottom: 10px; padding-left: 22px; position: relative; }
.tips-card li::before { content: '\2713'; position: absolute; left: 0; color: var(--navy); font-weight: 700; }

.logistics-box { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; margin-bottom: 16px; }
.logistics-box h3 { font-size: 12px; font-weight: 700; color: var(--gold); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.logistics-box .logi-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.logi-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 12px; }
.logi-card h4 { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.logi-card p { font-size: 14px; color: var(--text); }
.logi-sub { display: block; font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.route-list { padding-left: 20px; margin: 8px 0; }
.route-list li { font-size: 13px; color: var(--text); margin-bottom: 4px; }
.logi-map { display: inline-block; font-size: 13px; color: var(--navy); font-weight: 600; text-decoration: none; margin-top: 8px; }
.logi-map:hover { color: var(--navy-light); }
.pack-list { list-style: none; padding: 0; }
.pack-list li { font-size: 13px; color: var(--text); margin-bottom: 6px; padding-left: 16px; position: relative; }
.pack-list li::before { content: '\2022'; position: absolute; left: 0; color: var(--gold); }

.lead-box { background: var(--white); border: 2px solid var(--navy); border-radius: 14px; padding: 22px; margin-bottom: 16px; }
.lead-box h3 { font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; text-align: center; }
.lead-form { display: flex; flex-direction: column; gap: 12px; }
.lead-form label { font-size: 12px; font-weight: 600; color: var(--text-muted); display: block; margin-bottom: 4px; text-align: center; }
.lead-form input { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: var(--sans); color: var(--text); }
.lead-form input:focus { outline: none; border-color: var(--navy); }
.lead-form-row { display: flex; gap: 12px; }
.lead-form-row > div { flex: 1; }
.lead-form .btn-primary { align-self: center; }
.saved-msg { font-size: 14px; color: var(--navy); font-weight: 600; }

.cta-box { background: var(--navy); border-radius: 14px; padding: 28px 24px; text-align: center; color: var(--cream); margin-bottom: 20px; }
.cta-box h3 { font-family: var(--serif); font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.cta-box p { font-size: 14px; opacity: 0.85; margin-bottom: 18px; }
.cta-btn { display: inline-block; background: var(--gold); color: var(--navy-dark); font-size: 15px; font-weight: 700; padding: 13px 32px; border-radius: 10px; text-decoration: none; }
.cta-btn:hover { background: var(--gold-light); }

.btn-row { display: flex; gap: 12px; justify-content: center; margin-bottom: 8px; }
.btn-secondary { background: var(--white); border: 1px solid var(--border); color: var(--text); font-size: 14px; padding: 12px 24px; border-radius: 10px; cursor: pointer; font-family: var(--sans); font-weight: 600; }
.btn-secondary:hover { border-color: var(--navy); }
.btn-secondary.accent { border-color: var(--gold); color: var(--navy); }

.note-muted { font-size: 12px; color: var(--text-muted); text-align: center; margin-bottom: 16px; line-height: 1.4; }

.restart-btn { display: block; margin: 0 auto; background: transparent; border: 1px solid var(--border); color: var(--text-muted); font-size: 14px; padding: 12px 28px; border-radius: 10px; cursor: pointer; font-family: var(--sans); }
.restart-btn:hover { border-color: var(--navy); color: var(--navy); }

/* === VISION === */
.vision-section { padding: 0 24px 40px; }
.vision-trigger { background: linear-gradient(135deg, #6B2D3E 0%, #4A1E2A 100%); border-radius: 14px; padding: 24px; color: var(--cream); text-align: center; margin-bottom: 16px; cursor: pointer; transition: opacity 0.2s; }
.vision-trigger:hover { opacity: 0.95; }
.vision-trigger h3 { font-family: var(--serif); font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.vision-trigger p { font-size: 13px; opacity: 0.9; }
.vision-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.vision-sample { background: var(--surface); border: 2px solid var(--border); border-radius: 12px; overflow: hidden; cursor: pointer; transition: border-color 0.2s; }
.vision-sample:hover { border-color: var(--gold); }
.vision-sample img { width: 100%; height: 90px; object-fit: cover; display: block; }
.vision-sample .vs-label { padding: 6px 4px; font-size: 10px; text-align: center; color: var(--text-muted); font-weight: 500; }
.vision-result { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; margin-bottom: 16px; }
.vision-result h3 { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.vision-result p { font-size: 14px; color: var(--text); margin-bottom: 8px; line-height: 1.5; }
.vision-result .vr-fact { font-size: 13px; color: var(--text-muted); font-style: italic; }

/* === FOOTER === */
.footer { background: var(--navy-dark); color: var(--cream); padding: 24px 24px 80px; text-align: center; }
.footer p { font-size: 13px; opacity: 0.85; }
.footer .footer-powered { font-size: 11px; opacity: 0.6; margin-top: 4px; }
.footer a { color: var(--gold-light); }
.hidden { display: none; }

@media (max-width: 480px) {
  .hero { height: 360px; }
  .hero-title { font-size: 22px; }
  .quiz-intro h2 { font-size: 20px; }
  .question-card { padding: 20px; }
  .question-card .q-text { font-size: 18px; }
  .option-btn { font-size: 14px; padding: 14px 16px; }
  .result-intro h2 { font-size: 22px; }
  .stop-time { width: 60px; font-size: 10px; }
  .stop-content .stop-name { font-size: 14px; }
  .lead-form-row { flex-direction: column; }
}


/* ===== MOBILE / iOS DARK MODE FIX =====
   iOS Safari forces dark backgrounds on form controls unless we
   explicitly declare a light color-scheme and pin input colors. */
:root { color-scheme: light only; }
html, body { color-scheme: light only; }
body { background: var(--cream); }

input, textarea, select, button {
  color-scheme: light only;
  -webkit-appearance: none;
  appearance: none;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
input[type="search"],
textarea,
select {
  background-color: #ffffff !important;
  background-image: none !important;
  color: #1a1a1a !important;
  -webkit-text-fill-color: #1a1a1a !important;
  border: 1.5px solid #c9c6bf !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  font-size: 16px !important;   /* 16px prevents iOS zoom-on-focus */
  line-height: 1.4 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  opacity: 1 !important;
  font-family: inherit;
}

input::placeholder,
textarea::placeholder {
  color: #8a8a8a !important;
  -webkit-text-fill-color: #8a8a8a !important;
  opacity: 1 !important;
}

input:focus,
textarea:focus,
select:focus {
  outline: none !important;
  border-color: #1B3A5C !important;
  box-shadow: 0 0 0 3px rgba(27,58,92,0.15) !important;
}

/* Autofill on iOS/Safari turns fields yellow-on-dark — force it back */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #1a1a1a !important;
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
}

/* Field labels must stay dark on light */
label, .lead-form label, .handoff label {
  color: #2b2b2b !important;
}

/* Checkbox: keep it visible and tappable */
input[type="checkbox"] {
  -webkit-appearance: checkbox !important;
  appearance: checkbox !important;
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
  accent-color: #1B3A5C;
  background-color: #ffffff !important;
  border: 1.5px solid #c9c6bf !important;
  flex-shrink: 0;
  padding: 0 !important;
}

.consent-check {
  display: flex !important;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  color: #2b2b2b !important;
  font-size: 14px;
  line-height: 1.45;
}

/* Buttons stay legible */
button, .btn-primary, input[type="submit"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  font-size: 16px !important;
  cursor: pointer;
}

/* Block any OS-level dark override on the whole card */
@media (prefers-color-scheme: dark) {
  body { background: var(--cream) !important; }
  #app { background: var(--white) !important; }
  input[type="text"], input[type="email"], input[type="tel"],
  input[type="date"], input[type="number"], input[type="search"],
  textarea, select {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    -webkit-text-fill-color: #1a1a1a !important;
    border-color: #c9c6bf !important;
  }
  input::placeholder, textarea::placeholder {
    color: #8a8a8a !important;
    -webkit-text-fill-color: #8a8a8a !important;
  }
  label, .consent-check { color: #2b2b2b !important; }
}

/* Tighter mobile spacing for the lead form */
@media (max-width: 520px) {
  .lead-form-row { display: block !important; }
  .lead-form-row > div { margin-bottom: 12px; }
}
