/* ── 1. CSS Custom Properties and Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #1B3A6B;
  --navy-dark:   #0f2347;
  --gold:        #C8922A;
  --gold-dark:   #b07e24;
  --white:       #ffffff;
  --off-white:   #f4f7fb;
  --text:        #1a2332;
  --text-muted:  #4a5568;
  --border:      #e2e8f0;
  --radius:      8px;
  --radius-lg:   12px;
  --nav-h:       64px;
  --transition:  0.2s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
ul[role="list"] { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }

/* ── 2. Base Typography ──────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 0.95rem; }

p { font-family: 'DM Sans', sans-serif; }

/* ── 3. Navigation ───────────────────────────────────────────────────────── */
#nav {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }

.nav-logo-mark {
  background: #1B3A6B;
  color: #C8922A;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.nav-logo-text {
  color: #1B3A6B;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links li a {
  padding: 6px 12px;
  border-radius: 6px;
  display: block;
}

.nav-links li a:hover { background: #f4f7fb; text-decoration: none; }
.nav-links li a.nav-cta:hover { background: #b07e24 !important; text-decoration: none; }

.nav-link {
  color: #1a2332;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.nav-link.active { color: #C8922A; }

.nav-cta {
  background: #C8922A !important;
  color: #fff !important;
  border-radius: 6px;
  padding: 8px 18px !important;
  font-weight: 600 !important;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1B3A6B;
  border-radius: 1px;
  transition: all 0.2s;
}

/* ── 4. Hero Section ─────────────────────────────────────────────────────── */
.hero {
  background: url('https://flightos-assets.s3.ca-central-1.amazonaws.com/aircraft/C-GBSL.jpg') center/cover no-repeat;
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,20,40,0.55);
}

.hero-inner {
  position: relative;
  max-width: 600px;
  padding: 100px 60px;
}

.hero-eyebrow {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: #C8922A;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.hero-stat {
  color: rgba(255,255,255,0.9);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  padding-right: 1.5rem;
}

.hero-stat strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
}

.hero-stat:not(:last-child)::after {
  content: '·';
  color: #C8922A;
  margin-left: 1.5rem;
}

/* ── 5. Section Anatomy ──────────────────────────────────────────────────── */
.section-eyebrow {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: #C8922A;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: #1a2332;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-title.white { color: #fff; }

.section-subtitle {
  font-family: 'DM Sans', sans-serif;
  color: #4a5568;
  font-size: 1rem;
}

.section-page {
  padding: 80px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── 6. Program Cards ────────────────────────────────────────────────────── */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.program-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  border-left: 4px solid #C8922A;
  transition: box-shadow 0.2s, transform 0.2s;
}

.program-card:hover {
  box-shadow: 0 8px 32px rgba(27,58,107,0.12);
  transform: translateY(-2px);
}

.program-badge {
  background: #C8922A;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  position: absolute;
  top: 1rem;
  right: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'DM Sans', sans-serif;
}

.program-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: #1B3A6B;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.program-card p {
  font-family: 'DM Sans', sans-serif;
  color: #4a5568;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ── 7. Fleet Grid and Aircraft Cards ───────────────────────────────────── */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.aircraft-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(27,58,107,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}

.aircraft-card:hover {
  box-shadow: 0 8px 32px rgba(27,58,107,0.14);
  transform: translateY(-3px);
}

.aircraft-card.selected {
  border: 2px solid #C8922A;
}

.aircraft-reg {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  color: #1B3A6B;
  font-weight: 700;
}

.aircraft-type {
  font-family: 'DM Sans', sans-serif;
  color: #4a5568;
  font-size: 0.85rem;
  margin: 2px 0;
}

.aircraft-rate {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: #C8922A;
  margin-top: 0.25rem;
}

.aircraft-rate span {
  font-size: 0.8rem;
  color: #4a5568;
  font-weight: 400;
  font-family: 'DM Sans', sans-serif;
}

.equipment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 0.5rem;
}

.badge-navy {
  background: #1B3A6B;
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Share Tech Mono', monospace;
}

.badge-green {
  background: #d1fae5;
  color: #065f46;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}

.badge-red {
  background: #fee2e2;
  color: #991b1b;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
}

/* Keep legacy .badge for backward compat with other pages */
.badge { font-size: 0.65rem; padding: 2px 8px; border-radius: 4px; font-family: 'DM Sans', sans-serif; font-weight: 600; }

.aircraft-specs-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.spec-label {
  color: #94a3b8;
  font-family: 'DM Sans', sans-serif;
}

.spec-value {
  color: #1a2332;
  font-family: 'Share Tech Mono', monospace;
}

/* ── 8. Instructor Grid and Cards ────────────────────────────────────────── */
.instructors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.instructor-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(27,58,107,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}

.instructor-card:hover {
  box-shadow: 0 8px 24px rgba(27,58,107,0.12);
  transform: translateY(-2px);
}

.instructor-card.chief {
  border: 2px solid #C8922A;
}

.instructor-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #1B3A6B;
  color: #C8922A;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.instructor-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: #1a2332;
  font-size: 0.95rem;
}

.instructor-id {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  color: #94a3b8;
  margin: 2px 0;
}

.instructor-ratings {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  color: #4a5568;
  margin-top: 0.25rem;
}

/* ── 9. Sightseeing Section and Glass Cards ──────────────────────────────── */
.sightseeing-section {
  background: #1B3A6B;
  position: relative;
  overflow: hidden;
}

.sightseeing-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://flightos-assets.s3.ca-central-1.amazonaws.com/bfc/ontario-fields.jpg') center/cover;
  opacity: 0.12;
}

.sightseeing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.sight-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 1.5rem;
  color: #fff;
}

.sight-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: #fff;
}

.sight-duration {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.75rem;
}

.sight-price {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: #C8922A;
}

.sight-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.3rem;
  font-family: 'DM Sans', sans-serif;
}

/* ── 10. Booking Wizard ──────────────────────────────────────────────────── */
.booking-section { background: #fff; }

.wizard-steps {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wizard-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 80px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #94a3b8;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.wizard-step.active .step-num {
  background: #C8922A;
  color: #fff;
}

.wizard-step.done .step-num {
  background: #1B3A6B;
  color: #fff;
}

.step-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  color: #94a3b8;
}

.wizard-step.active .step-label {
  color: #1B3A6B;
  font-weight: 600;
}

.slot-card {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.875rem 1rem;
  cursor: pointer;
  transition: all 0.15s;
}

.slot-card:hover { border-color: #C8922A; }

.slot-card.selected {
  border-color: #C8922A;
  background: #fffbf4;
}

.slot-card.unavailable {
  opacity: 0.4;
  cursor: not-allowed;
}

.slot-card-time {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #1B3A6B;
}

.slot-card-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  color: #4a5568;
  margin-top: 2px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: #C8922A;
  color: #fff;
  padding: 12px 28px;
  font-size: 1rem;
}

.btn-primary:hover { background: #b07e24; }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
  padding: 11px 26px;
  font-size: 1rem;
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

.btn-navy {
  background: #1B3A6B;
  color: #fff;
  padding: 10px 24px;
  font-size: 0.95rem;
}

.btn-navy:hover { background: #0f2347; }

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

/* ── Card Base ───────────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.card-body { padding: 1.25rem; }

/* ── Alerts ──────────────────────────────────────────────────────────────── */
.alert-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
}

/* Keep legacy .alert .alert-error for backward compat */
.alert { border-radius: 8px; padding: 0.75rem 1rem; font-family: 'DM Sans', sans-serif; font-size: 0.875rem; }

.alert-success {
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 8px;
  padding: 1rem;
  font-family: 'DM Sans', sans-serif;
}

/* ── Form Fields ─────────────────────────────────────────────────────────── */
.form-field { display: flex; flex-direction: column; gap: 4px; }

.form-field label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a2332;
  display: block;
  margin-bottom: 4px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: #1a2332;
  outline: none;
  transition: border-color 0.15s;
  background: #fff;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #1B3A6B;
}

/* ── Loading ─────────────────────────────────────────────────────────────── */
.loading-wrap {
  display: flex;
  justify-content: center;
  padding: 3rem;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e2e8f0;
  border-top-color: #C8922A;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 3rem;
  color: #4a5568;
  font-family: 'DM Sans', sans-serif;
}

/* ── 11. Ground School Section ───────────────────────────────────────────── */
.ground-school-section { background: #f4f7fb; }

.ground-school-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.gs-detail {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
}

.gs-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
}

.gs-row:last-child { border-bottom: none; }
.gs-key { color: #4a5568; }
.gs-val { color: #1a2332; font-weight: 600; }

/* ── 12. Contact Section and Form ────────────────────────────────────────── */
.contact-section { background: #fff; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: #f4f7fb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
}

.contact-value {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: #1a2332;
  font-weight: 600;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── 13. Footer ──────────────────────────────────────────────────────────── */
footer {
  background: #1B3A6B;
  color: rgba(255,255,255,0.8);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: #C8922A;
}

.footer-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.25rem;
}

footer h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
}

footer a:hover { color: #C8922A; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

.footer-powered a { color: rgba(255,255,255,0.45); }
.footer-powered a:hover { color: #C8922A; }

.footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* ── 14. Chat Widget (Gold Button Override) ──────────────────────────────── */
#chat-btn {
  background: #C8922A !important;
  box-shadow: 0 4px 16px rgba(200,146,42,0.45) !important;
}

#chat-btn:hover {
  box-shadow: 0 6px 24px rgba(200,146,42,0.6) !important;
}

/* ── 15. Utility Classes ─────────────────────────────────────────────────── */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.text-muted { color: #4a5568; }
.font-mono { font-family: 'Share Tech Mono', monospace; }
.gold { color: #C8922A; }
.navy { color: #1B3A6B; }

/* ── Page section visibility ─────────────────────────────────────────────── */
/* app.js toggles the [hidden] attribute — not an .active class */
.page-section { display: block; }
.page-section[hidden] { display: none !important; }

/* Section header (for fleet/instructors pages) */
.section-header { padding: 3rem 0 2rem; }
.section-header h2 { color: #1B3A6B; font-family: 'Syne', sans-serif; font-weight: 800; }
.section-header p { color: #4a5568; margin-top: 0.5rem; font-size: 1rem; font-family: 'DM Sans', sans-serif; }

/* Instructor options grid (used by booking.js) */
.instructor-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.instructor-option {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.instructor-option:hover { border-color: #C8922A; }

.instructor-option.selected {
  border-color: #C8922A;
  background: #fffbf4;
}

.instr-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1B3A6B;
  color: #C8922A;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
}

.instr-name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  color: #1a2332;
  font-size: 0.8rem;
}

.instr-ratings {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* Slot cards grid (used by booking.js) */
.slot-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}

/* ── Toast and Modal ─────────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: #1a2332;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  pointer-events: all;
  animation: toastIn 0.2s ease;
}

.toast.toast-error { background: #991b1b; }
.toast.toast-success { background: #065f46; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,20,40,0.65);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay[hidden] { display: none; }

.modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f4f7fb;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Booking Wizard Extra Classes (used by booking.js) ──────────────────── */
.wizard-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
}

.wizard-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: #1B3A6B;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a2332;
  display: block;
  margin-bottom: 4px;
}

.form-control {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: #1a2332;
  outline: none;
  transition: border-color 0.15s;
  background: #fff;
}

.form-control:focus { border-color: #1B3A6B; }

.form-hint {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  color: #94a3b8;
  display: block;
  margin-top: 4px;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.duration-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.duration-btn {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 18px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.15s;
}

.duration-btn:hover { border-color: #C8922A; color: #C8922A; }
.duration-btn.selected { border-color: #C8922A; background: #fffbf4; color: #C8922A; }

.aircraft-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.aircraft-option {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}

.aircraft-option:hover { border-color: #C8922A; }
.aircraft-option.selected { border-color: #C8922A; background: #fffbf4; }

.opt-reg {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.95rem;
  color: #1B3A6B;
  font-weight: 700;
}

.opt-type {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  color: #4a5568;
  margin: 2px 0;
}

.opt-rate {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #C8922A;
  margin-top: 4px;
}

.instr-info {
  flex: 1;
}

.alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
}

.btn-outline-navy {
  background: transparent;
  color: #1B3A6B;
  border: 2px solid #1B3A6B;
  padding: 10px 20px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-outline-navy:hover { background: #1B3A6B; color: #fff; }

.slot-card-unavail {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  color: #991b1b;
  margin-top: 2px;
}

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }

/* ── My Bookings page ────────────────────────────────────────────────────── */
.my-bookings-wrap { padding: 60px 0; }
.booking-lookup { max-width: 460px; margin: 0 auto 2rem; }
.bookings-list { display: flex; flex-direction: column; gap: 1rem; }

.booking-row {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.booking-date {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1B3A6B;
}

.booking-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: #4a5568;
  margin-top: 2px;
}

.booking-status-badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

.status-confirmed { background: #d1fae5; color: #065f46; }
.status-pending   { background: #fef3c7; color: #92400e; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

/* ── Register page ───────────────────────────────────────────────────────── */
.register-wrap { padding: 60px 0; }
.register-form-card { max-width: 560px; margin: 0 auto; background: #fff; border-radius: 16px; border: 1px solid #e2e8f0; padding: 2rem; }
.register-form { display: flex; flex-direction: column; gap: 1rem; }
.register-form h2 { font-family: 'Syne', sans-serif; font-weight: 800; color: #1B3A6B; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── 16. Responsive / Mobile ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-inner { padding: 80px 24px; }
  .hero h1 { font-size: 2.2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .ground-school-inner { grid-template-columns: 1fr; }
  .sightseeing-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .hero-stat::after { display: none; }
  .programs-grid { grid-template-columns: 1fr; }
  .section-page { padding: 60px 0; }

  /* Nav mobile */
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0;
    align-items: stretch;
  }

  .nav-links.open { display: flex; }

  .nav-links li a {
    padding: 0.6rem 0;
    display: block;
    border-bottom: 1px solid #f4f7fb;
    border-radius: 0;
  }

  .nav-links li:last-child a { border-bottom: none; }

  .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
    border-radius: 6px !important;
  }

  .footer-inner { gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .sightseeing-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .wizard-steps { gap: 0.25rem; }
  .step-label { display: none; }
}
