/* =========================================================
   Travelora — site styles
   Minimal, fast, no external fonts or frameworks.
   Palette matches the booking confirmation email:
   navy header/footer, white cards, amber accent + notices.
   ========================================================= */

:root {
  --navy: #0b2545;
  --navy-light: #13315c;
  --accent: #f2b84b;
  --accent-dark: #d9a03a;
  --bg: #f7f7fa;
  --text: #2b2b38;
  --text-light: #6b6b7a;
  --border: #e2e2ea;
  --success: #2e7d32;
  --success-bg: #e8f5e9;
  --warn: #856404;
  --warn-bg: #fff3cd;
  --radius: 8px;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Test mode banner ---------- */
.test-mode-banner {
  background: var(--accent);
  color: var(--navy);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.logo {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.logo span {
  color: var(--accent);
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: #c9c9d6;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}

.nav a:hover {
  color: #fff;
}

.phone-link {
  background: var(--accent);
  color: var(--navy);
  padding: 8px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.15s;
}

.phone-link:hover {
  background: var(--accent-dark);
}

/* Phone numbers are shown as plain, non-clickable text - not a tel: link -
   so clicking one never triggers the browser's "pick an app to call with"
   prompt. */
.phone-number {
  cursor: default;
}

/* ---------- Hero / search ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 48px 0 64px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  margin-bottom: 10px;
  text-align: center;
}

.subtitle {
  text-align: center;
  color: #cfcfe0;
  font-size: 16px;
  margin: 0 auto 32px;
  max-width: 620px;
}

.search-form {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-row-submit {
  align-items: center;
}

.field {
  flex: 1;
  min-width: 130px;
  display: flex;
  flex-direction: column;
}

.field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.field input,
.field select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  width: 100%;
}

.field input:focus,
.field select:focus {
  outline: 2px solid var(--navy-light);
  outline-offset: 1px;
  border-color: var(--navy);
}

.field-checkbox {
  flex-direction: row;
  align-items: center;
  flex: 0 0 auto;
}

.field-checkbox label {
  text-transform: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
  cursor: pointer;
}

.field-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
}

.btn-primary {
  background: var(--accent);
  color: var(--navy);
  border: none;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: background 0.15s, transform 0.05s;
  margin-left: auto;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-large {
  padding: 16px 40px;
  font-size: 17px;
  margin-left: 0;
}

.btn-secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--border);
  padding: 12px 32px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: background 0.15s, transform 0.05s;
}

.btn-secondary:hover {
  background: var(--bg);
}

/* ---------- Results ---------- */
.results-section {
  padding: 40px 0;
}

.results-heading {
  font-size: 20px;
  margin-bottom: 12px;
}

.results-summary {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: 15px;
}

.budget-note {
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
}

.budget-note.fits {
  background: var(--success-bg);
  color: var(--success);
}

.budget-note.over {
  background: var(--warn-bg);
  color: var(--warn);
}

.flight-cards {
  display: grid;
  gap: 16px;
}

.flight-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  transition: box-shadow 0.15s;
}

.flight-card:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.flight-card .flight-info {
  flex: 1;
  min-width: 280px;
}

.airline-price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.airline-price .airline {
  font-weight: 700;
  font-size: 16px;
}

.airline-price .price-block {
  text-align: right;
}

.airline-price .price {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
}

.airline-price .price-per-person {
  display: block;
  font-size: 12px;
  color: var(--text-light);
}

.flight-leg {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.flight-leg .leg-label {
  font-weight: 600;
  color: var(--text);
}

.flight-leg .route {
  color: var(--text);
}

.flight-meta {
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.badge.in-budget {
  background: var(--success-bg);
  color: var(--success);
}

.badge.over-budget {
  background: var(--warn-bg);
  color: var(--warn);
}

.flight-card .cta {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flight-card .cta .btn-primary,
.flight-card .cta .btn-secondary {
  margin-left: 0;
  text-align: center;
}

.loading,
.error,
.no-results {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: var(--text-light);
}

.error {
  color: #c0392b;
}

.no-results a,
.error a {
  color: var(--navy);
  font-weight: 700;
}

/* ---------- How it works ---------- */
.how-section {
  padding: 56px 0;
}

.how-section h2 {
  text-align: center;
  margin-bottom: 32px;
  font-size: 28px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  text-align: center;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 12px;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.step p {
  color: var(--text-light);
  font-size: 14px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: white;
  color: #5f6368;
  border-top: 1px solid #dadce0;
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
}

.footer-brand {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}

.footer-disclaimer {
  max-width: 700px;
  margin: 0 auto 12px;
  line-height: 1.6;
}

.footer-contact a {
  color: var(--accent);
  text-decoration: none;
}

.footer-copy {
  margin-top: 12px;
  color: #74748a;
}

/* ---------- Legal pages (terms / privacy / cancellation) ---------- */
.legal-section {
  padding: 40px 0 64px;
}

.legal-container {
  max-width: 760px;
}

.legal-container h1 {
  font-size: 28px;
  margin-bottom: 6px;
}

.legal-updated {
  color: var(--text-light);
  font-size: 13px;
  margin-bottom: 24px;
}

.legal-container h2 {
  font-size: 18px;
  margin: 28px 0 8px;
  color: var(--navy);
}

.legal-container p,
.legal-container li {
  margin-bottom: 10px;
  color: var(--text);
}

.legal-container ul {
  padding-left: 22px;
  margin-bottom: 10px;
}

.legal-container a {
  color: var(--accent-dark);
}

.legal-note {
  background: var(--warn-bg);
  color: var(--warn);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  margin: 20px 0;
}

/* ---------- Booking page ---------- */
.booking-section {
  padding: 40px 0 64px;
}

.booking-container {
  max-width: 720px;
}

.booking-container h1 {
  font-size: 28px;
  margin-bottom: 20px;
}

.booking-container .flight-card {
  margin-bottom: 20px;
}

.booking-container .flight-card .cta {
  display: none;
}

/* Per-passenger section headings on the booking form */
.pax-heading {
  font-size: 14px;
  margin: 14px 0 8px;
  color: var(--text);
}

/* Fare re-verification panel (booking page) */
.verify-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.verify-panel h2 {
  font-size: 15px;
  margin-bottom: 10px;
}

.verify-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.verify-panel li {
  font-size: 14px;
  color: var(--text);
  padding: 3px 0;
}

.verify-panel li.verify-warn {
  color: var(--warn);
  font-weight: 600;
}

/* Countdown banner */
.countdown {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.countdown-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.countdown-time {
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.countdown-bar-track {
  height: 6px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.countdown-bar-fill {
  height: 100%;
  background: var(--success);
  border-radius: 4px;
  transition: width 1s linear, background 0.3s;
}

.countdown.warning .countdown-bar-fill {
  background: var(--warn);
}

.countdown.warning .countdown-time {
  color: var(--warn);
}

.countdown.expired {
  background: var(--warn-bg);
  border-color: var(--warn);
}

.countdown.expired .countdown-row,
.countdown.expired p {
  color: var(--warn);
}

.countdown p {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
}

/* Passenger form */
.passenger-form,
.payment-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.passenger-form h2,
.payment-section h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

.passenger-form .form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.passenger-form .form-row:last-child {
  margin-bottom: 0;
}

/* Payment placeholder */
.payment-placeholder {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
  background: var(--bg);
}

.payment-placeholder strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.price-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.price-summary .label {
  font-size: 14px;
  color: var(--text-light);
}

.price-summary .amount {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
}

.btn-pay {
  width: 100%;
  padding: 14px;
  font-size: 16px;
}

.secure-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .form-row {
    flex-direction: column;
  }

  .field-checkbox {
    flex-direction: row;
  }

  .btn-primary {
    margin-left: 0;
    width: 100%;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .flight-card {
    flex-direction: column;
    align-items: stretch;
  }

  .flight-card .cta,
  .flight-card .cta .btn-primary {
    width: 100%;
  }

  .airline-price .price-block {
    text-align: left;
  }

  .passenger-form .form-row {
    flex-direction: column;
  }
}

/* ---------- Voice assistant card (homepage) ---------- */
.voice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max-width);
  margin: 24px auto;
  padding: 24px 28px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
}
.voice-text h2 { font-size: 20px; margin-bottom: 6px; }
.voice-text p { color: #cfd9ea; font-size: 15px; margin-bottom: 8px; }
.voice-text .voice-note { font-size: 12.5px; color: #9fb1cc; margin-bottom: 0; }
.voice-text a { color: var(--accent); }
.voice-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 190px; }
.voice-btn {
  background: var(--accent);
  color: var(--navy);
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.voice-btn:hover:not(:disabled) { background: var(--accent-dark); }
.voice-btn:disabled { opacity: .6; cursor: default; }
.voice-btn.voice-end { background: #fff; }
.voice-btn[hidden] { display: none; }
.voice-status { font-size: 13px; color: #cfd9ea; text-align: center; min-height: 18px; }
.voice-status.live { color: #8ee6a0; }
.voice-status.error { color: #ffb4a8; }
@media (max-width: 700px) {
  .voice-card { flex-direction: column; text-align: center; margin: 16px; }
}

/* Privacy notice pop-up (privacy-notice.js) */
.privacy-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(11, 37, 69, 0.65);
}
.privacy-notice {
  background: #fff;
  color: var(--text);
  max-width: 460px;
  width: 100%;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 24px;
  border-radius: var(--radius);
  border-top: 4px solid var(--accent);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  font-size: 14px;
  line-height: 1.55;
}
.privacy-notice h2 { margin: 0 0 10px; font-size: 20px; color: var(--navy); }
.privacy-notice p { margin: 0 0 10px; }
.privacy-notice a { color: var(--navy); text-decoration: underline; }
.privacy-notice button {
  display: block;
  width: 100%;
  margin-top: 14px;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: 11px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.privacy-notice button:hover { background: var(--navy-light); }

/* Voice orb */
.voice-orb {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at 70% 75%, #6aa9ff 0%, rgba(106, 169, 255, 0) 55%),
    radial-gradient(circle at 50% 50%, #b49bf0 0%, #7b6cf0 60%, #5b7df0 100%);
  box-shadow: 0 0 28px rgba(140, 150, 255, 0.55), inset 0 0 18px rgba(255, 255, 255, 0.35);
  animation: voiceOrb 3.5s ease-in-out infinite;
}
@keyframes voiceOrb {
  0%, 100% { transform: scale(1); box-shadow: 0 0 28px rgba(140, 150, 255, 0.55), inset 0 0 18px rgba(255, 255, 255, 0.35); }
  50% { transform: scale(1.06); box-shadow: 0 0 42px rgba(140, 150, 255, 0.8), inset 0 0 18px rgba(255, 255, 255, 0.45); }
}
@media (prefers-reduced-motion: reduce) { .voice-orb { animation: none; } }
