/* Baloo 2 loaded async on home page (index.html) to avoid render-blocking */
html,
body {
  margin: 0;
  padding: 0;
}

:root {
  --blue: #1565c0;
  --blue-dark: #0d47a1;
  --olive-bg: #e4e9d2;
  --text-main: #333333;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--blue-dark);
  color: var(--text-main);
}

/* Non-home pages: same background as AMC Terminals unless a page overrides */
body.site-bg-terminals {
  background-color: #b7bf77;
}

body.amc-page {
  background-color: #b7bf77;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

body.amc-page .page-nav {
  flex-shrink: 0;
}

body.amc-page .amc-page-title-wrap {
  flex-shrink: 0;
}

body.amc-page .amc-layout {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  grid-template-rows: minmax(0, 1fr);
}

body.amc-page .amc-results {
  min-height: 0;
}

/* Desktop AMC / Closest: scroll inside white list panel (not whole results column). */
@media (min-width: 901px) {
  body.amc-page .amc-results {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  body.amc-page .amc-terminal-review-banner {
    flex-shrink: 0;
  }

  body.amc-page .amc-terminal-list-panel {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }
}

/* Left column (blue filters) can be taller than the viewport at 100% zoom.
   Body/main use overflow:hidden + fixed vh, so without this the panel is clipped
   and there is no way to reach the bottom buttons. Let this column scroll. */
body.amc-page .amc-filters {
  min-height: 0;
  align-self: stretch;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

body.amc-page .site-footer {
  flex-shrink: 0;
}

/* ===========================
   Full-screen home hero (buttons over artwork)
   =========================== */

.hero-full {
  position: relative;
  min-height: 100vh;
  background-color: var(--blue-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  max-width: 100%;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem 2.5rem;
}

.pops-title {
  font-family: "Baloo 2", system-ui, sans-serif;
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1.1;
  text-align: center;
  color: #ffd43b;
  margin: 0 0 1.5rem;
  text-shadow:
    -2px -2px 0 #0d47a1,
     2px -2px 0 #0d47a1,
    -2px  2px 0 #0d47a1,
     2px  2px 0 #0d47a1,
     0px  3px 4px rgba(0,0,0,0.6);
}

.hero-button {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 0.65rem 1rem; /* ~15% taller (was 0.55rem) */
  border-radius: 999px;
  border: 2px solid #0d47a1; /* darker blue edge */
  background: linear-gradient(180deg, #42a5f5, #1e88e5, #0d47a1);
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.35);
}

.hero-button:hover {
  background: linear-gradient(180deg, #64b5f6, #1e88e5, #0d47a1);
}

.hero-panel {
  display: flex;
  width: 100%;
  justify-content: center;
  padding-right: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(220px, 260px); /* single column of 8 buttons */
  gap: 0.4rem;
  max-width: 260px;
}

@media (max-width: 800px) {
  .hero-panel {
    justify-content: center;
    padding-right: 0;
  }

  .hero-grid {
    grid-template-columns: minmax(180px, 260px);
  }
}

/* ===========================
   Alternate home (index2) – banner + Pop + buttons
   =========================== */

body.home2-page {
  /* Soft sky background behind the hero card */
  background:
    linear-gradient(to bottom, #e7f3ff 0%, #cfe5ff 55%, #b7d6ff 100%);
}

.home2-main {
  flex: 1;
  max-width: 1320px; /* ~18% wider overall container */
  margin: 0 auto;
  padding: 1.25rem 1rem 2.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.home2-page .spacea-banner {
  margin-top: 0.15rem;
}

.home2-title-img {
  display: block;
  width: min(100%, 780px);
  height: auto;
}

.pops-title {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.home2-hero-image {
  display: flex;
  justify-content: center;
  margin: 0.38rem 0 0.43rem;
}

.home2-hero-main-image {
  display: block;
  width: min(100%, 520px);
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.home2-intro {
  max-width: 880px;
  margin: 0.30rem auto 0.68rem;
  padding: 0 1rem;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #204060;
  text-align: center;
  min-height: 5.5em; /* Reserve space to reduce CLS when fonts load */
}

.home2-share-wrap {
  margin: 0.15rem auto 0.35rem;
  padding: 0 1rem;
  text-align: center;
}

.home2-share-x {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 2px solid #0d47a1;
  background: linear-gradient(180deg, #fafafa, #eceff1);
  color: #0d47a1;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.home2-share-x:hover {
  background: linear-gradient(180deg, #ffffff, #e3f2fd);
  color: #0d47a1;
}

.home2-share-x-icon {
  display: block;
  flex-shrink: 0;
}

.home2-updated-line {
  max-width: 880px;
  margin: 0.1rem auto 0.7rem;
  padding: 0 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #455a64;
  text-align: center;
}

/* Home: last-refreshed + schedule cadence (same typography, grouped spacing) */
.home2-updated-stack {
  max-width: 880px;
  margin: 0.1rem auto 0.7rem;
  padding: 0 1rem;
}
.home2-updated-stack > .home2-updated-line {
  max-width: none;
  margin: 0;
  padding: 0;
}
.home2-updated-stack > .home2-updated-line:first-child {
  margin-bottom: 0.35rem;
}

.home2-blog-heading {
  margin: 0.4rem auto 0.75rem;
  font-size: 2.3rem;
  font-weight: 700;
  text-align: center;
  color: #0d47a1;
}

.home2-divider-bar {
  max-width: 880px;
  height: 4px;
  margin: 0.4rem auto 0.8rem;
  background-color: #0d47a1;
  border-radius: 999px;
}

.home2-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.875rem; /* ~15% larger */
  flex-wrap: wrap;
  padding: 2.3rem 3.2rem; /* ~15% larger */
  border-radius: 23px; /* ~15% larger */
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.home2-art {
  flex: 1 1 598px; /* ~15% larger than 520px */
  max-width: 667px; /* ~15% larger than 580px */
}

.home2-art-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.home2-menu {
  display: flex;
  justify-content: center;
}

.home2-menu .hero-grid {
  max-width: 345px; /* ~15% larger than 300px */
}

.home2-schedule-updated {
  margin: 0.75rem 0 0;
  font-size: 20px;
  color: #1a5490;
  text-align: center;
}

.home2-disclaimer {
  margin-top: 1.5rem;
}

/* Blog-style home layout (index2) */
.home2-blog-page .home2-main {
  align-items: stretch;
}

.home2-blog-layout {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  max-width: 880px;
  margin: 0 auto;
}

.home2-blog {
  flex: 2 1 0;
  min-width: 0;
}

.home2-post {
  background-color: rgba(255, 255, 255, 0.94);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  margin-bottom: 1rem;
  overflow: hidden; /* keep floated images inside rounded card */
}

.home2-post::after {
  content: "";
  display: block;
  clear: both; /* ensure container height follows floated content */
}

.home2-post--featured {
}

.home2-post-main {
  flex: 1 1 0;
  min-width: 0;
}

.home2-post-image {
  float: right;
  max-width: 30%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  object-fit: cover;
  margin: 0 0 0.5rem 1rem;
}

.home2-post-image--large {
  max-width: 45%;
}

/* Home blog cards (index.html): primary headline per article. Keep this larger and
   heavier than body (.home2-post p) and in-post subheads (.home2-post h3). Use
   <h2 class="home2-post-title">…</h2> for new posts. */
.home2-post-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 2.6vw, 1.8rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #042c5c;
}

.home2-post-meta {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: #455a64;
}

.home2-post p {
  margin: 0 0 0.6rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.home2-post h3 {
  margin: 1.1rem 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1565c0;
  line-height: 1.35;
}

.home2-post h3:first-of-type {
  margin-top: 0.35rem;
}

.home2-post ul {
  margin: 0 0 0.75rem 1.25rem;
  padding: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.home2-post li {
  margin-bottom: 0.35rem;
}

.home2-post li:last-child {
  margin-bottom: 0;
}

.home2-post-sep {
  border: 0;
  border-top: 1px solid rgba(13, 71, 161, 0.18);
  margin: 1.1rem 0;
}

.home2-post-pull {
  font-size: 0.98rem;
  margin: 0.45rem 0 0.65rem;
  font-weight: 600;
  color: #37474f;
}

.home2-post-avatar {
  float: left;
  width: 72px;
  height: auto;
  border-radius: 50%;
  margin: 0 0.75rem 0.5rem 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.home2-side {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 800px) {
  .home2-main {
    padding-top: 0.15rem;
  }

  .home2-hero {
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.45rem 0.6rem 0.7rem;
  }

  .home2-art {
    max-width: 100%;
  }

  .home2-art-image {
    max-height: 170px;
    object-fit: cover;
  }

  .home2-schedule-updated {
    margin-top: 0.4rem;
    font-size: 0.95rem;
  }

  .home2-blog-layout {
    flex-direction: column;
  }

  .home2-side {
    order: -1;
  }

  .home2-post {
    padding: 0.9rem 0.9rem 1rem;
  }

  .home2-post-image {
    max-width: 45%;
    margin: 0 0 0.5rem 0.75rem;
  }
}

/* (If we need additional tweaks for very small laptop screens, we can add
   height-based media queries here later.) */

/* Disclaimer box – same max-width, padding, background, type as home .hero-disclaimer */
.hero-disclaimer,
.site-footer p {
  max-width: 640px;
  padding: 0.5rem 0.75rem;
  background-color: rgba(0, 0, 0, 0.55);
  color: #f5f5f5;
  border-radius: 6px;
  font-size: 0.8rem;
  text-align: center;
  box-sizing: border-box;
  margin: 0;
}

.hero-disclaimer {
  margin-top: auto;
  margin-bottom: 1.25rem;
  align-self: center;
}

/* Footer centers the box so it matches home width; no full-bleed background */
.site-footer {
  display: flex;
  justify-content: center;
  padding: 1rem 1rem 1.25rem;
}

/* ===========================
   Top menu bar (8 buttons) on all pages except home
   =========================== */

.page-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--blue-dark);
}

.nav-btn {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 2px solid #0d47a1;
  background: linear-gradient(180deg, #42a5f5, #1e88e5, #0d47a1);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.5rem;
  background: transparent; /* show only the icon image */
  border: none;
  box-shadow: none;
  line-height: 0; /* no extra vertical spacing from inline content */
  border-radius: 999px;
}

.nav-btn-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.nav-btn-icon img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.nav-btn:hover {
  background: linear-gradient(180deg, #64b5f6, #1e88e5, #0d47a1);
}

.nav-btn-icon:hover {
  background: transparent;
}

.nav-btn-active {
  background: linear-gradient(180deg, #7a9fc9, #5a7fa8, #3d5a7a);
  border-color: #3d5a7a;
  color: rgba(255, 255, 255, 0.9);
  cursor: default;
  pointer-events: none;
}

.nav-btn-active:hover {
  background: linear-gradient(180deg, #7a9fc9, #5a7fa8, #3d5a7a);
}

/* Mobile hamburger nav */
.mobile-nav-toggle {
  position: fixed;
  top: 0.4rem;
  right: 0.6rem;
  z-index: 1100;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 2px solid #0d47a1;
  background: linear-gradient(180deg, #42a5f5, #1e88e5, #0d47a1);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.mobile-nav-toggle-bar {
  width: 1.2rem;
  height: 2px;
  background-color: #fff;
  border-radius: 999px;
  position: relative;
}

.mobile-nav-toggle-bar::before,
.mobile-nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1.2rem;
  height: 2px;
  background-color: #fff;
  border-radius: 999px;
}

.mobile-nav-toggle-bar::before {
  top: -0.3rem;
}

.mobile-nav-toggle-bar::after {
  top: 0.3rem;
}

.mobile-nav-toggle:focus-visible {
  outline: 3px solid #ffeb3b;
  outline-offset: 2px;
}

@media (max-width: 800px) {
  /* Show hamburger, turn nav into overlay */
  .mobile-nav-toggle {
    display: flex;
  }

  .page-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease-out, opacity 0.18s ease-out;
    padding-top: 2.75rem; /* space under the hamburger */
  }

  body.nav-open .page-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open {
    overflow: hidden;
  }

}

/* ===========================
   Interior pages (about, eligibility, etc.)
   Keep existing header/layout styles for them
   =========================== */

.site-header {
  background-color: var(--blue-dark);
  color: white;
  padding: 0.5rem 1rem 0.75rem;
}

.logo-title {
  text-align: center;
}

.site-title {
  margin: 0.4rem auto 0.3rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.amc-header-image {
  display: block;
  width: min(100%, 560px);
  height: auto;
  margin: 0.35rem auto 0.2rem;
}

.main-nav {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.main-nav a {
  color: #e3f2fd;
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.main-nav a.active,
.main-nav a:hover {
  background-color: var(--blue);
  color: white;
}

.content {
  max-width: 1120px;
  margin: 1.5rem auto 2.5rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 2rem;
}

@media (max-width: 800px) {
  .content {
    display: block;
  }
}

.content.single-column {
  display: block;
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
}

.hero-text h1 {
  font-size: 2rem;
  margin-top: 0;
}

.hero-text p {
  font-size: 1rem;
  line-height: 1.6;
}

.primary-button {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #42a5f5, #1e88e5, #0d47a1);
  color: white;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.35);
}

.primary-button:hover {
  background: linear-gradient(180deg, #64b5f6, #1e88e5, #0d47a1);
}

.features-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.features-grid article {
  background: white;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.popsparis-section {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.popsparis-section img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

/* ===========================
   AMC Terminals page
   =========================== */

.amc-layout {
  max-width: 1180px;
  margin: 1rem auto 2.5rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) minmax(196px, 280px);
  gap: 0.75rem;
}

.amc-side-image {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.amc-side-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}



.amc-page-title-wrap {
  display: flex;
  justify-content: center;
  padding: 0 1rem 0.1rem;
}

.amc-page-title-image {
  display: block;
  width: min(100%, 700px);
  height: auto;
}

/* AMC PASSENGER TERMINALS–style banner: yellow fill, blue outline, 3D shadow (CSS only; text per page) */
.spacea-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.4rem 1rem 0.55rem;
  flex-shrink: 0;
}

.spacea-banner-title {
  margin: 0;
  max-width: 100%;
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.65rem, 5.5vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  /* Bright yellow fill (lighter top / deeper gold feel via subtle inner highlight in shadow) */
  color: #ffeb3b;
  /* Thick blue outline like AMC art */
  -webkit-text-stroke: 0.11em #1e88e5;
  paint-order: stroke fill;
  /* 3D extrusion: dark blue steps down-right */
  text-shadow:
    0.04em 0.04em 0 #1565c0,
    0.07em 0.07em 0 #0d47a1,
    0.1em 0.1em 0 #0a3d91,
    0.12em 0.12em 0 #082e6b,
    0.14em 0.14em 0.06em rgba(0, 0, 0, 0.2);
}

/* Long titles: slightly smaller so it fits one line on narrow screens */
.spacea-banner-title--long {
  font-size: clamp(1.2rem, 4vw, 2rem);
  letter-spacing: 0.03em;
}

@media (max-width: 900px) {
  .amc-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* On small screens (e.g. iPhone), tweak AMC layout scrolling */
@media (max-width: 900px) {
  body.amc-page {
    display: block;
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: auto;
    touch-action: pan-y;
  }
  body.amc-page .page-nav,
  body.amc-page .amc-page-title-wrap,
  body.amc-page .site-footer {
    flex: none;
  }
  body.amc-page .amc-layout {
    display: block;
    overflow: visible;
    min-height: 0;
    flex: none;
  }
  body.amc-page .amc-results {
    overflow: visible;
    min-height: 0;
  }

  body.amc-page .amc-terminal-list-panel {
    flex: none;
    overflow: visible;
    max-height: none;
  }
}

.amc-filters {
  background: #bbd6f5;
  border-radius: 8px;
  padding: 0.8rem 0.7rem 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
  /* Default: start-aligned. On body.amc-page, overridden to stretch + scroll
     so tall filter panels are not clipped (see body.amc-page .amc-filters). */
  align-self: start;
}

.amc-title {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0d47a1;
}

/* Section headings in AMC / Quick View filter panels (matches amc-terminals.html) */
.amc-heading {
  margin: 0.65rem 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0d47a1;
}

.amc-heading:first-of-type {
  margin-top: 0;
}

.quick-view-search-hint {
  margin: 0 0 0.65rem;
  font-size: 0.76rem;
  color: #204060;
  line-height: 1.35;
}

.amc-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.amc-search-wrap {
  position: relative;
  margin: 0 0 0.7rem;
}
.amc-search-wrap label {
  display: block;
}
.amc-search-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.5rem;
  min-height: 2.7em;
  font-size: 0.9rem;
  border: 1px solid #90caf9;
  border-radius: 6px;
  background: #fff;
  color: #0d47a1;
}
.amc-search-input::placeholder {
  color: #5c7a9e;
}
.amc-search-input:focus {
  outline: 2px solid #0d47a1;
  outline-offset: 2px;
}
.amc-search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #90caf9;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
  margin-top: 2px;
}
.amc-search-suggestions[aria-hidden="true"] {
  display: none;
}
.amc-search-suggestions .amc-search-item {
  display: block;
  width: 100%;
  padding: 0.4rem 0.5rem;
  font-size: 0.88rem;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
  color: #0d47a1;
  border-bottom: 1px solid #e3f2fd;
}
.amc-search-suggestions .amc-search-item:last-child {
  border-bottom: none;
}
.amc-search-suggestions .amc-search-item:hover,
.amc-search-suggestions .amc-search-item[aria-selected="true"] {
  background: #e3f2fd;
}

.amc-filter-group {
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0 0 0.7rem;
  min-width: 0;
}

.amc-filter-group legend {
  padding: 0;
  font-weight: 600;
}

.amc-filter-group label {
  display: block;
  font-size: 0.9rem;
  margin-top: 0.18rem;
}

.amc-note {
  font-size: 0.76rem;
  color: #204060;
  margin: 0;
  line-height: 1.35;
}

.amc-closest-radius {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.5rem 0 0.75rem;
}
.amc-closest-radius-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #204060;
}
.amc-closest-radius input[type="range"] {
  width: 100%;
  max-width: 260px;
}
.amc-closest-zip {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0 0 0.75rem;
}
.amc-closest-zip input[type="text"] {
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  border: 1px solid #90caf9;
  max-width: 260px;
}

.amc-results {
  min-height: 0;
}

/* Total terminal count from terminals_master → terminals_ui (above cards) */
.amc-terminal-review-banner {
  margin: 0 auto 0.65rem;
  padding: 0 0.5rem;
  max-width: min(70vw, 520px);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0d47a1;
  text-align: center;
  line-height: 1.35;
}

/* White boxed list area: AMC Terminals, Closest, Quick View flights (shared look + scrollbar). */
.amc-terminal-list-panel {
  margin: 0 auto;
  box-sizing: border-box;
  width: 100%;
  max-width: min(calc(70vw + 1rem), 536px);
  padding: 0.5rem 0.35rem 0.65rem;
  background: #fff;
  border: 1px solid #90caf9;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  scrollbar-width: thin;
  scrollbar-color: #9e9e9e #f2f2f2;
}

.amc-terminal-list-panel::-webkit-scrollbar {
  width: 11px;
}

.amc-terminal-list-panel::-webkit-scrollbar-track {
  background: #f2f2f2;
}

.amc-terminal-list-panel::-webkit-scrollbar-thumb {
  background: #a8a8a8;
  border-radius: 5px;
  border: 2px solid #f2f2f2;
}

.amc-terminal-list-panel::-webkit-scrollbar-thumb:hover {
  background: #8a8a8a;
}

@media (max-width: 900px) {
  .amc-terminal-list-panel {
    max-width: min(calc(92vw + 1rem), 444px);
  }
}

.amc-terminals-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.amc-terminal-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #ffffff;
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  border: 1.25px solid #1565c0;
  width: min(70vw, 520px);
  min-width: 320px;
  text-decoration: none;
  color: inherit;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.amc-terminal-card-title {
  width: 100%;
  text-align: center;
}

.amc-terminal-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.16);
}

.amc-terminal-short {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

/* AMC Terminals list: Quick View CSV–based counts — always second line below name/state */
.amc-terminal-card-stats {
  display: block;
  width: 100%;
  font-size: 0.82rem;
  font-weight: 500;
  color: #37474f;
  margin: 0.5rem 0 0;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(21, 101, 192, 0.22);
  line-height: 1.35;
  text-align: center;
  box-sizing: border-box;
}

.amc-state-header {
  width: min(70vw, 520px);
  min-width: 320px;
  margin: 0.8rem 0 0.1rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0d47a1;
  text-align: left;
}

.amc-map-button,
.amc-action-button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.amc-map-button {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: flex-start;
  background: transparent;
  color: #183a66;
  padding-left: 0.2rem;
  margin: 0.1rem 0 0.5rem;
}

.amc-map-icon {
  font-size: 2rem;
  line-height: 1;
}

.amc-action-button {
  background: #1565c0;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.amc-action-button.is-active {
  background: #0d47a1;
}

@media (max-width: 900px) {
  .amc-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .amc-terminal-card,
  .amc-state-header {
    width: min(92vw, 420px);
  }
}

/* ===========================
   Terminal detail page (per-terminal background + contacts)
   =========================== */

.terminal-page {
  margin: 0;
  min-height: 100vh;
  position: relative;
  background: #1a1a1a;
}

/* Nav bar above full-bleed background (same strip as other interior pages) */
.terminal-page .terminal-page-nav,
.terminal-page .page-nav.terminal-page-nav {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.terminal-bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.55);
  z-index: 0;
}

/* Header sits outside overlay so it can span full viewport width */
.terminal-header {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  text-align: center;
  padding: 0.5rem 1rem 0.75rem;
  box-sizing: border-box;
}

.terminal-overlay {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 8rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 1rem 2rem;
  max-width: 480px;
  margin: 0 auto;
}

.terminal-header-link {
  display: block;
  width: 100%;
  text-decoration: none;
  color: #fff;
}

.terminal-header-link:hover .terminal-banner-text {
  filter: brightness(1.08);
}

.terminal-header-image {
  display: none;
  max-width: 100%;
  width: auto;
  height: auto;
  vertical-align: middle;
}

/* Banner row: transparent so terminal photo shows through; text keeps yellow/blue stack */
.terminal-header-text {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  background: transparent;
}

.terminal-banner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.45rem 0.4rem;
  min-width: 0;
}

/* Text style like reference: yellow fill, blue outline, 3D depth, drop shadow */
/* Was clamp(0.7rem, 3.2vw, 1.05rem) — too small; now larger while still fitting narrow phones */
.terminal-banner-text {
  font-family: "Baloo 2", system-ui, sans-serif;
  font-weight: 700;
  /* Doubled from clamp(1.15rem, 5.5vw, 1.75rem) */
  font-size: clamp(2.3rem, 11vw, 3.5rem);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  color: #ffeb3b;
  margin: 0;
  /* Blue outline via multi-direction shadows */
  text-shadow:
    1px 0 0 #1565c0, -1px 0 0 #1565c0, 0 1px 0 #1565c0, 0 -1px 0 #1565c0,
    1px 1px 0 #1565c0, -1px -1px 0 #1565c0, 1px -1px 0 #1565c0, -1px 1px 0 #1565c0,
    2px 0 0 #1565c0, -2px 0 0 #1565c0, 0 2px 0 #1565c0, 0 -2px 0 #1565c0,
    2px 2px 0 #1565c0, -2px -2px 0 #1565c0, 2px -2px 0 #1565c0, -2px 2px 0 #1565c0,
    /* 3D chiseled layer (darker blue, bottom-right) */
    3px 3px 0 #0d47a1,
    4px 4px 0 #0a3a82,
    5px 5px 0 #082f6b,
    /* soft drop shadow */
    6px 6px 10px rgba(0, 0, 0, 0.5);
}

.terminal-pdf-disclaimer {
  margin: 0 0 0.75rem 0;
  margin-left: 1.25rem;
  font-size: 1.15rem;
  font-style: italic;
  color: #ffeb3b;
  max-width: 32rem;
}

.terminal-schedule-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.terminal-schedule-buttons .terminal-btn {
  width: 8.5rem;
  min-width: 8.5rem;
  box-sizing: border-box;
  white-space: nowrap;
}

.terminal-btn {
  display: inline-block;
  text-align: center;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.terminal-btn-72h {
  background: #1565c0;
}

.terminal-btn-rollcall {
  background: #1b5e20;
}

.terminal-btn-30day {
  background: #e65100;
}

.terminal-btn-history {
  background: #455a64;
  width: fit-content;
  min-width: auto;
  white-space: nowrap;
  margin-top: 0;
  padding: 0.45rem 0.75rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  flex-shrink: 0;
}

.terminal-btn-history-departure {
  background: #1565c0; /* match the 72h button blue */
  border-color: rgba(255, 255, 255, 0.35);
}

.terminal-btn-history-arrival {
  background: #1b5e20; /* match existing rollcall/green */
  border-color: rgba(255, 255, 255, 0.35);
}

.terminal-history-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2.25rem;
  margin: 0.75rem 0 0;
  flex-wrap: nowrap;
}

.terminal-history-note {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  max-width: 26rem;
  margin: 0;
  display: flex;
  align-items: center; /* keep first line aligned with button */
}

.terminal-quickview-section {
  width: 100%;
  margin-bottom: 1.25rem;
}

.terminal-quickview-section #terminal-qv-arriving-wrap {
  margin-top: 1.25rem;
}

.terminal-quickview-title-arriving {
  color: #e8f5e9;
}

.terminal-quickview-box-arriving {
  border: 2px solid #2e7d32;
}

.terminal-qv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.terminal-qv-table th,
.terminal-qv-table td {
  border: 1px solid #bbb;
  padding: 0.4rem 0.5rem;
  text-align: left;
}

.terminal-qv-table thead th {
  background: #1565c0;
  color: #fff;
}

.terminal-quickview-box-arriving .terminal-qv-table thead th {
  background: #2e7d32;
}

.terminal-quickview-loading,
.terminal-quickview-empty {
  margin: 0;
  color: #555;
  font-size: 0.9rem;
}

.terminal-quickview-title {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.terminal-contact-header {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffeb3b; /* bright yellow for contrast on varying backgrounds */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.terminal-quickview-box {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  padding: 1rem;
  min-height: 80px;
}

/* Departure History Modal (terminal.html) */
.term-history-overlay {
  position: fixed;
  inset: 0;
  z-index: 1305;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  -webkit-overflow-scrolling: touch;
}

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

.term-history-dialog {
  width: 100%;
  max-width: 760px;
  margin-top: 4vh;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 12px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
}

.term-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  background: #1565c0;
  color: #fff;
}

.term-history-title {
  font-weight: 800;
  font-size: 1.05rem;
}

.term-history-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  padding: 0.1rem 0.45rem;
  cursor: pointer;
}

.term-history-note {
  margin: 0;
  padding: 0.45rem 1rem 0.35rem;
  font-size: 0.88rem;
  font-style: italic;
  color: #37474f;
  line-height: 1.35;
  background: #eceff1;
  border-bottom: 1px solid #cfd8dc;
}

.term-history-controls {
  display: flex;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  flex-wrap: wrap;
}

.term-history-sort-btn {
  background: #2f6fbf;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.term-history-sort-btn.is-active {
  background: #0d47a1;
}

.term-history-table-wrap {
  padding: 0 1rem 1rem 1rem;
  max-height: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
}

.term-history-loading,
.term-history-empty {
  margin: 0;
  padding: 0.75rem 0;
  color: #555;
  font-size: 0.95rem;
}

.terminal-quickview-soon {
  margin: 0;
  color: #555;
  font-size: 0.9rem;
}

.terminal-contact-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.terminal-contact-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: #1565c0;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* Email & Address: label + value left-justified, copy button stays on the right */
.terminal-contact-row-copy {
  align-items: flex-start;
}

.terminal-contact-row-copy .terminal-contact-value-wrap {
  flex: 1;
  min-width: 0;
  justify-content: flex-start;
  align-items: flex-start;
}

.terminal-contact-row-copy .terminal-contact-value {
  text-align: left;
  flex: 1;
  min-width: 0;
}

.terminal-contact-row-copy .terminal-contact-copy {
  margin-left: auto;
  align-self: flex-start;
}

/* Hours of Operation (and any wrap row): long values wrap, row grows taller */
.terminal-contact-row-wrap {
  align-items: flex-start;
  min-width: 0; /* so flex children can shrink inside narrow column */
}

.terminal-contact-row-wrap .terminal-contact-value-wrap {
  flex: 1;
  min-width: 0;
  align-items: flex-start;
  justify-content: flex-start; /* wrapped text starts at left of value area */
}

.terminal-contact-row-wrap .terminal-contact-value {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  /* pre-line keeps intentional newlines (multi-phone) and still wraps long lines */
  white-space: pre-line;
  text-align: left; /* left-justified after wrap */
  line-height: 1.35;
}

/* Wrap row + copy button: keep copy control on the right */
.terminal-contact-row-wrap .terminal-contact-copy {
  margin-left: auto;
  align-self: flex-start;
}

/*
 * Commercial #, DSN #, Commercial Fax, DSN Fax, 24h Recording:
 * Fixed-width label column so all values start at the same horizontal line (line up).
 * Values left-aligned in the value column so multi-line numbers stack neatly.
 */
.terminal-contact-row-phone {
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.75rem;
}

.terminal-contact-row-phone .terminal-contact-label {
  flex-shrink: 0;
  width: 10.5rem; /* fits "Commercial Fax" / "24h Recording" — same for every row */
  min-width: 10.5rem;
  text-align: left;
  align-self: center; /* label vertically centered vs value block */
}

.terminal-contact-row-phone .terminal-contact-value-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.terminal-contact-row-phone .terminal-contact-value {
  text-align: left;
  white-space: pre-line;
  width: 100%;
  max-width: 100%;
}


.terminal-contact-label {
  font-weight: 700;
  flex-shrink: 0;
}

.terminal-contact-value-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

/* Rows without copy: single-line layout — but wrap rows must shrink so text wraps */
.terminal-contact-row:not(.terminal-contact-row-copy):not(.terminal-contact-row-wrap) .terminal-contact-value-wrap {
  flex: none;
}

.terminal-contact-row:not(.terminal-contact-row-copy):not(.terminal-contact-row-wrap) .terminal-contact-value {
  flex: none;
}

.terminal-contact-row:not(.terminal-contact-row-copy):not(.terminal-contact-row-wrap) .terminal-contact-value {
  text-align: right;
}

.terminal-contact-value {
  word-break: break-word;
  text-align: right;
  flex: 1;
  min-width: 0;
}

.terminal-contact-row-copy .terminal-contact-value {
  white-space: pre-line;
}

a.terminal-contact-maps-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a.terminal-contact-maps-link:hover {
  text-decoration: underline;
}

.terminal-contact-copy {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
}

.terminal-contact-copy:hover {
  background: rgba(255, 255, 255, 0.35);
}

.terminal-contact-copy:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.terminal-placeholder-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 320px;
  margin-bottom: 1rem;
}

.terminal-btn-placeholder {
  background: #5c6b2a;
  border-color: rgba(255, 255, 255, 0.6);
}

.terminal-footer.site-footer {
  margin-top: auto;
}

/* ===========================
   Eligibility page (matches Flutter eligibility_screen.dart)
   =========================== */

.eligibility-page .eligibility-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
}

.faq-page .eligibility-main {
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.25rem 1rem 2rem;
}

.faq-blog-meta {
  font-size: 0.9rem;
  color: #555;
  margin: 0 0 1rem;
}

.faq-blog-body {
  margin-top: 0;
}

.faq-blog-body h3 {
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
  color: #0d47a1;
}

.faq-blog-body h3:first-of-type {
  margin-top: 0;
}

.faq-blog-body ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.faq-blog-body li {
  margin-bottom: 0.35rem;
}

.eligibility-page .eligibility-intro,
.eligibility-intro {
  display: block;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  padding: 0 1rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #204060;
}

.eligibility-section {
  margin-bottom: 1.75rem;
}

.eligibility-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0d47a1;
  margin: 0 0 0.75rem;
}

.eligibility-instructions-list {
  margin: 0;
  padding-left: 1.35rem;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.45;
}

.eligibility-instructions-list li {
  margin-bottom: 0.5rem;
}

.eligibility-instructions-list li::marker {
  font-weight: 700;
}

/* Accordion: same header blue as Flutter _headerBlue #2B3A57 */
.eligibility-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 4px;
  overflow: hidden;
}

.eligibility-panel {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.eligibility-panel:last-child {
  border-bottom: none;
}

.eligibility-panel-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  background: #2b3a57;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  user-select: none;
}

.eligibility-panel-summary::-webkit-details-marker {
  display: none;
}

.eligibility-panel-summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  width: 1.5rem;
  text-align: center;
}

.eligibility-panel[open] .eligibility-panel-summary::after {
  content: "−";
}

.eligibility-panel-summary:hover {
  filter: brightness(1.08);
}

.eligibility-panel-body {
  background: #e0e0e0;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #222;
}

.eligibility-panel-body p {
  margin: 0 0 0.65rem;
}

.eligibility-panel-body p:last-child {
  margin-bottom: 0;
}

.eligibility-bullets {
  margin: 0.35rem 0 0;
  padding-left: 1.25rem;
}

.eligibility-bullets li {
  margin-bottom: 0.35rem;
}

.eligibility-signup p {
  font-size: 0.95rem;
  line-height: 1.45;
  color: #333;
  margin: 0 0 0.75rem;
}

.eligibility-signup-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 2px solid #1565c0;
  border-radius: 8px;
  color: #1565c0;
  font-weight: 600;
  text-decoration: none;
}

.eligibility-signup-link:hover {
  background: #1565c0;
  color: #fff;
}

/* ===========================
   Social media page (Flutter social_media_screen – text only, no images)
   =========================== */

body.social-media-page {
  background-color: var(--olive-bg);
  display: flex;
  flex-direction: column;
}

body.social-media-page .spacea-banner {
  flex-shrink: 0;
}

.social-media-main {
  flex: 1;
  max-width: 520px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
  width: 100%;
}

.social-media-title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  color: var(--blue-dark);
  text-align: center;
}

.social-media-intro {
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #424242;
  text-align: center;
}

.social-media-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0d47a1;
  margin: 0 0 0.75rem;
}

.social-media-list + .social-media-section-title {
  margin-top: 1.5rem;
}

.social-media-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-media-item {
  margin-bottom: 0.75rem;
}

.social-media-link {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  padding: 0.65rem 0.85rem;
  background: #fff;
  border: 1px solid rgba(21, 101, 192, 0.35);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.social-media-thumb {
  flex: 0 0 auto;
  width: 150px;
  height: 150px;
  max-width: 28vw;
  max-height: 28vw;
  object-fit: contain;
  border-radius: 4px;
  background: #f0f0f0;
}

.social-media-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.25rem;
  min-width: 0;
}

.social-media-link:hover {
  border-color: var(--blue);
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.12);
}

.social-media-label {
  font-weight: 700;
  color: var(--blue-dark);
}

.social-media-desc {
  font-size: 0.95rem;
  line-height: 1.35;
  color: #333;
}

.social-media-open {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 1rem;
  line-height: 1;
}

.social-media-back-wrap {
  margin-top: 2rem;
  text-align: center;
}

.social-media-back {
  display: inline-block;
  padding: 0.65rem 2.5rem;
  background: var(--blue-dark);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.social-media-back:hover {
  background: var(--blue);
  color: #fff;
}

.social-media-add-btn {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.65rem 1.5rem;
  background: var(--blue-dark);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  border: none;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.social-media-add-btn:hover {
  background: var(--blue);
  color: #fff;
}

/* Social modal — same visual language as feedback form */
/* When closed, overlay has hidden attribute; display:flex would override hidden and show it on load */
.social-modal-overlay[hidden] {
  display: none !important;
}
.social-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 1rem;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}

.social-modal-dialog {
  width: 100%;
  max-width: 520px;
  margin: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.social-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #fafafa;
  border-radius: 10px 10px 0 0;
}

.social-modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #333;
}

.social-modal-close {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  border: none;
  background: transparent;
  color: #666;
  cursor: pointer;
  border-radius: 4px;
}

.social-modal-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #111;
}

.social-modal-form {
  margin: 0;
  border: none;
  border-radius: 0 0 10px 10px;
  box-shadow: none;
}

.social-modal-success {
  margin: 0;
  border: none;
  border-radius: 0 0 10px 10px;
  padding: 1.5rem;
}

.social-char-count {
  font-weight: 600;
  color: var(--blue-dark);
}

.social-required-mark {
  font-weight: 500;
  color: #555;
  font-size: 0.85rem;
}

.social-optional {
  font-weight: 400;
  color: #777;
  font-size: 0.85rem;
}

/* ===========================
   Quick View page (matches Flutter QuickViewScreen + space_a_departures_future.csv)
   =========================== */
/* Same scroll pattern as body.amc-page: nav + scrollable middle + footer */
body.quick-view-page {
  background-color: #b7bf77;
  display: flex;
  flex-direction: column;
}

/* Embed mode for screenshots: hide nav/banner/footer so only sort buttons + flights show */
body.quick-view-page.quick-view-embed .page-nav,
body.quick-view-page.quick-view-embed .spacea-banner,
body.quick-view-page.quick-view-embed .site-footer,
body.quick-view-page.quick-view-embed .quick-view-intro-centered,
body.quick-view-page.quick-view-embed .amc-side-image {
  display: none;
}

/* Snapshot embed: use natural height like 2026-03-15 backup */
body.quick-view-page.quick-view-embed {
  height: auto;
  min-height: 0;
  overflow: visible;
  padding: 0;
  box-sizing: border-box;
}

body.quick-view-page.quick-view-embed .quick-view-main {
  max-width: 520px; /* narrower for snapshot so less green on sides */
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.25rem; /* override normal 2.5rem bottom margin to shrink green footer */
  height: auto;
  min-height: 0;
  overflow: visible;
}

body.quick-view-page.quick-view-embed .quick-view-results {
  max-height: none;
}

body.quick-view-page .page-nav {
  flex-shrink: 0;
}

body.quick-view-page .spacea-banner {
  flex-shrink: 0;
}

body.quick-view-page .site-footer {
  flex-shrink: 0;
}

/* Desktop Quick View: match AMC Terminals — lock viewport height, scroll middle column,
   and let the blue filters column scroll when taller than the viewport (100% zoom). */
@media (min-width: 769px) {
  body.quick-view-page:not(.quick-view-embed):not(.snapshot-page) {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  body.quick-view-page:not(.quick-view-embed):not(.snapshot-page) .quick-view-main.amc-layout {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    grid-template-rows: minmax(0, 1fr);
  }

  body.quick-view-page:not(.quick-view-embed):not(.snapshot-page) .amc-results.quick-view-results-shell {
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
  }

  body.quick-view-page:not(.quick-view-embed):not(.snapshot-page) .amc-filters.quick-view-filters {
    min-height: 0;
    align-self: stretch;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }

  /* Scroll inside white list panel (same pattern as AMC Terminals). */
  body.quick-view-page:not(.quick-view-embed):not(.snapshot-page) .quick-view-list-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  body.quick-view-page:not(.quick-view-embed):not(.snapshot-page) .quick-view-results.amc-terminal-list-panel {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }
}

/* On small screens (e.g. iPhone Safari), allow full-page scroll */
@media (max-width: 768px) {
  body.social-media-page,
  body.eligibility-page {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.quick-view-page {
    height: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.quick-view-page .quick-view-main {
    overflow: visible;
    min-height: 0;
  }
  body.quick-view-page .quick-view-body {
    overflow: visible;
  }
  body.quick-view-page .quick-view-results,
  body.quick-view-page .quick-view-results-shell,
  body.quick-view-page .amc-results.quick-view-results-shell {
    overflow-y: visible;
    min-height: 0;
  }
  body.quick-view-page .quick-view-results.amc-terminal-list-panel {
    flex: 0 1 auto;
    overflow: visible !important;
    max-height: none;
  }
  body.quick-view-page .quick-view-list-wrap {
    overflow: visible;
  }
}

.quick-view-main {
  flex: 1;
  min-height: 0;
  max-width: 1120px;
  margin: 0 auto 2.5rem;
  padding: 0.75rem 1rem 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.quick-view-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.quick-view-count {
  font-size: 1.5rem;
  font-weight: 700;
  color: #001f3f;
  text-align: center;
}

.quick-view-0f-note {
  font-size: 0.9rem;
  font-weight: normal;
  color: #001f3f;
  text-align: left;
  margin: 0.4rem 0 0.75rem;
}

.quick-view-intro-centered {
  max-width: 900px;
  margin: 0.35rem auto 0.5rem;
  text-align: center;
  font-size: 1.1rem;
  color: #204060;
}

/* Pull flight list up: minimal gap between intro and “Pop found…” (Quick View) */
body.quick-view-page .quick-view-intro-centered {
  margin: 0.35rem auto 0.15rem;
  padding: 0 1rem;
  box-sizing: border-box;
}

body.quick-view-page .quick-view-intro-centered p {
  margin: 0 0 0.45rem;
}

body.quick-view-page .quick-view-intro-centered p:last-child {
  margin-bottom: 0;
}

/* Kill default top margin on flight count line */
body.quick-view-page .quick-view-count {
  margin: 0 0 0.4rem;
}

body.quick-view-page .quick-view-main.amc-layout {
  margin-top: 0;
}

body.quick-view-page .quick-view-main {
  padding-top: 0.25rem;
}

body.quick-view-page .quick-view-list-wrap {
  margin-top: 0;
  padding-top: 0;
}

body.quick-view-page .page-updated {
  margin-top: 0.2rem;
  margin-bottom: 0.15rem;
}

.quick-view-zone-filters,
.quick-view-extra-filters {
  margin: 0 0 0.25rem;
}

.quick-view-zone-filters label,
.quick-view-extra-filters label {
  display: block;
  margin-top: 0.15rem;
}

.page-updated {
  max-width: 900px;
  margin: 0.25rem auto 0.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: #204060;
}

.amc-page-description {
  max-width: 900px;
  margin: 0.35rem auto 0.85rem;
  padding: 0 1rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #204060;
}

.quick-view-loading,
.quick-view-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #555;
}

.quick-view-empty-hint {
  font-size: 0.9rem;
  color: #666;
  max-width: 28rem;
  margin: 0.75rem auto 0;
  line-height: 1.4;
}

.quick-view-error {
  text-align: center;
  padding: 1.5rem 1rem;
}

.quick-view-error p {
  color: #b71c1c;
  margin-bottom: 1rem;
}

.quick-view-retry {
  max-width: 200px;
  margin: 0 auto;
}

.quick-view-error-help {
  text-align: left;
  max-width: 36rem;
  margin: 0 auto 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #333;
}

.quick-view-error-help p {
  margin: 0 0 0.5rem;
  color: #333;
}

.quick-view-error-help code {
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.quick-view-error-cmd {
  margin-top: 0.75rem !important;
}

.quick-view-error-pre {
  margin: 0 0 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #263238;
  color: #eceff1;
  border-radius: 6px;
  font-size: 0.85rem;
  overflow-x: auto;
}

.quick-view-error-or {
  margin-top: 1rem !important;
}

.quick-view-file-label {
  display: inline-block;
  margin: 0.5rem 0 0.75rem;
  cursor: pointer;
}

.quick-view-file-label input[type="file"] {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.quick-view-file-btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: var(--blue-dark);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  border: none;
}

.quick-view-file-label:hover .quick-view-file-btn {
  background: var(--blue);
}

.quick-view-file-note {
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 0 !important;
}

.quick-view-file-fallback {
  text-align: center;
  padding: 1rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 8px;
}

.quick-view-file-fallback p {
  margin: 0 0 0.5rem;
  color: #333;
}

.quick-view-past-banner {
  margin: 0 0 0.75rem;
  padding: 0.6rem 0.75rem;
  background: #fff3e0;
  border: 1px solid #ffcc80;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #e65100;
  line-height: 1.4;
  display: none; /* Hide stale CSV warning banner */
}

/* Quick View as AMC-style terminal list: sort bar + card column */
.quick-view-list-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 0;
}

.quick-view-intro {
  text-align: center;
  margin-bottom: 0.5rem;
}

/* Snapshot page: Pop image on right of flight schedule, ~3x size.
   Use flexbox so Pop's feet align with the bottom of the flight list,
   instead of relying on a fixed bottom offset that breaks as content changes. */
.quick-view-snapshot-with-pop {
  position: relative;
  width: 100%;
  min-height: 0;
}

.quick-view-snapshot-content {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

/* Snapshot: flight cards fill content column, 25% shorter cells */
.quick-view-snapshot-with-pop .amc-terminal-card.quick-view-flight-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.52rem 0.9rem;
}

.quick-view-snapshot-with-pop .amc-terminals-list {
  align-items: stretch;
  width: 100%;
  gap: 0.22rem;
  flex: 0 0 auto;
  min-height: 0;
  height: auto;
  justify-content: flex-start;
}

/* Snapshot: Pop centered ABOVE the flight cards */
.snapshot-pop-top {
  display: flex;
  justify-content: center;
  margin: 0.35rem 0 0.35rem;
}

.snapshot-pop-top img {
  display: block;
  max-height: 260px;
  width: auto;
}

.quick-view-snapshot-with-pop .quick-view-flight-route {
  line-height: 1.2;
  font-size: 0.9rem;
}

.quick-view-snapshot-with-pop .quick-view-flight-meta {
  font-size: 0.7rem;
  margin-top: 0.2rem;
}

/* Snapshot intro: larger so header stays readable next to Pop image */
/* Snapshot: hide "Full Flight Schedule Can Be Found At" line */
.quick-view-snapshot-with-pop .quick-view-intro .qv-intro-line1,
.quick-view-snapshot-with-pop .quick-view-intro .qv-intro-line1 + br {
  display: none;
}

.quick-view-snapshot-with-pop .quick-view-intro .qv-intro-line2 {
  font-size: 36px;
  font-weight: 700;
  color: #0b2040;
}

/* Snapshot page: canvas and Pop overlay */
.snapshot-page .snapshot-canvas {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.snapshot-page .snapshot-pop-overlay {
  position: absolute;
  right: 40px;  /* move Pop further right over cards */
  top: 170px;   /* moved down twice the last upward adjustment */
  z-index: 5;
}

.snapshot-page .snapshot-pop-overlay img {
  display: block;
  max-width: 297px; /* 180px * 1.65 */
  height: auto;
}

/* Snapshot page: make the white flight cards ~25% narrower than normal */
.snapshot-page .amc-terminal-card.quick-view-flight-card {
  width: min(52vw, 390px);
}

.snapshot-page .amc-terminal-list-panel {
  max-width: min(calc(52vw + 1rem), 406px);
}

.quick-view-intro .qv-intro-line1 {
  font-size: 20px;
  font-weight: 600;
}

.quick-view-intro .qv-intro-line2 {
  font-size: 26px;
  font-weight: 700;
  color: #0b2040; /* dark navy for all non-special letters */
}

.qv-letter-red {
  color: #d32f2f;
}

.qv-letter-blue {
  color: #1565c0;
}

.qv-letter-white {
  color: #ffffff;
  /* subtle outline so white letter is visible on light backgrounds */
  text-shadow: 0 0 2px #0b2040;
}

.quick-view-past-banner {
  flex-shrink: 0;
}

.quick-view-sort-bar {
  flex-shrink: 0;
}

/* Scrollable flight list — desktop scroll lives on .amc-terminal-list-panel */
.quick-view-results {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.quick-view-results.amc-terminal-list-panel {
  padding-right: 0.35rem; /* keep scrollbar off card edges */
}

.quick-view-sort-bar {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  max-width: 260px;
  margin-left: 0;
  margin-right: 0;
}

.quick-view-sort-bar .amc-action-button {
  width: 100%;
  margin-bottom: 0;
}

.quick-view-flight-list {
  /* inherits .amc-terminals-list flex column + centered cards */
  padding-bottom: 0.5rem;
}

.quick-view-flight-card {
  cursor: default;
  text-align: left;
}

a.quick-view-flight-card {
  cursor: pointer;
}

.quick-view-flight-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.16);
}

.quick-view-flight-route {
  line-height: 1.35;
  word-break: break-word;
}

.quick-view-flight-meta {
  font-size: 0.88rem;
  font-weight: 500;
  color: #37474f;
  margin-top: 0.35rem;
}

/* Natural-language line under each flight card for SEO (visible but subtle) */
.quick-view-flight-seo {
  margin: 0.25rem 0 0;
  font-size: 12px;
  color: #6b6b6b;
  font-weight: normal;
  line-height: 1.3;
}

.quick-view-table-wrap {
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.quick-view-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.quick-view-table {
  width: 100%;
  /* Extra width so Date column can hold DD-MMM-YY (e.g. 31-Dec-99) comfortably */
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.8rem;
}

/* Date column (3rd): widest DD-MMM-YY is 9 glyphs — reserve space so it never wraps/crops */
.quick-view-table th:nth-child(3),
.quick-view-table td:nth-child(3) {
  min-width: 7.25rem;
  white-space: nowrap;
  box-sizing: border-box;
}

.quick-view-table thead tr {
  background: #bbdefb;
}

.quick-view-table th,
.quick-view-table td {
  border: 1px solid #9e9e9e;
  padding: 0.5rem 0.5rem;
  text-align: left;
  vertical-align: middle;
}

.quick-view-table th {
  font-weight: 700;
  color: #0d47a1;
}

.qv-sort {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: #0d47a1;
  cursor: pointer;
  text-decoration: underline;
}

.qv-sort:hover {
  color: #1565c0;
}

.qv-sort-active {
  text-decoration: underline;
}

.quick-view-table td.qv-center {
  text-align: center;
}

.quick-view-disclaimer-dialog {
  max-width: 420px;
}

.quick-view-disclaimer-body {
  padding: 1rem 1.25rem 1.25rem;
}

.quick-view-disclaimer-body p {
  margin: 0 0 0.75rem;
  line-height: 1.45;
  color: #333;
}

.quick-view-disclaimer-body .feedback-submit {
  margin-top: 0.5rem;
  width: 100%;
}

/* ===========================
   Feedback page (matches Flutter SuggestionsScreen → feedback.php)
   =========================== */

body.feedback-page {
  background-color: #b7bf77;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.feedback-main {
  flex: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
  width: 100%;
}

.feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 400px);
  gap: 1.5rem;
  align-items: center;
}

.feedback-content {
  min-width: 0;
}

.feedback-side {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.feedback-side-image {
  max-width: 360px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

@media (max-width: 900px) {
  .feedback-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .feedback-side {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
  }
}

.feedback-title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  color: var(--blue-dark);
}

.feedback-intro {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #424242;
  max-width: 520px;
}

.feedback-form {
  background: #fff;
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  margin-top: 0.5rem;
}

.feedback-field {
  margin-bottom: 1.1rem;
}

.feedback-field:last-of-type {
  margin-bottom: 0;
}

.feedback-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: #333;
}

.feedback-input,
.feedback-textarea,
.feedback-form select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #aaa;
  border-radius: 4px;
  font-family: inherit;
  box-sizing: border-box;
}

.feedback-textarea {
  resize: vertical;
  min-height: 120px;
}

.feedback-error {
  color: #b71c1c;
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.feedback-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  background: var(--blue-dark);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.feedback-submit:hover:not(:disabled) {
  background: var(--blue);
}

.feedback-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.feedback-footnote {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.35;
}

.feedback-success {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
}

.feedback-success-remark {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
  color: #333;
}

.feedback-success-message {
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
  color: #555;
}

.feedback-back {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--blue-dark);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
}

.feedback-back:hover {
  background: var(--blue);
  color: #fff;
}

.feedback-fallback {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #444;
}

.feedback-fallback a {
  color: var(--blue-dark);
  font-weight: 600;
}

@media (max-width: 480px) {
  .social-media-link {
    flex-wrap: wrap;
  }
  .social-media-thumb {
    width: 120px;
    height: 120px;
    max-width: 100%;
    max-height: none;
  }
  .social-media-body {
    flex: 1 1 100%;
  }
}
