/* ===========================================================================
   Vista Destination — compliance chrome
   ---------------------------------------------------------------------------
   Deliberately standalone. The site has two rendering paths (the CodeIgniter
   layout and two self-contained Tailwind landing pages), and the disclosure
   must look and behave identically on both. A shared stylesheet is the only
   way to guarantee that; duplicating utility classes in each template is how
   the original drift happened.

   Palette is inherited from the existing brand navy (#063b73 / #042f5f) so the
   bar reads as part of the product, not as a bolted-on legal banner. A strip
   that looks like boilerplate gets ignored by users and discounted by
   reviewers; one that looks intentional gets read.
   =========================================================================== */

:root {
  --vd-c-navy: #042f5f;
  --vd-c-navy-deep: #02203f;
  --vd-c-amber: #f5c26b;
  --vd-c-ink: #0f172a;
  --vd-c-muted: #64748b;
  --vd-c-line: rgba(255, 255, 255, 0.16);
}

/* --------------------------------------------------------------------------
   Above-the-fold disclosure strip
   -------------------------------------------------------------------------- */
.vd-compliance-bar {
  background: var(--vd-c-navy-deep);
  color: #eef2f7;
  border-bottom: 1px solid var(--vd-c-line);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  position: relative;
  z-index: 60;
}

.vd-compliance-bar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.625rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.vd-compliance-bar__icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  margin-top: 0.1rem;
  color: var(--vd-c-amber);
}

.vd-compliance-bar p {
  margin: 0;
  font-size: 0.8125rem; /* 13px — never smaller; must be legible on a phone */
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: #dbe4ef;
}

.vd-compliance-bar strong {
  color: #ffffff;
  font-weight: 600;
}

.vd-compliance-bar a {
  color: var(--vd-c-amber);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.vd-compliance-bar a:hover,
.vd-compliance-bar a:focus-visible {
  color: #ffd89b;
}

.vd-compliance-bar a:focus-visible {
  outline: 2px solid var(--vd-c-amber);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (max-width: 640px) {
  .vd-compliance-bar__inner { padding: 0.5rem 1rem; }
  .vd-compliance-bar p { font-size: 0.75rem; line-height: 1.4; }
}

/* --------------------------------------------------------------------------
   Phone call-to-action disclosure
   Sits adjacent to every tel: link so a caller cannot mistake the number for
   an airline support line. This is the single highest-risk surface on the
   site: a phone number plus travel context is the exact shape of the airline
   support-desk impersonation pattern that ad networks police hardest.
   -------------------------------------------------------------------------- */
.vd-phone-disclosure {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--vd-c-muted);
  font-weight: 500;
}

.vd-phone-disclosure--onDark { color: rgba(226, 232, 240, 0.86); }

/* --------------------------------------------------------------------------
   Footer disclosure block
   -------------------------------------------------------------------------- */
.vd-compliance-footer {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  padding: 1.75rem 0 0.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
}

@media (min-width: 900px) {
  .vd-compliance-footer { grid-template-columns: 1.6fr 1fr; gap: 2.5rem; }
}

.vd-compliance-footer__title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: var(--vd-c-amber);
}

.vd-compliance-footer p {
  margin: 0;
  font-size: 0.775rem;
  line-height: 1.65;
  color: rgba(203, 213, 225, 0.92);
}

/* Light-surface variant for legal pages rendered on white */
.vd-compliance-footer--light .vd-compliance-footer__title { color: var(--vd-c-navy); }
.vd-compliance-footer--light p { color: #475569; }

/* --------------------------------------------------------------------------
   Accessibility floor
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .vd-compliance-bar,
  .vd-compliance-bar * { transition: none !important; animation: none !important; }
}

/* ===========================================================================
   Flash messages (app/Views/partials/alerts.php)
   ---------------------------------------------------------------------------
   Deliberately in this file: vista-compliance.css is the only stylesheet
   loaded by all three entry points that render flashes - layouts/header.php,
   pages/home.php and pages/flights.php. The older .vd-alert rules live in
   vista-flight.css, which the two standalone pages never load, so the banner
   would have rendered unstyled exactly where it was needed.
   =========================================================================== */

.vd-flash-wrap {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem 1.5rem 0;
}

.vd-flash {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  border: 1px solid;
  font-size: 0.875rem;
  line-height: 1.6;
}
.vd-flash + .vd-flash { margin-top: 0.6rem; }
.vd-flash svg { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin-top: 0.1rem; }
.vd-flash strong { display: block; margin-bottom: 0.15rem; font-weight: 800; }
.vd-flash p { margin: 0; }
.vd-flash p + p { margin-top: 0.2rem; }
.vd-flash:focus { outline: none; }

.vd-flash-error { background: #fff5f4; border-color: #f6cfca; color: #96271b; }
.vd-flash-success { background: #f1fdf6; border-color: #a9e9c4; color: #0a6b40; }

.vd-flash-help { margin-top: 0.4rem !important; font-size: 0.8125rem; opacity: 0.9; }
.vd-flash-help a { color: inherit; font-weight: 800; text-decoration: underline; }

@media (max-width: 640px) {
  .vd-flash-wrap { padding: 0.75rem 1rem 0; }
  .vd-flash { font-size: 0.8125rem; }
}

/* The hidden attribute is a UA-stylesheet display:none, so any author rule that
   sets display (here .trip-tab { display:flex }) silently overrides it. */
[hidden] { display: none !important; }

/* Sits inside the hero, above the search widget it belongs to. */
.vd-flash-wrap { position: relative; z-index: 30; padding-left: 0; padding-right: 0; }

/* Inline field errors — replaces the native alert() popups on the search
   widget. Sits directly under the field it refers to, so the traveller can see
   which one is wrong rather than reading a modal that names no field. */
.vd-field-error {
  margin: 0.35rem 0 0;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.5;
  color: #b42318;
}
.vd-field-invalid {
  border-color: #e0a3a3 !important;
  box-shadow: 0 0 0 3px rgba(200, 60, 60, 0.08);
}
