/* =========================================================
   Cassiora Travels — 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: #1a1a2e;
  --navy-light: #2d2d4a;
  --accent: #e0a72e;
  --accent-dark: #c4901f;
  --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;
}

/* ---------- 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: 400;
}

.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);
}

/* ---------- 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;
}

/* ---------- 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;
}

.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;
}

/* ---------- Talk to Alex ---------- */
.alex-section {
  background: var(--navy);
  color: #fff;
  padding: 56px 0;
}

.alex-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.alex-section h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.alex-section p {
  color: #cfcfe0;
  margin-bottom: 24px;
}

.alex-section .note {
  font-size: 13px;
  color: #8f8fa6;
  margin-top: 16px;
  margin-bottom: 0;
}

/* ---------- 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: var(--navy);
  color: #aaa;
  padding: 32px 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;
}

/* ---------- 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;
  }
}
