/* ============================================================
   booking.css — Online booking flow (route → vehicle → confirm)
   Extends the core VTCGO design tokens (main.css / components.css)
   ============================================================ */

.booking-section {
  min-height: 70vh;
}

.booking-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.booking-wrap--center {
  text-align: center;
}

/* ── Step indicator ───────────────────────────────────────── */
.booking-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

.booking-step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-grey-500);
}

.booking-step + .booking-step::before {
  content: '';
  width: 56px;
  height: 1px;
  background: var(--color-gold-border);
  margin: 0 var(--space-2);
}

.booking-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--color-grey-500);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-grey-500);
}

.booking-step__label {
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
}

.booking-step.active .booking-step__num {
  border-color: var(--color-gold);
  background: var(--color-gold);
  color: var(--color-black);
}

.booking-step.active .booking-step__label {
  color: var(--color-ivory);
  font-weight: 600;
}

.booking-step.done .booking-step__num {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.booking-step.done .booking-step__label {
  color: var(--color-grey-300);
}

/* ── Card ──────────────────────────────────────────────────── */
.booking-card {
  background: var(--color-black-card);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-8);
}

.booking-card--left {
  text-align: left;
}

.booking-form-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-ivory);
  margin-bottom: var(--space-6);
}

.booking-form-section {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: var(--border-subtle);
}

.booking-form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-row--triple {
  grid-template-columns: 1fr 1fr 1fr;
}

.form-label__hint {
  font-weight: 400;
  color: var(--color-grey-500);
  font-size: var(--text-xs);
}

.booking-form-actions {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.booking-form-back {
  color: var(--color-grey-500);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color var(--dur-fast);
}

.booking-form-back:hover {
  color: var(--color-gold);
}

.booking-terms {
  margin-top: var(--space-6);
  color: var(--color-grey-500);
  font-size: var(--text-xs);
  line-height: 1.7;
}

/* ── Return trip toggle ───────────────────────────────────── */
.booking-return-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  color: var(--color-ivory-muted);
  font-size: var(--text-sm);
  margin: var(--space-2) 0 var(--space-4);
}

.booking-return-toggle input {
  accent-color: var(--color-gold);
  width: 16px;
  height: 16px;
}

.booking-return-fields {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height var(--dur-base), opacity var(--dur-base), margin-top var(--dur-base);
}

.booking-return-fields.is-visible {
  max-height: 200px;
  opacity: 1;
  margin-top: var(--space-2);
}

/* ── Route summary bar ────────────────────────────────────── */
.booking-route-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  background: var(--color-black-card);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-6);
}

.booking-route-bar__from,
.booking-route-bar__to {
  font-weight: 700;
  color: var(--color-ivory);
  font-size: var(--text-base);
}

.booking-route-bar__arrow {
  color: var(--color-gold);
}

.booking-route-bar__detail {
  font-size: var(--text-sm);
  color: var(--color-grey-300);
}

.booking-route-bar__detail--return {
  color: var(--color-gold-light);
}

.booking-route-bar__edit {
  margin-inline-start: auto;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-grey-300);
  text-decoration: none;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-grey-500);
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast);
  white-space: nowrap;
}

.booking-route-bar__edit:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* ── Vehicle grid ──────────────────────────────────────────── */
.vehicle-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.vehicle-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: var(--space-6);
  background: var(--color-black-mid);
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius);
  padding: var(--space-5);
  cursor: pointer;
  transition: border-color var(--dur-fast), background-color var(--dur-fast);
}

.vehicle-card:has(input:checked) {
  border-color: var(--color-gold);
  background: rgba(200, 169, 110, 0.06);
}

.vehicle-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.vehicle-card--unavailable {
  opacity: 0.45;
  cursor: not-allowed;
}

.vehicle-card__img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vehicle-card__img img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.vehicle-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}

.vehicle-card__badge {
  align-self: flex-start;
  background: var(--color-gold-subtle);
  color: var(--color-gold);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px var(--space-3);
  border-radius: 20px;
  margin-bottom: var(--space-1);
}

.vehicle-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-ivory);
}

.vehicle-card__cap {
  font-size: var(--text-sm);
  color: var(--color-grey-300);
}

.vehicle-card__feats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.vehicle-card__tag {
  font-size: var(--text-xs);
  color: var(--color-grey-300);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
}

.vehicle-card__price {
  text-align: right;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-gold);
  white-space: nowrap;
}

.vehicle-card__price small {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-grey-500);
  margin-top: var(--space-1);
}

.vehicle-card__na {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-grey-500);
}

/* ── No-price fallback ─────────────────────────────────────── */
.booking-no-price {
  background: var(--color-black-mid);
  border-radius: var(--radius);
  padding: var(--space-8);
  text-align: center;
  margin-bottom: var(--space-6);
}

.booking-no-price__title {
  font-weight: 700;
  color: var(--color-ivory);
  margin-bottom: var(--space-2);
}

.booking-no-price__desc {
  color: var(--color-grey-300);
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
}

/* ── Why-book strip ────────────────────────────────────────── */
.booking-why-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-8);
  justify-content: center;
  text-align: center;
  margin-top: var(--space-6);
}

.booking-why-item {
  font-size: var(--text-sm);
  color: var(--color-grey-300);
}

.booking-why-item strong {
  color: var(--color-gold);
}

/* ── Trip summary (confirm step) ──────────────────────────── */
.booking-trip-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5) var(--space-6);
  background: var(--color-black-mid);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  margin-bottom: var(--space-6);
}

.booking-trip-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.booking-trip-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-grey-500);
}

.booking-trip-value {
  font-weight: 600;
  color: var(--color-ivory);
}

.booking-trip-arrow {
  color: var(--color-gold);
  font-size: var(--text-lg);
}

.booking-trip-price {
  margin-inline-start: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.booking-trip-price__amount {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-gold);
  line-height: 1.1;
}

.booking-trip-price small {
  color: var(--color-grey-500);
  font-size: var(--text-xs);
}

.booking-return-note {
  background: var(--color-gold-subtle);
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-ivory-muted);
  margin-bottom: var(--space-6);
  line-height: 1.7;
}

.booking-return-note strong {
  color: var(--color-gold);
  margin-inline-end: var(--space-2);
}

/* ── Payment options ──────────────────────────────────────── */
.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.payment-option {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius);
  padding: var(--space-5);
  cursor: pointer;
  transition: border-color var(--dur-fast), background-color var(--dur-fast);
}

.payment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-option.is-selected,
.payment-option:has(input:checked) {
  border-color: var(--color-gold);
  background: rgba(200, 169, 110, 0.06);
}

.payment-option__name {
  font-weight: 700;
  color: var(--color-ivory);
  font-size: var(--text-sm);
}

.payment-option__desc {
  color: var(--color-grey-500);
  font-size: var(--text-xs);
  line-height: 1.6;
}

.price-total-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-black-mid);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-6);
}

.price-total-box__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-grey-500);
}

.price-total-box__note {
  font-size: var(--text-xs);
  color: var(--color-grey-300);
  margin-top: 2px;
}

.price-total-box__amount {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-gold);
}

/* ── Thank-you page ───────────────────────────────────────── */
.thankyou-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-gold-subtle);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
}

.thankyou-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--color-ivory);
  margin-bottom: var(--space-3);
}

.thankyou-lead {
  color: var(--color-grey-300);
  font-size: var(--text-lg);
  margin-bottom: var(--space-6);
}

.thankyou-ref {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.05em;
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-8);
  margin-bottom: var(--space-2);
}

.thankyou-ref-note {
  color: var(--color-grey-500);
  font-size: var(--text-xs);
  margin-bottom: var(--space-10);
}

.thankyou-summary__row {
  display: flex;
  gap: var(--space-4);
  align-items: baseline;
  padding: var(--space-2) 0;
  border-bottom: var(--border-subtle);
}

.thankyou-summary__row:last-child {
  border-bottom: none;
}

.thankyou-summary__label {
  min-width: 140px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-grey-500);
}

.thankyou-summary__value {
  font-weight: 600;
  color: var(--color-ivory);
}

.thankyou-next {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.thankyou-next li {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.thankyou-next__icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-gold-subtle);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.thankyou-next__title {
  font-weight: 700;
  color: var(--color-ivory);
  font-size: var(--text-sm);
}

.thankyou-next__desc {
  color: var(--color-grey-500);
  font-size: var(--text-sm);
  margin-top: 3px;
  line-height: 1.6;
}

.thankyou-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-6);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .form-row--triple {
    grid-template-columns: 1fr;
  }

  .vehicle-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .vehicle-card__badge {
    align-self: center;
  }

  .vehicle-card__feats {
    justify-content: center;
  }

  .vehicle-card__price {
    text-align: center;
  }

  .booking-trip-price {
    margin-inline-start: 0;
    width: 100%;
    align-items: flex-start;
    text-align: left;
  }

  .payment-options {
    grid-template-columns: 1fr;
  }

  .booking-card {
    padding: var(--space-6);
  }
}

@media (max-width: 480px) {
  .booking-route-bar__edit {
    margin-inline-start: 0;
    width: 100%;
    text-align: center;
  }
}

/* ── RTL adjustments (Arabic) ─────────────────────────────── */
:root[lang="ar"] .booking-trip-price,
:root[lang="ar"] .price-total-box {
  direction: rtl;
}
