:root {
  --primary: #111111;
  --primary-dark: #333333;
  --primary-light: #F4F4F4;
  --dark: #1A1A2E;
  --text: #2D3748;
  --text-muted: #718096;
  --bg: #F0F2F5;
  --card: #FFFFFF;
  --border: #E2E8F0;
  --success: #38A169;
  --error: #E53E3E;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 20px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
}

/* --- Flatpickr Custom Styling --- */
.flatpickr-calendar {
  font-family: inherit;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-lg) !important;
  border: 1px solid var(--border) !important;
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}
span.flatpickr-weekday {
  color: var(--dark) !important;
  font-weight: 700;
}
.flatpickr-current-month .flatpickr-monthDropdown-months {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232D3748' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E") no-repeat right center;
  background-size: 14px;
  padding-right: 18px;
  border: none !important;
  outline: none !important;
  color: var(--dark) !important;
  font-weight: 700 !important;
  font-family: inherit;
  cursor: pointer;
}
.flatpickr-monthDropdown-months {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  min-height: 38px;
  line-height: 38px;
}
.flatpickr-current-month {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: visible !important;
}
.flatpickr-month {
  overflow: visible !important;
  height: 44px !important;
  line-height: 44px !important;
}
.flatpickr-months {
  overflow: visible !important;
}
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-monthDropdown-months {
  border: 1px solid transparent !important;
  border-radius: 6px;
  padding: 2px 24px 0 6px;
  background-position: right 4px center !important;
  background-size: 14px;
  min-width: 110px;
  width: auto;
}
.flatpickr-current-month .numInputWrapper {
  width: 70px;
  height: 38px;
}
.flatpickr-current-month input.cur-year {
  height: 38px;
  line-height: 38px;
  padding: 0 6px;
  font-weight: 700;
  color: var(--dark);
}
.flatpickr-current-month .flatpickr-monthDropdown-months:focus,
.flatpickr-current-month input.cur-year:focus {
  border-color: rgba(17,17,17,0.45) !important;
  box-shadow: 0 0 0 2px rgba(17,17,17,0.12);
}
.flatpickr-current-month .flatpickr-monthDropdown-months:hover {
  background-color: rgba(0,0,0,0.03);
  border-radius: 4px;
}
#departureDate, #returnDate, .flatpickr-input, .date-input {
  cursor: pointer !important;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

/* ── HEADER ── */
.form-header {
  background: var(--dark);
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.form-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.header-tag {
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 6px;
}
.header-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: 3px;
}

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.form-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  padding: 1.5rem 1rem;
  align-items: start;
}
@media (max-width: 900px) {
  .form-layout { grid-template-columns: 1fr; }
  .price-panel { order: -1; }
}

/* ── CARDS ── */
.form-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border);
}
.form-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: #FAFBFC;
}
.form-card__header h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.3px;
}
.step-badge {
  width: 28px; height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.form-card__body { padding: 1.5rem; }

/* ── DIRECTION TABS ── */
.direction-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}
.dir-tab {
  flex: 1 1 auto;
  min-width: 120px;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  text-align: center;
}
.dir-tab.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--dark);
}
.dir-tab:hover:not(.active) { border-color: #cbd5e0; color: var(--text); }

/* ── FORM CONTROLS ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 1rem; }
.form-group:last-child { margin-bottom: 0; }

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(17,17,17,0.12);
}
.form-input.error { border-color: var(--error); }
.form-input::placeholder { color: #a0aec0; }

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

/* ── AUTOCOMPLETE ── */
.autocomplete-wrap { position: relative; }
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  z-index: 9999;
  background: #fff;
  border: 1.5px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-lg);
  max-height: 260px;
  overflow-y: auto;
}
.autocomplete-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid #f0f2f5;
  transition: background var(--transition);
  display: flex; align-items: flex-start; gap: 8px;
}
.autocomplete-item:hover,.autocomplete-item.active { background: var(--primary-light); }
.autocomplete-item span { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.autocomplete-item .ac-main { font-weight: 600; color: var(--dark); }
.autocomplete-item .ac-sub { font-size: 12px; color: var(--text-muted); }

/* ── SWAP BUTTON ── */
.swap-wrap { display: flex; justify-content: center; margin: 0.75rem 0; }
.swap-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px;
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.swap-btn:hover { background: var(--primary); color: #fff; }
.swap-btn svg { width: 16px; height: 16px; transition: transform 0.3s; }
.swap-btn:hover svg { transform: rotate(180deg); }

/* ── STEPPER ── */
.stepper {
  display: flex; align-items: center; gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}
.stepper button {
  width: 38px; height: 38px;
  border: none; background: #f7f8fa;
  font-size: 18px; cursor: pointer; font-weight: 700;
  color: var(--primary);
  transition: background var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.stepper button:hover { background: var(--primary-light); }
.stepper-value {
  min-width: 44px; text-align: center;
  font-weight: 700; font-size: 16px; color: var(--dark);
}

/* ── TOGGLE ── */
.toggle-row {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.toggle-row:last-child { border-bottom: none; }
.toggle-label { font-size: 14px; font-weight: 500; color: var(--text); }

.toggle {
  position: relative; width: 44px; height: 24px;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: #CBD5E0;
  border-radius: 999px;
  transition: background var(--transition);
  cursor: pointer;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle input:checked + .toggle-slider { background: var(--primary); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

.collapsible { display: none; }
.collapsible.open { display: block; }

/* ── VEHICLE CARDS ── */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
@media (max-width: 700px) { .vehicle-grid { grid-template-columns: 1fr; } }

.vehicle-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  background: #fff;
}
.vehicle-card:hover { border-color: var(--primary); box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.vehicle-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}
.vehicle-card.selected::after {
  content: '✓';
  position: absolute; top: 10px; right: 10px;
  width: 22px; height: 22px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.vehicle-badge {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.badge-exclusive { background: #EEE8FF; color: #6B46C1; }
.badge-business { background: #E6FFFA; color: #276749; }
.badge-standard { background: #EDF2F7; color: #4A5568; }

.vehicle-img {
  width: 100%; height: 80px;
  object-fit: contain;
  margin: 6px 0;
}
.vehicle-img-placeholder {
  width: 100%; height: 80px;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; margin: 6px 0;
}
.vehicle-name { font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.vehicle-specs {
  display: flex; gap: 10px;
  font-size: 11px; color: var(--text-muted);
  margin-bottom: 8px;
}
.vehicle-specs span { display: flex; align-items: center; gap: 3px; }
.vehicle-price {
  font-size: 16px; font-weight: 800; color: var(--primary);
  border-top: 1px solid var(--border);
  padding-top: 8px; margin-top: 6px;
}
.vehicle-price small { font-size: 11px; color: var(--text-muted); font-weight: 500; }

/* ── PAYMENT ── */
.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.payment-opt:hover { border-color: var(--primary); }
.payment-opt.selected { border-color: var(--primary); background: var(--primary-light); }
.payment-opt input { display: none; }
.payment-radio {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.payment-opt.selected .payment-radio {
  border-color: var(--primary);
  background: var(--primary);
}
.payment-opt.selected .payment-radio::after {
  content: '';
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  display: block;
}
.payment-icon { font-size: 20px; }
.payment-text { font-size: 14px; font-weight: 600; }
.payment-text small { display: block; font-size: 11px; color: var(--text-muted); font-weight: 400; }
.payment-opt.disabled { opacity: 0.4; pointer-events: none; }

/* ── PRICE PANEL ── */
.price-panel {
  position: sticky;
  top: 1rem;
}
.price-panel-inner {
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.pp-header {
  background: var(--primary);
  padding: 1rem 1.25rem;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}
.pp-body { padding: 1.25rem; }
.pp-route {
  font-size: 13px; color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.pp-route strong { color: var(--text); }
.pp-row {
  display: flex; justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  color: var(--text-muted);
}
.pp-row span:last-child { font-weight: 600; color: var(--text); }
.pp-divider { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
.pp-total {
  display: flex; justify-content: space-between;
  align-items: baseline;
  font-weight: 800;
}
.pp-total-label { font-size: 14px; color: var(--text-muted); }
.pp-total-amount { font-size: 24px; color: var(--primary); }
.pp-note {
  font-size: 11px; color: var(--text-muted);
  margin-top: 12px; line-height: 1.5;
}
.pp-empty {
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding: 1rem 0;
}

/* ── CHILD SEATS ── */
.seat-row {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.seat-row:last-child { border-bottom: none; }
.seat-label { font-size: 13px; }
.seat-label small { display: block; color: var(--text-muted); font-size: 11px; }

/* ── PHONE field ── */
.phone-wrap { display: flex; gap: 8px; }
.phone-prefix {
  width: 100px;
  flex-shrink: 0;
  padding: 10px 28px 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23718096' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  background-size: 14px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.phone-prefix:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(17,17,17,0.12);
}


/* ── SUBMIT ── */
.terms-row {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 1rem;
}
.terms-row input[type=checkbox] {
  width: 18px; height: 18px; flex-shrink: 0;
  margin-top: 2px; accent-color: var(--primary); cursor: pointer;
}
.terms-row label {
  text-transform: none; letter-spacing: 0; color: var(--text);
  font-size: 13px; font-weight: 400; margin: 0;
}
.terms-row a { color: var(--primary); text-decoration: underline; }

.btn-submit {
  width: 100%; padding: 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 16px; font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 28px rgba(0,0,0,0.25); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── ERROR MESSAGE ── */
.field-error { font-size: 12px; color: var(--error); margin-top: 4px; display: none; }
.field-error.visible { display: block; }
.form-error-box {
  background: #FFF5F5; border: 1.5px solid #FED7D7;
  border-radius: var(--radius-sm);
  padding: 12px 16px; margin-bottom: 1rem;
  font-size: 13px; color: var(--error);
  display: none;
}
.form-error-box.visible { display: block; }

/* ── SUCCESS OVERLAY ── */
.success-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(26,26,46,0.97);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.success-box {
  background: #fff; border-radius: 20px;
  padding: 3rem 2.5rem; max-width: 500px; width: 100%;
  text-align: center;
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.success-icon { font-size: 60px; margin-bottom: 1rem; }
.success-title { font-size: 1.5rem; font-weight: 800; color: var(--dark); margin-bottom: 0.5rem; }
.success-number {
  display: inline-block;
  background: var(--primary-light);
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  font-size: 18px; font-weight: 800;
  color: var(--dark);
  margin: 0.75rem 0 1rem;
}
.success-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 1.5rem; }
.btn-new {
  padding: 12px 28px;
  background: var(--dark); color: #fff;
  border: none; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background var(--transition);
}
.btn-new:hover { background: #2d3748; }

/* ── RETURN SECTION ── */
.return-fields {
  background: #f7f8fa;
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 1rem;
  border: 1px solid var(--border);
}
.return-fields .form-row { margin-bottom: 0; }

/* loader */
.btn-submit .spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: var(--dark);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle; margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── LAYOUT: single column ── */
.form-layout {
  display: block;
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}
.price-panel { position: static; }

/* ── PRICE PANEL: minimalist ── */
.price-panel-inner {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ── PASSENGER HINT ── */
.pass-hint {
  font-size: 11px; color: var(--text-muted);
  margin-top: 4px;
}

/* ── PRICE SUMMARY HACKS ── */
.form-card.price-summary-card { 
  border: 1px solid var(--border) !important;
  background: #fff !important;
  box-shadow: var(--shadow) !important;
}
.form-card.price-summary-card .form-card__header {
  border-bottom: 1px solid var(--border) !important;
  background: #FAFBFC !important;
}
.form-card.price-summary-card .form-card__header h2,
.price-summary-header h2 { 
  color: var(--dark) !important; 
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}
.price-icon-wrap {
  width: 32px; height: 32px; background: var(--primary);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 16px; flex-shrink: 0;
  box-shadow: 0 0 15px rgba(0,0,0,0.15);
  color: #fff;
}
.price-summary-card .price-panel-inner {
  background: transparent;
  box-shadow: none;
}
.price-summary-card .pp-empty { 
  color: #a0aec0; 
  text-align: center;
  padding: 2rem 1rem;
  font-style: italic;
}

/* ── GOOGLE MAPS Autocomplete ── */
.pac-target-input {
  background-image: none !important;
}

/* Custom autocomplete dropdown (New Places API) */
.custom-pac-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  z-index: 99999;
  max-height: 260px;
  overflow-y: auto;
}
.custom-pac-item {
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.phone-prefix:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(17,17,17,0.12);
}


/* ── SUBMIT ── */
.terms-row {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 1rem;
}
.terms-row input[type=checkbox] {
  width: 18px; height: 18px; flex-shrink: 0;
  margin-top: 2px; accent-color: var(--primary); cursor: pointer;
}
.terms-row label {
  text-transform: none; letter-spacing: 0; color: var(--text);
  font-size: 13px; font-weight: 400; margin: 0;
}
.terms-row a { color: var(--primary); text-decoration: underline; }

.btn-submit {
  width: 100%; padding: 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 16px; font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 28px rgba(0,0,0,0.25); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── ERROR MESSAGE ── */
.field-error { font-size: 12px; color: var(--error); margin-top: 4px; display: none; }
.field-error.visible { display: block; }
.form-error-box {
  background: #FFF5F5; border: 1.5px solid #FED7D7;
  border-radius: var(--radius-sm);
  padding: 12px 16px; margin-bottom: 1rem;
  font-size: 13px; color: var(--error);
  display: none;
}
.form-error-box.visible { display: block; }

/* ── SUCCESS OVERLAY ── */
.success-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(26,26,46,0.97);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.success-box {
  background: #fff; border-radius: 20px;
  padding: 3rem 2.5rem; max-width: 500px; width: 100%;
  text-align: center;
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.success-icon { font-size: 60px; margin-bottom: 1rem; }
.success-title { font-size: 1.5rem; font-weight: 800; color: var(--dark); margin-bottom: 0.5rem; }
.success-number {
  display: inline-block;
  background: var(--primary-light);
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  font-size: 18px; font-weight: 800;
  color: var(--dark);
  margin: 0.75rem 0 1rem;
}
.success-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 1.5rem; }
.btn-new {
  padding: 12px 28px;
  background: var(--dark); color: #fff;
  border: none; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background var(--transition);
}
.btn-new:hover { background: #2d3748; }

/* ── RETURN SECTION ── */
.return-fields {
  background: #f7f8fa;
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 1rem;
  border: 1px solid var(--border);
}
.return-fields .form-row { margin-bottom: 0; }

/* loader */
.btn-submit .spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: var(--dark);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle; margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── LAYOUT: single column ── */
.form-layout {
  display: block;
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}
.price-panel { position: static; }

/* ── PRICE PANEL: minimalist ── */
.price-panel-inner {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ── PASSENGER HINT ── */
.pass-hint {
  font-size: 11px; color: var(--text-muted);
  margin-top: 4px;
}

/* ── PRICE SUMMARY HACKS ── */
.form-card.price-summary-card { 
  border: 1px solid var(--border) !important;
  background: #fff !important;
  box-shadow: var(--shadow) !important;
}
.form-card.price-summary-card .form-card__header {
  border-bottom: 1px solid var(--border) !important;
  background: #FAFBFC !important;
}
.form-card.price-summary-card .form-card__header h2,
.price-summary-header h2 { 
  color: var(--dark) !important; 
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}
.price-icon-wrap {
  width: 32px; height: 32px; background: var(--primary);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 16px; flex-shrink: 0;
  box-shadow: 0 0 15px rgba(0,0,0,0.15);
}
.price-summary-card .price-panel-inner {
  background: transparent;
  box-shadow: none;
}
.price-summary-card .pp-empty { 
  color: #a0aec0; 
  text-align: center;
  padding: 2rem 1rem;
  font-style: italic;
}

/* ── GOOGLE MAPS Autocomplete ── */
.pac-target-input {
  background-image: none !important;
}

/* Custom autocomplete dropdown (New Places API) */
.custom-pac-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  z-index: 99999;
  max-height: 260px;
  overflow-y: auto;
}
.custom-pac-item {
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  border-top: 1px solid #f0f2f5;
  line-height: 1.5;
  transition: background 0.15s;
}
.custom-pac-item:first-child { border-top: none; }
.custom-pac-item:hover {
  background: var(--primary-light);
}
.custom-pac-item strong {
  font-weight: 700;
  color: var(--dark);
}
.custom-pac-item span {
  color: var(--text-muted);
  font-size: 12px;
  margin-left: 4px;
}

.help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  margin-left: 4px;
  cursor: help;
  transform: translateY(-2px);
}
