/* ============================
   BOOKING FORM (3-STEP WIZARD)
==============================*/
.form-panel {
  max-width: 920px; margin: 52px auto 0;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 18px 48px -18px rgba(0,0,0,0.5);
}
/* Progress stepper */
.stepper {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--line);
  background: var(--bg-sub);
}
.step-chip {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 20px 14px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-4); position: relative;
  transition: all 0.3s;
}
.step-chip.on { color: var(--gold); background: var(--bg-panel); }
.step-chip.done { color: var(--ink-3); }
.step-chip .num {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; background: rgba(255,255,255,0.1); color: var(--ink-3);
  transition: all 0.3s;
}
.step-chip.on .num { background: var(--gold); color: var(--ink); }
.step-chip.done .num { background: var(--gold); color: var(--ink); }
.step-chip.done .num::before { content: '✓'; }
.step-chip.done .num-text { display: none; }
.step-chip:not(:last-child)::after {
  content: ''; position: absolute; right: 0; top: 50%;
  width: 1px; height: 30px; background: var(--line); transform: translateY(-50%);
}

/* Step panels */
.step-body { padding: 40px 44px; }
.step-panel { display: none; }
.step-panel.on { display: block; animation: fadeInStep 0.36s ease-out; }
@keyframes fadeInStep {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.step-h {
  font-family: var(--fd); font-weight: 300; font-size: 26px;
  color: var(--ink); margin-bottom: 6px; line-height: 1.2;
}
.step-sub { font-size: 13px; color: var(--ink-3); margin-bottom: 24px; }

/* Trip-type tabs */
.tt-tabs {
  display: flex; gap: 0; background: rgba(255,255,255,0.06);
  border-radius: 999px; padding: 4px; margin-bottom: 22px; width: fit-content;
}
.tt-tab {
  padding: 9px 18px; font-size: 12px; font-weight: 500;
  color: var(--ink-3); cursor: pointer; border-radius: 999px;
  transition: all 0.24s; background: transparent; border: 0;
  font-family: 'Inter', sans-serif;
}
.tt-tab.on { background: var(--gold); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.tt-tab:hover:not(.on) { color: var(--gold); }

/* Route block (pickup / dropoff stacked with swap) */
.route-block { position: relative; margin-bottom: 18px; }
.route-row {
  background: var(--bg-sub); border: 1px solid var(--line);
  border-radius: 8px;
  /* No overflow:hidden — it was clipping the address-autocomplete
     dropdown for the drop-off input (the bottom row), so customers
     typing in drop-off saw nothing. Inputs are transparent so the
     rounded corners still look fine without clipping. */
}
.route-input {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
}
.route-input + .route-input { border-top: 1px solid var(--line); }
.route-ico {
  width: 20px; height: 20px; flex-shrink: 0; color: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
}
.route-meta {
  flex: 1; display: flex; flex-direction: column; gap: 2px;
}
.route-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-4);
}
.route-meta input {
  background: transparent; border: 0; outline: 0; padding: 0;
  font-family: 'Inter', sans-serif; font-size: 14px; color: var(--ink);
  width: 100%;
}
.route-meta input::placeholder { color: var(--ink-4); font-weight: 300; }
.swap-btn {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-panel); border: 1px solid var(--line);
  color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.24s;
  z-index: 2;
}
.swap-btn:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.swap-btn svg { width: 14px; height: 14px; }

/* Grid for date/time/pax */
.fg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.fg3 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field {
  background: var(--bg-sub); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 14px;
  display: flex; flex-direction: column; gap: 2px;
  transition: border-color 0.2s;
}
.field:focus-within { border-color: var(--ink); }
.field-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-4);
}
.field input, .field select, .field textarea {
  background: transparent; border: 0; outline: 0; padding: 0;
  font-family: 'Inter', sans-serif; font-size: 14px; color: var(--ink);
  width: 100%; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 54px; padding-top: 4px; }
.field select { cursor: pointer; padding-right: 16px; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236c6c6c' stroke-width='1.3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right center; }

/* Flight tracking block */
.flight-block {
  margin-top: 14px;
  padding: 16px 18px;
  background: var(--bg-sub);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.flight-head { display: flex; gap: 14px; align-items: flex-start; }
.flight-ico { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.flight-title { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.flight-sub { font-size: 12px; color: var(--ink-3); line-height: 1.55; }
.flight-block .field {
  background: var(--bg-panel); border-color: var(--line-2);
}

/* Vehicle cards */
.vehicles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 4px; }
.veh-card {
  background: var(--bg-sub); border: 1.5px solid var(--line);
  border-radius: 10px; overflow: hidden; cursor: pointer;
  transition: all 0.28s ease; position: relative;
}
.veh-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.veh-card.sel { border-color: var(--gold); box-shadow: 0 4px 24px -10px rgba(201,168,76,0.35); }
.veh-card.sel::before {
  content: '✓'; position: absolute; top: 12px; right: 12px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; z-index: 2;
}
.veh-img {
  width: 100%; height: 140px; object-fit: cover; display: block;
  background: var(--bg-sub);
}
.veh-body { padding: 16px 18px 18px; }
.veh-name { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.veh-model { font-size: 12px; color: var(--ink-3); margin-bottom: 12px; }
.veh-specs { display: flex; gap: 14px; font-size: 11px; color: var(--ink-3); margin-bottom: 12px; }
.veh-specs span { display: flex; align-items: center; gap: 5px; }
.veh-price { display: flex; align-items: baseline; gap: 5px; border-top: 1px solid var(--line); padding-top: 12px; }
.veh-price .from { font-size: 10px; color: var(--ink-4); letter-spacing: 0.1em; text-transform: uppercase; }
.veh-price .num { font-family: var(--fd); font-size: 22px; font-weight: 400; color: var(--ink); }

/* Dynamic states set by initBookFormFare() in the cluster-page layout script */
.veh-card.recommended {
  border-color: var(--gold);
  box-shadow: 0 4px 24px -10px rgba(201,168,76,0.35);
}
.veh-card.recommended::after {
  content: 'RECOMMENDED';
  position: absolute; top: 12px; left: 12px;
  background: var(--gold); color: var(--ink);
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  padding: 4px 8px; border-radius: 3px; z-index: 2;
}
.veh-card.unavailable {
  opacity: 0.45; cursor: not-allowed; pointer-events: none;
  filter: grayscale(0.4);
}
.veh-card.unavailable::after { content: none; }

/* Summary bar (shown on step 3) */
.summary {
  background: var(--bg-sub); border: 1px solid var(--line);
  border-radius: 10px; padding: 20px 22px; margin-bottom: 22px;
}
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-size: 13px;
}
.summary-row + .summary-row { border-top: 1px dashed var(--line); }
.summary-row .k { color: var(--ink-3); }
.summary-row .v { color: var(--ink); font-weight: 500; }
.summary-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--gold);
}
.summary-total .k { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.summary-total .v { font-family: var(--fd); font-size: 26px; color: var(--gold); }

/* Nav buttons */
.step-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 26px; gap: 12px;
}
.btn-back {
  background: transparent; border: 0;
  color: var(--ink-3); font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500; cursor: pointer;
  padding: 14px 4px; display: flex; align-items: center; gap: 6px;
  transition: color 0.2s;
}
.btn-back:hover { color: var(--gold); }
.btn-next {
  background: var(--gold); color: var(--ink);
  padding: 15px 32px; font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em; border-radius: 999px;
  transition: background 0.24s; border: 0; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
}
.btn-next:hover { background: var(--gold-h); }
.btn-next:disabled { opacity: 0.5; cursor: not-allowed; }

/* Payment */
.deposit-block { margin-top: 16px; }
.deposit-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 14px;
}
#payment-element { min-height: 40px; }
.payment-error {
  color: #c0392b; font-size: 12px; margin-top: 10px; display: none;
}
.fnote { text-align: center; font-size: 10px; color: var(--ink-4); margin-top: 14px; line-height: 1.7; letter-spacing: 0.04em; }

/* Trust row */
.trust-row {
  display: flex; justify-content: center; gap: 22px; flex-wrap: wrap;
  padding: 18px 22px; background: var(--bg-sub); border-top: 1px solid var(--line);
  font-size: 11px; color: var(--ink-3);
}
.trust-row span { display: flex; align-items: center; gap: 6px; }
.trust-row svg { width: 14px; height: 14px; color: var(--gold); }

/* Success */
.success {
  display: none;
  padding: 56px 44px; text-align: center;
}
.success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gold); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin: 0 auto 22px;
}
.success-h { font-family: var(--fd); font-size: 30px; font-weight: 300; color: var(--ink); margin-bottom: 10px; }
.success-p { font-size: 14px; color: var(--ink-3); line-height: 1.8; max-width: 420px; margin: 0 auto; }

@media (max-width: 760px) {
  .form-panel { margin-top: 32px; }
  .step-body { padding: 28px 22px; }
  .step-chip { padding: 16px 8px; font-size: 10px; }
  .step-chip .num-text { display: none; }
  .vehicles { grid-template-columns: 1fr; }
  .veh-img { height: 180px; }
  .fg2, .fg3 { grid-template-columns: 1fr; }

  /* iOS Safari auto-zooms when an input's computed font-size is <16px on
     focus, then zooms out again on blur — that's the "form dancing" the
     owner reported. Force 16px on every form control to stop the zoom. */
  .route-input input,
  .field input,
  .field select,
  .field textarea { font-size: 16px; }
}

