/* ===== BOOKING STEPS BAR ===== */
.booking-steps-bar {
  background: var(--white); border-bottom: 1px solid var(--gray2);
  padding: 18px 0; margin-top: 64px;
}
.booking-steps {
  display: flex; align-items: center; justify-content: center; gap: 0;
}
.step {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  min-width: 90px;
}
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gray2); color: var(--text-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-main); font-size: 13px; font-weight: 700;
  transition: all 0.3s;
}
.step.active .step-num { background: var(--brand); color: var(--white); }
.step.done .step-num { background: #22c55e; color: var(--white); }
.step-label {
  font-size: 11px; font-family: var(--font-main); font-weight: 500;
  color: var(--text-light); text-align: center; white-space: nowrap;
}
.step.active .step-label { color: var(--brand); font-weight: 700; }
.step.done .step-label { color: #22c55e; }
.step-line {
  flex: 1; height: 2px; background: var(--gray2);
  min-width: 30px; max-width: 60px;
}
.step-line.active { background: var(--brand); }

/* ===== BOOKING PAGE ===== */
.booking-page { padding: 40px 0 80px; background: #f8f8f8; min-height: calc(100vh - 130px); }
.booking-layout { display: flex; gap: 28px; align-items: flex-start; }
.booking-main { flex: 1; min-width: 0; }
.booking-sidebar { width: 300px; flex-shrink: 0; position: sticky; top: 84px; }
.booking-title {
  font-family: var(--font-main); font-size: 24px; font-weight: 800;
  color: var(--black); margin-bottom: 6px;
}
.booking-sub { color: var(--text-light); font-size: 14px; margin-bottom: 28px; }

/* ===== SEARCH SUMMARY ===== */
.search-summary-bar {
  background: var(--brand); color: var(--white); border-radius: var(--radius-lg);
  padding: 16px 24px; display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap; margin-bottom: 24px;
}
.summary-route { font-family: var(--font-main); font-size: 16px; font-weight: 700; }
.summary-arrow { margin: 0 8px; opacity: 0.8; }
.summary-meta { font-size: 13.5px; opacity: 0.9; flex: 1; }
.modify-search-btn {
  background: rgba(255,255,255,0.2); color: var(--white); padding: 7px 16px;
  border-radius: var(--radius); font-size: 13px; font-weight: 600;
  font-family: var(--font-main); white-space: nowrap; transition: background 0.2s;
}
.modify-search-btn:hover { background: rgba(255,255,255,0.3); }

/* ===== CHECKING SPINNER ===== */
.results-checking {
  text-align: center; padding: 60px 20px;
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.checking-spinner {
  width: 52px; height: 52px; border: 4px solid var(--gray2);
  border-top-color: var(--brand); border-radius: 50%;
  animation: spin 1s linear infinite; margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.results-checking p { font-size: 16px; color: var(--text); }
.checking-sub { font-size: 13.5px; color: var(--text-light); margin-top: 6px; }

/* ===== RESULT CARDS ===== */
.results-header { margin-bottom: 20px; }
.results-header h2 { font-family: var(--font-main); font-size: 22px; font-weight: 800; }
.results-sub { color: var(--text-light); font-size: 14px; margin-top: 4px; }

.result-card {
  background: var(--white); border-radius: var(--radius-lg); border: 1.5px solid var(--gray2);
  padding: 20px 24px; display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap; margin-bottom: 14px; position: relative;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.result-card:hover { box-shadow: var(--shadow-lg); border-color: var(--brand); }
.result-card.best-deal { border-color: var(--brand); }
.best-deal-badge {
  position: absolute; top: -1px; left: 20px;
  background: var(--brand); color: var(--white);
  font-size: 11px; font-weight: 700; padding: 3px 12px;
  border-radius: 0 0 8px 8px; font-family: var(--font-main);
}

.result-airline { display: flex; align-items: center; gap: 12px; min-width: 140px; }
.airline-logo-box {
  width: 52px; height: 52px; background: var(--gray);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-main); font-weight: 800; font-size: 14px; color: var(--brand);
  border: 1px solid var(--gray2);
}
.airline-name { font-family: var(--font-main); font-weight: 700; font-size: 14px; }
.result-cabin { font-size: 12px; color: var(--text-light); margin-top: 2px; }

.result-flight {
  display: flex; align-items: center; gap: 16px; flex: 1; min-width: 200px;
}
.result-time { font-family: var(--font-main); font-size: 20px; font-weight: 800; color: var(--black); }
.result-route-line { flex: 1; text-align: center; }
.stops-label { font-size: 12px; color: var(--text-light); display: block; margin-bottom: 4px; }
.route-line-bar { height: 2px; background: var(--gray2); position: relative; }
.route-line-bar span { position: absolute; left: 0; top: -3px; width: 8px; height: 8px; background: var(--brand); border-radius: 50%; }
.duration-label { font-size: 12px; color: var(--text-light); display: block; margin-top: 4px; }

.result-price { text-align: right; min-width: 130px; }
.price-save {
  display: inline-block; background: #fff0f5; color: var(--brand);
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px;
  font-family: var(--font-main); margin-bottom: 4px;
}
.price-amount { font-family: var(--font-main); font-size: 26px; font-weight: 800; color: var(--brand); }
.price-amount span { font-size: 14px; font-weight: 400; color: var(--text-light); }
.price-total { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
.select-btn {
  display: inline-block; background: var(--brand); color: var(--white);
  padding: 10px 24px; border-radius: var(--radius);
  font-family: var(--font-main); font-weight: 700; font-size: 14px;
  transition: background 0.2s; margin-top: 6px;
}
.select-btn:hover { background: var(--brand-dark); }

/* Results CTA Box */
.results-cta-box {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  border-radius: var(--radius-lg); padding: 24px 28px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 20px;
  color: var(--white);
}
.cta-content { flex: 1; }
.cta-content h3 { font-family: var(--font-main); font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.cta-content p { font-size: 14px; opacity: 0.9; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-call-btn {
  background: var(--white); color: var(--brand); padding: 11px 22px;
  border-radius: var(--radius); font-family: var(--font-main); font-weight: 700; font-size: 14px;
  white-space: nowrap; transition: opacity 0.2s;
}
.cta-call-btn:hover { opacity: 0.9; }
.cta-enquire-btn {
  background: rgba(255,255,255,0.15); color: var(--white); padding: 11px 22px;
  border-radius: var(--radius); font-family: var(--font-main); font-weight: 600; font-size: 14px;
  border: 1px solid rgba(255,255,255,0.3); transition: background 0.2s;
}
.cta-enquire-btn:hover { background: rgba(255,255,255,0.25); }

/* ===== PASSENGER FORM ===== */
.passenger-block {
  background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray2);
  padding: 24px; margin-bottom: 20px;
}
.passenger-block-title {
  font-family: var(--font-main); font-size: 15px; font-weight: 700;
  margin-bottom: 18px; color: var(--black);
  display: flex; align-items: center; gap: 10px;
}
.pax-type-badge {
  font-size: 11px; padding: 3px 10px; border-radius: 4px; font-weight: 600;
}
.pax-type-badge.adult { background: rgba(138,25,79,0.1); color: var(--brand); }
.pax-type-badge.child { background: rgba(59,130,246,0.1); color: #2563eb; }
.pax-type-badge.infant { background: rgba(16,185,129,0.1); color: #059669; }

.form-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label {
  font-size: 12px; font-weight: 700; color: var(--text-light);
  text-transform: uppercase; letter-spacing: 0.7px; font-family: var(--font-main);
}
.form-group input, .form-group select, .form-group textarea {
  border: 1.5px solid var(--gray2); border-radius: var(--radius);
  padding: 11px 14px; font-size: 14px; color: var(--text);
  font-family: var(--font-body); background: var(--white); outline: none;
  transition: border-color 0.2s; width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--brand);
}
.form-group textarea { resize: vertical; min-height: 80px; }

/* ===== FORM ACTIONS ===== */
.form-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px; gap: 14px;
}
.back-btn {
  padding: 12px 24px; border-radius: var(--radius); border: 1.5px solid var(--gray2);
  font-family: var(--font-main); font-size: 14px; font-weight: 600; color: var(--text);
  background: var(--white); transition: border-color 0.2s;
}
.back-btn:hover { border-color: var(--brand); color: var(--brand); }
.continue-btn, .confirm-btn {
  padding: 13px 32px; border-radius: var(--radius);
  background: var(--brand); color: var(--white);
  font-family: var(--font-main); font-size: 15px; font-weight: 700;
  transition: background 0.2s; border: none; cursor: pointer;
}
.continue-btn:hover, .confirm-btn:hover:not(:disabled) { background: var(--brand-dark); }
.confirm-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== TERMS CHECK ===== */
.terms-check {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray2);
  padding: 16px; margin-top: 20px;
}
.terms-check label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.terms-check input { accent-color: var(--brand); width: 16px; height: 16px; }
.terms-check a { color: var(--brand); font-weight: 600; }

/* ===== REVIEW SECTIONS ===== */
.review-section {
  background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray2);
  padding: 22px 24px; margin-bottom: 16px;
}
.review-section-title {
  font-family: var(--font-main); font-size: 15px; font-weight: 700;
  color: var(--black); margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--gray2);
}
.review-grid { display: flex; flex-direction: column; gap: 0; }
.review-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 9px 0; border-bottom: 1px solid var(--gray); font-size: 14px;
}
.review-row:last-child { border-bottom: none; }
.review-row span { color: var(--text-light); }
.review-row strong { color: var(--text); text-align: right; max-width: 60%; }
.review-row.total-row strong { font-size: 18px; color: var(--brand); font-family: var(--font-main); }
.price-section { background: #fff8fb; border-color: var(--brand); }
.price-note { font-size: 12px; color: var(--text-light); margin-top: 10px; }

/* ===== SIDEBAR ===== */
.sidebar-card {
  background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray2);
  padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px;
}
.sidebar-card h4 {
  font-family: var(--font-main); font-size: 14px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px; color: var(--brand);
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--gray2);
}
.summary-item {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 7px 0; border-bottom: 1px solid var(--gray); font-size: 13px;
}
.summary-item:last-of-type { border-bottom: none; }
.summary-item span { color: var(--text-light); }
.summary-item strong { color: var(--text); text-align: right; font-size: 13px; }
.summary-item.total-row strong { color: var(--brand); font-size: 16px; font-family: var(--font-main); }
.summary-divider { height: 1px; background: var(--gray2); margin: 10px 0; }
.sidebar-note { font-size: 11px; color: var(--text-light); margin-top: 12px; line-height: 1.5; }

.sidebar-help {
  background: var(--brand); border-radius: var(--radius-lg); padding: 18px;
  text-align: center; color: var(--white);
}
.sidebar-help p { font-size: 13px; opacity: 0.9; margin-bottom: 10px; }
.sidebar-call {
  display: block; font-family: var(--font-main); font-weight: 800; font-size: 15px;
  color: var(--white); background: rgba(255,255,255,0.15);
  padding: 10px 16px; border-radius: var(--radius); transition: background 0.2s;
}
.sidebar-call:hover { background: rgba(255,255,255,0.25); }

/* ===== CONFIRMATION ===== */
.confirmation-wrap {
  max-width: 640px; margin: 0 auto; text-align: center; padding: 60px 20px;
}
.confirmation-icon {
  width: 80px; height: 80px; background: #22c55e; color: var(--white);
  border-radius: 50%; font-size: 36px; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 24px; font-weight: 700;
}
.confirmation-wrap h1 {
  font-family: var(--font-main); font-size: 32px; font-weight: 800;
  color: var(--black); margin-bottom: 12px;
}
.conf-sub { color: var(--text-light); font-size: 16px; margin-bottom: 30px; }

.conf-ref-box {
  background: #f0fdf4; border: 2px solid #22c55e; border-radius: var(--radius-lg);
  padding: 18px 28px; margin-bottom: 28px; display: inline-block;
}
.conf-ref-box span { font-size: 13px; color: var(--text-light); display: block; margin-bottom: 4px; }
.conf-ref { font-family: var(--font-main); font-size: 26px; font-weight: 800; color: #16a34a; letter-spacing: 2px; }

.conf-details {
  background: var(--white); border: 1px solid var(--gray2); border-radius: var(--radius-lg);
  padding: 20px; margin-bottom: 28px; text-align: left;
}
.conf-row {
  display: flex; justify-content: space-between; padding: 9px 0;
  border-bottom: 1px solid var(--gray); font-size: 14px;
}
.conf-row:last-child { border-bottom: none; }
.conf-row span { color: var(--text-light); }
.conf-row strong { color: var(--text); }

.conf-next { margin-bottom: 28px; }
.conf-next h3 {
  font-family: var(--font-main); font-size: 18px; font-weight: 700; margin-bottom: 18px;
}
.next-steps { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.next-step {
  background: var(--white); border: 1px solid var(--gray2); border-radius: var(--radius-lg);
  padding: 18px; flex: 1; min-width: 160px; max-width: 200px; text-align: center;
}
.ns-num {
  width: 32px; height: 32px; background: var(--brand); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-main); font-weight: 700; font-size: 14px; margin: 0 auto 10px;
}
.next-step p { font-size: 13px; color: var(--text-light); line-height: 1.5; }

.conf-cta { margin-bottom: 24px; }
.conf-cta p { font-size: 14px; color: var(--text-light); margin-bottom: 12px; }
.conf-call-btn {
  display: inline-block; background: var(--brand); color: var(--white);
  padding: 14px 32px; border-radius: var(--radius);
  font-family: var(--font-main); font-size: 16px; font-weight: 700; transition: background 0.2s;
}
.conf-call-btn:hover { background: var(--brand-dark); }
.conf-home-btn {
  display: inline-block; color: var(--text-light); font-size: 14px;
  margin-top: 12px; text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .booking-layout { flex-direction: column; }
  .booking-sidebar { width: 100%; position: static; }
  .booking-steps { gap: 0; overflow-x: auto; padding-bottom: 4px; }
  .step-label { display: none; }
  .step-line { min-width: 16px; }
  .step-num { width: 28px; height: 28px; font-size: 12px; }
}
@media (max-width: 600px) {
  .booking-page { padding: 24px 0 60px; }
  .booking-title { font-size: 20px; }
  .form-grid { grid-template-columns: 1fr; }

  /* Result cards stack vertically */
  .result-card { flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px; }
  .result-airline { min-width: unset; }
  .result-flight { min-width: unset; width: 100%; }
  .result-price { text-align: left; width: 100%; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
  .price-amount { font-size: 22px; }
  .price-save { margin-bottom: 0; }
  .select-btn { width: 100%; display: block; text-align: center; margin-top: 4px; }

  /* CTA box */
  .results-cta-box { flex-direction: column; padding: 18px; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-call-btn, .cta-enquire-btn { text-align: center; width: 100%; }

  /* Search summary */
  .search-summary-bar { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; }
  .modify-search-btn { width: 100%; text-align: center; }

  /* Passenger form */
  .passenger-block { padding: 14px; }
  .form-actions { flex-direction: column-reverse; gap: 10px; }
  .back-btn, .continue-btn, .confirm-btn { width: 100%; text-align: center; display: block; }

  /* Sidebar */
  .sidebar-card { padding: 14px; }

  /* Review */
  .review-section { padding: 14px; }
  .review-row { flex-direction: column; gap: 2px; }
  .review-row strong { text-align: left; max-width: 100%; }

  /* Confirmation */
  .confirmation-wrap { padding: 32px 14px; }
  .confirmation-wrap h1 { font-size: 22px; }
  .conf-ref { font-size: 20px; }
  .next-steps { flex-direction: column; align-items: stretch; }
  .next-step { max-width: 100%; }
}
