/* ============================================================
   BOOKING WIDGET & FORM — taxiperth-theme
   ============================================================ */

/* ---- Booking Card (hero widget) ---- */
.booking-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-booking);
}

.booking-card-head {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.booking-card-head h3 {
  font-size: 22px;
  color: var(--midnight);
  margin-bottom: 2px;
}
.booking-card-head p {
  font-size: 13px;
  color: var(--muted);
}

/* ---- Field groups ---- */
.bf-group { margin-bottom: 14px; }
.bf-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.bf-input-wrap {
  position: relative;
}
.bf-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--earth);
  pointer-events: none;
}
.bf-input {
  width: 100%;
  padding: 12px 14px 12px 38px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--cream);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}
.bf-input:focus {
  outline: none;
  border-color: var(--sun);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(224,117,37,0.10);
}
.bf-input::placeholder { color: var(--muted); }

.bf-select {
  width: 100%;
  padding: 12px 14px 12px 38px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--cream);
  transition: border-color 0.15s;
  -webkit-appearance: none;
  cursor: pointer;
}
.bf-select:focus {
  outline: none;
  border-color: var(--sun);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(224,117,37,0.10);
}

.bf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Swap button between From/To */
.bf-swap-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.bf-line { flex: 1; height: 1px; background: var(--border); }
.bf-swap-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--sand);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--earth);
  transition: background 0.15s;
  flex-shrink: 0;
}
.bf-swap-btn:hover { background: var(--sun); color: var(--white); border-color: var(--sun); }

/* Submit button */
.bf-submit {
  width: 100%;
  padding: 15px;
  background: var(--sun);
  color: var(--midnight);
  border: none;
  border-radius: var(--radius-btn);
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  margin-top: 6px;
}
.bf-submit:hover {
  background: var(--sun-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(224,117,37,0.40);
}
.bf-submit:active { transform: translateY(0); }

/* Loading spinner */
.bf-submit.loading {
  pointer-events: none;
  opacity: 0.7;
}
.bf-submit.loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--midnight);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Note under submit */
.bf-note {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.bf-note svg { vertical-align: middle; margin-right: 4px; color: var(--green); }

/* ============================================================
   FULL BOOKING PAGE
   ============================================================ */
.booking-page-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
  padding: 60px 0;
}

.booking-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
}
.booking-form-card h2 {
  font-size: 28px;
  margin-bottom: 8px;
}
.booking-form-card .subtitle {
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 15px;
}

/* Sticky summary sidebar */
.booking-summary-card {
  background: var(--midnight);
  border-radius: var(--radius-xl);
  padding: 28px;
  position: sticky;
  top: 84px;
  color: var(--white);
}
.booking-summary-card h3 {
  font-size: 18px;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: 12px;
}
.summary-row:last-of-type { border-bottom: none; }
.summary-label { font-size: 12px; color: rgba(255,255,255,0.45); font-weight: 600; }
.summary-value { font-size: 14px; color: var(--white); font-weight: 600; text-align: right; }
.summary-fare {
  background: rgba(224,117,37,0.10);
  border: 1px solid rgba(224,117,37,0.20);
  border-radius: var(--radius);
  padding: 18px;
  margin: 20px 0;
  text-align: center;
}
.summary-fare-label { font-size: 11px; color: rgba(255,255,255,0.45); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px; }
.summary-fare-amount {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 42px;
  color: var(--sun);
  line-height: 1;
}
.summary-fare-note { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 6px; }

/* Section dividers inside form */
.form-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--earth);
  margin: 28px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sand);
}
.form-section-title:first-of-type { margin-top: 0; }

/* ============================================================
   SUCCESS / CONFIRMATION
   ============================================================ */
.booking-success {
  text-align: center;
  padding: 48px 24px;
  display: none;
}
.booking-success-icon {
  width: 72px; height: 72px;
  background: rgba(34,197,94,0.10);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 36px;
}
.booking-success h2 { color: var(--midnight); margin-bottom: 10px; }
.booking-success p { color: var(--muted); font-size: 16px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .booking-page-layout {
    grid-template-columns: 1fr;
  }
  .booking-summary-card { position: static; order: -1; }
}

@media (max-width: 640px) {
  .booking-form-card { padding: 24px 20px; }
  .bf-row { grid-template-columns: 1fr; }
}
