/* ===================================================
   VisumVoor Design System — wizard.css
   Prototype-driven styling. Layout/spacing via Tailwind.
   =================================================== */

/* --- Custom properties --- */
:root {
  --bg: #F7F7F7;
  --surface: #FFFFFF;
  --ink: #0A0A0A;
  --ink-secondary: #3D3D3D;
  --ink-muted: #6B6B6B;
  --border: #C8C8C8;
  --border-light: #E2E2E2;
  --accent: #0040D0;
  --accent-hover: #0033A8;
  --accent-bg: #EEF2FF;
  --green: #0B6E2F;
  --green-bg: #ECFDF3;
  --red: #B91C1C;
  --red-bg: #FEF2F2;
  --orange: #B45309;
  --focus-ring: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Base reset/body --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  font-size: 15px;
  text-rendering: optimizeLegibility;
}

/* --- Accessibility: skip link --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 8px 16px;
  background: var(--accent);
  color: white;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
}
.skip-link:focus {
  left: 50%;
  transform: translateX(-50%);
}

/* --- Accessibility: focus-visible --- */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

button:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.speed-btn:focus-visible,
.counter-btn:focus-visible,
.yn-btn:focus-visible,
.traveler-nav-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-input:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 64, 208, 0.15);
  outline: none;
}

.country-card:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.checkbox-row input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: none;
}

/* --- Header --- */
header {
  background: var(--surface);
  box-shadow: inset 0 -1px 0 var(--border);
}

.header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.3px;
  color: var(--ink);
  text-decoration: none;
  font-variation-settings: 'opsz' 72;
}

.header-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
  flex-shrink: 0;
}

.header-tag {
  font-size: 10.5px;
  color: var(--ink-muted);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 500;
}

/* --- Main container --- */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* --- Step indicator --- */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
  padding: 0 4px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
}
.step-item.active { color: var(--ink); }
.step-item.done { color: var(--green); cursor: pointer; }
.step-item.done:hover { opacity: 0.8; }

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  transition: all 0.2s;
  flex-shrink: 0;
}

.step-item.active .step-num {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.step-item.done .step-num {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 12px;
  min-width: 20px;
}
.step-line.done { background: var(--green); }

.step-label { display: none; }

@media (min-width: 640px) {
  .step-label { display: inline; }
}

/* --- Headings --- */
.page-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.1px;
  line-height: 1.25;
  margin-bottom: 8px;
  font-variation-settings: 'opsz' 72;
}

.page-subtitle {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* --- Resume banner --- */
.resume-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--accent-bg);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 8px;
  margin-bottom: 28px;
}
.resume-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: var(--ink);
}
.resume-banner-text strong { font-size: 14px; }
.resume-banner-text span { color: var(--ink-muted); }
.resume-banner-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  transition: background 0.12s;
}
.resume-banner-btn:hover { background: white; }

/* --- Super Spoed banner --- */
.super-rush-banner {
  margin-top: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #FFF7ED 0%, #FEF3C7 100%);
  border: 1px solid #F59E0B;
  border-radius: 8px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.super-rush-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}
.super-rush-content { flex: 1; }
.super-rush-title {
  font-weight: 700;
  font-size: 15px;
  color: #92400E;
  margin-bottom: 4px;
}
.super-rush-text {
  font-size: 13px;
  color: #78350F;
  line-height: 1.5;
  margin-bottom: 10px;
}
.super-rush-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #92400E;
  cursor: pointer;
}
.super-rush-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #F59E0B;
  cursor: pointer;
}

/* --- Country grid --- */
.country-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) {
  .country-grid { grid-template-columns: repeat(3, 1fr); }
}

.country-card {
  padding: 16px;
  background: var(--surface);
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.12s, box-shadow 0.12s;
  position: relative;
  text-decoration: none;
  display: block;
  color: inherit;
}
.country-card:hover {
  border-color: var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.country-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 1px 4px rgba(0,70,229,0.08);
}

.country-flag { font-size: 28px; margin-bottom: 6px; display: block; }
.country-name { font-weight: 600; font-size: 14px; margin-bottom: 1px; letter-spacing: -0.1px; }
.country-visa-type { font-size: 11px; color: var(--ink-muted); font-weight: 500; letter-spacing: 0.2px; }
.country-price { margin-top: 6px; font-size: 13px; color: var(--ink-secondary); }
.country-price strong { color: var(--ink); font-weight: 600; }

.country-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  display: none;
  align-items: center;
  justify-content: center;
}
.country-card.selected .country-check { display: flex; }

/* --- Cards --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.card-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.1px;
}

.card-body { padding: 20px; }

/* --- Form elements --- */
.form-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.035);
}
.form-group:last-child { border-bottom: none; }

@media (min-width: 640px) {
  .form-group {
    display: grid;
    grid-template-columns: 160px 1fr;
    grid-template-rows: auto auto;
    gap: 5px 16px;
    align-items: center;
  }
  .form-group.full-width {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
  letter-spacing: 0.1px;
  flex-shrink: 0;
}
.form-label .req { color: var(--red); }
.form-label.has-help {
  text-decoration: underline dotted rgba(0,0,0,0.2);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  cursor: help;
}

/* Visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- Field help --- */
.field-help {
  display: none;
  grid-column: 1 / -1;
  background: #F5F7FA;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-secondary);
  animation: helpSlide 0.15s ease;
}
.field-help.visible { display: block; }
.field-help p { margin: 0 0 8px; }
.field-help p:last-child { margin-bottom: 0; }
.field-help img { max-width: 100%; border-radius: 4px; margin: 8px 0; border: 1px solid rgba(0,0,0,0.08); }
.field-help strong { color: var(--ink); font-weight: 600; }
.field-help code { background: rgba(0,0,0,0.05); padding: 1px 5px; border-radius: 3px; font-size: 12px; }

@keyframes helpSlide {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Inline field validation --- */
.field-validation {
  font-size: 12px;
  line-height: 1.4;
  padding: 4px 0 0;
}
.field-validation.error { color: var(--red); }
.field-validation.warning { color: var(--orange); }
.form-group.has-error .form-input,
.form-group.has-error .combo-input { border-color: var(--red); }

@media (min-width: 640px) {
  .field-validation {
    grid-column: 2;
  }
}

/* --- Help trigger button --- */
.help-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 9999px;
  background: #e5e7eb;
  color: #6b7280;
  font-size: 0.625rem;
  font-weight: 700;
  cursor: pointer;
  margin-left: 0.25rem;
  vertical-align: middle;
  border: none;
  line-height: 1;
}
.help-trigger:hover { background: #d1d5db; color: #374151; }
/* Legacy help-content (backwards compat) */
.help-content {
  display: none;
  grid-column: 1 / -1;
  background: #F5F7FA;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 6px;
  padding: 12px 14px;
  margin-top: 0.5rem;
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.5;
}
.help-content.visible { display: block; }
.help-content p { margin-bottom: 0.5rem; }
.help-content p:last-child { margin-bottom: 0; }

/* --- Form input --- */
.form-input {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 12px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.12s, box-shadow 0.12s;
  outline: none;
  flex: 1;
  min-width: 0;
  width: 100%;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 64, 208, 0.15);
}
.form-input::placeholder { color: #9A9A9A; }

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23999' d='M4.427 6.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 6H4.604a.25.25 0 00-.177.427z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

textarea.form-input {
  resize: vertical;
  min-height: 80px;
}

/* --- Searchable select (combobox) --- */
.combo-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.combo-input {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 36px 10px 12px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.12s, box-shadow 0.12s;
  outline: none;
  width: 100%;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23999' d='M4.427 6.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 6H4.604a.25.25 0 00-.177.427z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.combo-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 64, 208, 0.15);
  cursor: text;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
}
.combo-input::placeholder { color: #9A9A9A; }

.combo-list {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 60;
  padding: 4px;
}
.combo-list.open { display: block; }

.combo-option {
  padding: 8px 10px;
  font-size: 14px;
  color: var(--ink);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.08s;
}
.combo-option:hover,
.combo-option.highlighted {
  background: var(--accent-bg);
  color: var(--accent);
}
.combo-option.selected { font-weight: 600; }

.combo-empty {
  padding: 10px;
  font-size: 13px;
  color: var(--ink-muted);
  text-align: center;
}

/* --- Section divider --- */
.section-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: var(--ink-secondary);
  margin-bottom: 14px;
  padding-top: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-light);
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-muted);
  flex-shrink: 0;
}

/* --- Section description --- */
.section-description {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

/* --- Inline options (travelers count, speed) --- */
.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}
.option-row:last-child { border-bottom: none; }

.option-label { font-weight: 500; font-size: 14px; }
.option-description { font-size: 12px; color: var(--ink-muted); margin-top: 1px; }

.counter {
  display: flex;
  align-items: center;
  gap: 16px;
}

.counter-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: border-color 0.12s, background 0.12s;
  font-family: var(--font-body);
}
.counter-btn:hover { border-color: var(--ink); background: var(--bg); }
.counter-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.counter-value {
  font-size: 16px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* --- Speed toggle --- */
.speed-options { display: flex; gap: 8px; }

.speed-btn {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s;
  color: var(--ink-secondary);
  min-height: 44px;
}
.speed-btn:hover { border-color: var(--ink-muted); }
.speed-btn.active {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent);
}

/* --- Upload area --- */
.upload-area {
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  padding: 24px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
  background: var(--bg);
}
.upload-area:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
}
.upload-area.has-file {
  border-style: solid;
  border-color: var(--green);
  background: var(--green-bg);
}
.upload-area:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.doc-upload-spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: doc-spin 0.7s linear infinite;
}
@keyframes doc-spin { to { transform: rotate(360deg); } }

.upload-icon { margin-bottom: 6px; color: var(--ink-muted); }
.upload-text { font-size: 13px; color: var(--ink-secondary); }
.upload-text strong { color: var(--accent); font-weight: 500; }
.upload-hint { font-size: 11px; color: var(--ink-muted); margin-top: 3px; }

.skip-upload-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 8px 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.skip-upload-btn:hover { color: var(--ink-secondary); }

/* --- Document upload later --- */
.doc-skip-link {
  display: inline-block;
  margin-top: 14px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.doc-skip-link:hover { color: var(--ink-secondary); }

.doc-later-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--surface-alt, #FAFAFA);
}
.doc-later-icon {
  flex-shrink: 0;
  color: var(--ink-muted);
}
.doc-later-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.doc-later-text {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 1px;
}
.doc-later-undo {
  margin-left: auto;
  flex-shrink: 0;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}
.doc-later-undo:hover { text-decoration: underline; }

/* --- Review data list --- */
.data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.data-item dt {
  font-size: 11px;
  color: var(--ink-muted);
  margin-bottom: 1px;
  letter-spacing: 0.2px;
}
.data-item dd {
  font-size: 14px;
  font-weight: 500;
}

/* --- Price block --- */
.price-block {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-label {
  font-size: 12px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.3px;
  font-variation-settings: 'opsz' 72;
  line-height: 1;
  margin-top: 4px;
}

.price-detail {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.price-breakdown {
  text-align: right;
  font-size: 13px;
  color: var(--ink-muted);
}

/* --- Buttons --- */
.btn-primary {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  min-height: 44px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s;
  letter-spacing: -0.1px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-primary:active:not(:disabled) { transform: scale(0.98); }
.btn-primary:disabled { background: var(--border); cursor: not-allowed; opacity: 0.6; }
.btn-primary.full-width { width: 100%; }

.btn-secondary {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 16px;
  min-height: 44px;
  background: transparent;
  color: var(--ink-secondary);
  border: none;
  cursor: pointer;
  transition: color 0.12s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-secondary:hover { color: var(--ink); }

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

/* --- Link style --- */
.edit-link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.edit-link:hover { text-decoration: underline; }

/* --- Trust bar --- */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 500;
}
.trust-item { display: flex; align-items: center; gap: 6px; }

/* --- Badge --- */
.badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-blue { background: var(--accent-bg); color: var(--accent); }
.badge-yellow { background: #FFFBEB; color: #92400E; }
.badge-indigo { background: #EEF2FF; color: #3730A3; }
.badge-orange { background: #FFF7ED; color: var(--orange); }
.badge-gray { background: var(--bg); color: var(--ink-muted); }

/* --- Destination banner --- */
.dest-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  margin-bottom: 28px;
  font-size: 13px;
}
.dest-banner-flag { font-size: 20px; }
.dest-banner-text { font-weight: 500; color: var(--ink-secondary); }
.dest-banner-price {
  margin-left: auto;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* --- Traveler navigator --- */
.traveler-nav {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--surface);
  position: sticky;
  top: 57px;
  z-index: 40;
  transition: top 0.25s ease, box-shadow 0.15s;
}
.traveler-nav.stuck { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

.traveler-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.1s;
  flex-shrink: 0;
}
.traveler-nav-btn:hover:not(:disabled) { background: var(--bg); }
.traveler-nav-btn:disabled { color: var(--border); cursor: default; }
.traveler-nav-btn svg { width: 18px; height: 18px; }

.traveler-nav-select-wrap {
  flex: 1;
  position: relative;
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
}

.traveler-nav-select {
  width: 100%;
  min-height: 44px;
  padding: 0 32px 0 14px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  appearance: none;
}
.traveler-nav-select:focus { outline: none; box-shadow: var(--focus-ring); border-radius: 0; }

.traveler-nav-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--ink-muted);
}
.traveler-nav-select-arrow svg { width: 14px; height: 14px; }

/* Dots row under nav */
.traveler-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 16px; }
.traveler-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.15s;
  cursor: pointer;
  border: none;
  padding: 0;
}
.traveler-dot:hover { background: var(--ink-muted); }
.traveler-dot.active { background: var(--accent); width: 20px; border-radius: 4px; }

/* --- Review traveler card --- */
.review-traveler-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
}
.review-traveler-header:hover { background: var(--bg); }
.review-traveler-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.review-traveler-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.review-traveler-passport {
  font-size: 12px;
  color: var(--ink-muted);
  font-family: monospace;
  letter-spacing: 0.5px;
}
.review-traveler-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.review-traveler-warning {
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--red-bg, #FEF2F2);
  border-radius: 6px;
  font-size: 13px;
  color: var(--red);
  line-height: 1.5;
}
.badge-red { background: #FEF2F2; color: var(--red); }

/* --- Document tag in review --- */
.doc-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: var(--green-bg);
  color: var(--green);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* --- Checkbox --- */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 0;
}
.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.checkbox-row label {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.5;
  cursor: pointer;
}

/* --- Disclaimer footer --- */
.disclaimer {
  text-align: center;
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 40px;
  padding: 16px 0;
}

/* --- Collapsible sections --- */
.form-section {
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  margin-top: 16px;
}
.form-section:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
  min-height: 36px;
  border-radius: 4px;
  transition: background 0.1s;
}
.section-header:hover { background: var(--bg); margin: 0 -8px; padding: 4px 8px; }
.section-header .section-title { margin-bottom: 0; }

.section-meta { display: flex; align-items: center; gap: 8px; }
.section-collapse-label { font-size: 11px; color: var(--ink-muted); font-weight: 500; }

.section-toggle {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  transition: transform 0.2s;
}
.section-toggle.collapsed { transform: rotate(-90deg); }

.section-content { margin-top: 14px; overflow: visible; }
.section-content.collapsed,
.card-body.collapsed { display: none; }

/* --- Conditional field group --- */
.cond-group {
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.035);
}
.cond-group:last-child { border-bottom: none; }

.cond-question {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
}

.cond-toggle {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cond-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
  min-width: 160px;
  flex-shrink: 0;
}

.cond-children {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.04);
}
.cond-children.visible {
  display: block;
  animation: helpSlide 0.2s ease;
}

/* Legacy conditional-children (backwards compat) */
.conditional-children {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.2s ease, margin 0.2s ease;
  margin-top: 0;
}
.conditional-children.open {
  max-height: 2000px;
  opacity: 1;
  margin-top: 1rem;
}

/* --- Repeatable sections --- */
.repeatable-entry {
  position: relative;
  padding: 12px 0 16px;
  border-bottom: 1px dashed var(--border-light);
}
.repeatable-entry:last-of-type { border-bottom: none; }

.repeatable-entry-header {
  margin-bottom: 4px;
}
.repeatable-entry-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.repeatable-remove-btn {
  background: none;
  border: none;
  color: var(--red, #dc2626);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
  margin-top: 4px;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.repeatable-remove-btn:hover { opacity: 1; }

.repeatable-add-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px dashed var(--border-light);
  border-radius: 8px;
  color: var(--accent, #2563eb);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 10px 16px;
  margin-top: 12px;
  width: 100%;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.repeatable-add-btn:hover {
  background: var(--bg, #f8fafc);
  border-color: var(--accent, #2563eb);
}

/* --- Yes/No toggle for eligibility --- */
.yn-row-wrap { border-bottom: 1px solid var(--border-light); }
.yn-row-wrap:last-child { border-bottom: none; }
.yn-row-wrap > .field-help { margin: 0 0 12px; }

.yn-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
}

.yn-help-hint {
  display: inline;
  font-size: 11px;
  color: var(--ink-muted);
  margin-left: 6px;
  text-decoration: underline dotted rgba(0,0,0,0.2);
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  cursor: help;
}
.yn-row:hover .yn-help-hint { color: var(--accent); text-decoration-color: var(--accent); }

.yn-question {
  flex: 1;
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.yn-options { display: flex; gap: 4px; flex-shrink: 0; }

.yn-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-secondary);
  transition: all 0.12s;
  min-height: 36px;
}
.yn-btn:hover { border-color: var(--ink-muted); }
.yn-btn.selected {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent);
}
.yn-btn.selected-no {
  border-color: var(--green);
  background: var(--green-bg);
  color: var(--green);
}
.yn-btn.selected-yes {
  border-color: var(--red);
  background: var(--red-bg);
  color: var(--red);
}

/* --- Section next btn --- */
.section-next-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-bg);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s;
}
.section-next-btn:hover { background: #E0E8FF; }

.section-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  margin-left: 6px;
  flex-shrink: 0;
}

/* --- Rush hint banner --- */
.rush-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 16px;
  background: #FFF7ED;
  border: 1px solid #FDE4B8;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--orange);
  animation: fadeIn 0.25s ease-out;
}
.rush-hint strong { display: block; font-weight: 600; color: #92400E; margin-bottom: 2px; }
.rush-hint span { color: #78350F; }

/* --- Flash messages --- */
.flash-notice {
  background: var(--green-bg);
  border: 1px solid #86EFAC;
  color: var(--green);
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 20px;
}

.flash-alert {
  background: var(--red-bg);
  border: 1px solid #FECACA;
  color: var(--red);
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.6;
}
.flash-field-link {
  color: var(--red);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
  cursor: pointer;
  font-weight: 500;
}
.flash-field-link:hover {
  text-decoration-style: solid;
}
.flash-field-reason {
  color: var(--red);
  font-weight: 400;
  opacity: 0.75;
  font-size: 12px;
}
.flash-traveler-row {
  padding: 4px 0;
}
.flash-traveler-row:first-child {
  padding-top: 0;
}
.flash-traveler-row:last-child {
  padding-bottom: 0;
}

/* --- Flatpickr custom theme --- */
.flatpickr-calendar,
.flatpickr-calendar * {
  box-sizing: content-box;
}

.flatpickr-calendar {
  font-family: var(--font-body);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  width: 310px;
  padding: 8px 12px 12px;
}

.flatpickr-calendar.arrowTop::before,
.flatpickr-calendar.arrowTop::after { display: none; }

.flatpickr-months { padding: 2px 0 4px; }
.flatpickr-months .flatpickr-month { height: 36px; }

.flatpickr-current-month {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month { padding: 6px 10px; }

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg { width: 12px; height: 12px; }

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg { fill: var(--accent); }

span.flatpickr-weekday {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
}

.flatpickr-day {
  font-family: var(--font-body);
  font-size: 13px;
  border-radius: 6px;
  height: 36px;
  line-height: 36px;
  color: var(--ink);
}
.flatpickr-day:hover { background: var(--accent-bg); border-color: transparent; }
.flatpickr-day.today { border-color: var(--accent); }
.flatpickr-day.today:hover { background: var(--accent-bg); border-color: var(--accent); color: var(--ink); }
.flatpickr-day.selected,
.flatpickr-day.selected:hover { background: var(--accent); border-color: var(--accent); color: white; }
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover { color: var(--border); background: transparent; cursor: not-allowed; }
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay { color: var(--border); }

.flatpickr-input { cursor: pointer; }
.flatpickr-input::placeholder { color: #9A9A9A; }

/* --- Accordion (legacy) --- */
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding: 0.75rem 0;
}
.accordion-header:hover { opacity: 0.8; }
.accordion-chevron {
  transition: transform 0.2s ease;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--ink-muted);
  flex-shrink: 0;
}
.accordion-chevron.rotated { transform: rotate(180deg); }
.accordion-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}
.accordion-body.open { max-height: 5000px; opacity: 1; }

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-title { animation: fadeIn 0.25s ease-out; }
.page-subtitle { animation: fadeIn 0.3s ease-out; }
.card { animation: fadeIn 0.3s ease-out both; }
.card:nth-child(2) { animation-delay: 0.05s; }
.card:nth-child(3) { animation-delay: 0.1s; }
.card:nth-child(4) { animation-delay: 0.15s; }
.price-block { animation: fadeIn 0.35s ease-out 0.1s both; }
.nav-row { animation: fadeIn 0.3s ease-out 0.15s both; }
.dest-banner { animation: fadeIn 0.2s ease-out; }
.steps { animation: fadeIn 0.2s ease-out; }
.super-rush-banner { animation: fadeIn 0.25s ease-out; }
.resume-banner { animation: fadeIn 0.3s ease-out; }
.trust-bar { animation: fadeIn 0.3s ease-out 0.2s both; }
.country-card { animation: fadeIn 0.25s ease-out both; }
.country-grid .country-card:nth-child(1) { animation-delay: 0s; }
.country-grid .country-card:nth-child(2) { animation-delay: 0.03s; }
.country-grid .country-card:nth-child(3) { animation-delay: 0.06s; }
.country-grid .country-card:nth-child(4) { animation-delay: 0.09s; }
.country-grid .country-card:nth-child(5) { animation-delay: 0.12s; }
.country-grid .country-card:nth-child(6) { animation-delay: 0.15s; }
.country-grid .country-card:nth-child(7) { animation-delay: 0.18s; }
.country-grid .country-card:nth-child(8) { animation-delay: 0.21s; }

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Responsive --- */
@media (max-width: 639px) {
  .page-title { font-size: 24px; }
  .price-block { flex-direction: column; gap: 6px; text-align: center; }
  .price-breakdown { text-align: center; }
  .country-grid { grid-template-columns: 1fr 1fr; }
  .data-grid { grid-template-columns: 1fr; }
  .container { padding: 20px 16px 60px; }
  .trust-bar { flex-direction: column; gap: 6px; }
  .steps { margin-bottom: 32px; }
  .yn-row { flex-direction: column; gap: 8px; }
  .yn-options { align-self: flex-start; }
  .option-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .counter, .speed-options { align-self: flex-start; }
  .traveler-nav-select { font-size: 13px; }
  .traveler-dots { gap: 5px; }
  .traveler-dot { width: 7px; height: 7px; }
  .traveler-dot.active { width: 16px; }
}
