/* Contact page hero — carbon-copied from legacy contacts.php embedded <style>
   (Flying411 staging b1381d6a, "uniform 550px hero sections across public
   pages"). Replaces the bespoke React .static-hero / .contact-static-hero with
   the legacy .contact-hero (no search bar, so content is centred). */

.contact-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('/assets/pages/img/static-hero-aviation.webp')
    center calc(50% - 58px) / cover no-repeat;
  /* Uniform with the other heroes: fixed 550px, content centred, top padding
     clears the 130px absolute nav. (No search bar here, so title+tagline are
     centred rather than bottom-anchored.) */
  min-height: 550px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 160px 16px 60px;
  box-sizing: border-box;
}

.contact-hero h1 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 12px;
}

.contact-hero p {
  font-size: 20px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .contact-hero {
    min-height: 420px;
    padding: 110px 16px 40px;
  }
  .contact-hero h1 {
    font-size: 32px;
  }
}

/* ─── Full contact-page body (carbon-copied from contacts.php embedded <style>).
   Legacy `body { background:#f5f5f5 }` is scoped to `.contact-page` so it can't
   bleed onto the other static routes, and legacy `* { "EB Garamond" }` is scoped
   the same way (the Roboto overrides below match legacy exactly). The few
   Bootstrap-provided base rules (`.form-control` block/width, `.mb-3`) are added
   back because the React app doesn't load Bootstrap. */
.contact-page {
  background: #f5f5f5;
}

.contact-page * {
  font-family: "EB Garamond", serif;
}

/* Legacy corporate theme (style.css) uppercases headings; the embedded <style>
   relied on it. Not vendoring the whole theme, so replicate just the heading
   transform on the contact page's h1/h2/h3 (labels + subtitles stay as-is). */
.contact-hero h1,
.contact-card h3,
.contact-form-card h2 {
  text-transform: uppercase;
}

/* Breadcrumb */
.contact-breadcrumb {
  background: #eaf0f6;
  padding: 12px 0;
}
.contact-breadcrumb nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.contact-breadcrumb a {
  color: #2c5f8a;
  text-decoration: none;
  font-size: 14px;
}
.contact-breadcrumb span {
  color: #888;
  font-size: 14px;
}

/* Info Cards Row */
.contact-cards {
  max-width: 1100px;
  margin: -40px auto 0;
  padding: 70px 20px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}
.contact-card {
  background: #fff;
  border-radius: 10px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.contact-card-icon {
  width: 52px;
  height: 52px;
  background: #eef4fb;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.contact-card-icon svg {
  color: #2c5f8a;
}
.contact-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1b3a57;
  margin-bottom: 8px;
}
.contact-card p,
.contact-card a {
  font-size: 16px;
  color: #555;
  margin: 0;
  text-decoration: none;
  line-height: 1.6;
}
.contact-card a:hover {
  color: #2c5f8a;
}

/* Main Content */
.contact-main {
  max-width: 1100px;
  margin: 48px auto 0;
  padding: 0 20px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* Form Cards */
.contact-form-card {
  background: #fff;
  border-radius: 10px;
  padding: 36px 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.contact-form-card h2 {
  font-size: 26px;
  font-weight: 700;
  color: #1b3a57;
  margin-bottom: 6px;
}
.contact-form-card .form-subtitle {
  font-size: 15px;
  color: #888;
  margin-bottom: 24px;
  font-family: "Roboto", sans-serif !important;
}
.contact-form-card label {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  display: block;
}
/* `.mb-3` + `.form-control` block/width were Bootstrap's; re-added here. */
.contact-form-card .mb-3 {
  margin-bottom: 1rem;
}
.contact-form-card .form-control {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background-color: #fff;
  line-height: 1.5;
  font-family: "Roboto", sans-serif !important;
  font-size: 15px;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.contact-form-card .form-control:focus {
  border-color: #2c5f8a;
  box-shadow: 0 0 0 3px rgba(44, 95, 138, 0.1);
  outline: none;
}
.contact-form-card select.form-control {
  appearance: auto;
}
.contact-form-card .btn-submit {
  display: inline-block;
  padding: 12px 36px;
  background: #1b3a57;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 8px;
}
.contact-form-card .btn-submit:hover {
  background: #2c5f8a;
}

/* Legacy success message (kept verbatim; the live result is now shown via the
   page-level .contact-flash banner after the POST round-trip). */
.form-success {
  display: none;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 14px 20px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 15px;
  font-family: "Roboto", sans-serif !important;
}

/* Off-screen honeypot field (bots fill it; humans never see it). */
.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Page-level flash banner (post-submit result), aligned to the content width. */
.contact-flash-wrap {
  max-width: 1100px;
  margin: 32px auto -8px;
  padding: 0 20px;
}
.contact-flash {
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-family: "Roboto", sans-serif !important;
}
.contact-flash-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.contact-flash-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

@media (max-width: 768px) {
  .contact-cards {
    grid-template-columns: 1fr;
    margin-top: -30px;
  }
  .contact-card {
    padding: 24px 20px;
  }
  .contact-main {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }
  .contact-form-card {
    padding: 28px 20px;
  }
}
