/* Nexus Medical Transit — Christmas theme.
   Activated by seasonal-theme.js (adds html.xmas-on) through Dec 31, 2026 only.
   Palette stays inside the Nexus brand family: navy/red/green + warm gold. */

.xmas-banner {
  position: relative;
  background: linear-gradient(90deg, #0b3d24 0%, #14532d 52%, #7a1220 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 15px;
  font-family: inherit;
}

.xmas-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: repeating-linear-gradient(
    90deg,
    #b42335 0 16px,
    #f5b942 16px 32px,
    #0a7a55 32px 48px,
    #ffffff 48px 64px
  );
}

.xmas-banner-text {
  margin: 0 auto;
  text-align: center;
  flex: 1 1 auto;
  line-height: 1.35;
}

.xmas-banner-title {
  display: block;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.xmas-banner-sub {
  display: block;
  margin-top: 2px;
  font-weight: 600;
  font-size: 0.92rem;
}

.xmas-banner a {
  color: #ffd97a;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.xmas-banner a:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
}

.xmas-banner-close {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.65);
  color: #ffffff;
  border-radius: 999px;
  width: 30px;
  height: 30px;
  min-width: 30px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
  padding: 0;
}

.xmas-banner-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.xmas-banner-close:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
}

#xmas-snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3000;
}

.xmas-footer-note {
  text-align: center;
  font-weight: 700;
  color: #ffd97a;
  padding: 12px 16px 2px;
  margin: 0;
}

@media (max-width: 640px) {
  .xmas-banner {
    padding: 8px 10px 13px;
    gap: 8px;
  }
  .xmas-banner-title {
    font-size: 0.98rem;
  }
  .xmas-banner-sub {
    font-size: 0.85rem;
  }
}

/* ---- Christmas color treatment: the site's own colors shift for the season ---- */

html.xmas-on body {
  background: #faf5ec;
}

html.xmas-on header {
  background: linear-gradient(90deg, #fdf3e3 0%, #f3e9d2 45%, #e7f0e4 100%);
  box-shadow:
    inset 0 -4px 0 #14532d,
    inset 0 -8px 0 #f5b942,
    inset 0 -12px 0 #b42335;
}

html.xmas-on header .nav .navCta,
html.xmas-on header .nav .bookRide {
  background: linear-gradient(135deg, #1d7a4f, #14532d) !important;
  box-shadow: 0 10px 24px rgba(20, 83, 45, 0.28) !important;
}

html.xmas-on .bookRideSign {
  border-color: #f5b942 !important;
}

html.xmas-on footer {
  background: linear-gradient(160deg, #7c1d24 0%, #4a0e18 100%) !important;
}

html.xmas-on ::selection {
  background: #b42335;
  color: #ffffff;
}

/* Logo blend: the logo art sits in a white box; multiply drops the white
   into the cream header so the logo looks transparent for the season. */
html.xmas-on header .brand img,
html.xmas-on header img.logo,
html.xmas-on header .logo img {
  mix-blend-mode: multiply;
}

/* ---- Visibility fixes (Nov 17): text that the cream/cranberry shift washed out ---- */

/* Booking app: its .top header is a dark navy app header with white title,
   logo and tagline — the blanket cream header above made them invisible.
   Keep it navy for the season, with the garland stripe along its base. */
html.xmas-on .phone > header.top {
  background: #081a2c !important;
  box-shadow:
    0 12px 30px rgba(8, 26, 44, 0.18),
    inset 0 -4px 0 #14532d,
    inset 0 -8px 0 #f5b942,
    inset 0 -12px 0 #b42335;
}

/* Field placeholders were light grey on white — darken while the theme is on. */
html.xmas-on ::placeholder {
  color: #5f6f7d !important;
  opacity: 1;
}

/* Disabled buttons (e.g. Book My Ride before the estimate is confirmed):
   slate text on pale grey-blue was hard to read. */
html.xmas-on button:disabled {
  color: #33475c !important;
}

/* Booking progress steps not yet reached: darken icons/numbers/labels. */
html.xmas-on .journeyStep:not(.current):not(.complete) {
  color: #3d4f61 !important;
}

/* Sign-in / sign-up dialog eyebrow ("Secure Nexus access") is pale aqua,
   designed for dark panels — it sits on a white card and washed out. */
html.xmas-on .nexusLoginDialog .eyebrow {
  color: #0e5a6b !important;
}

/* Footer small print was pale blue-grey; on the cranberry footer it needs white. */
html.xmas-on footer small,
html.xmas-on .footer small {
  color: #ffe9ec !important;
}

/* LiveCare map status panel: "Available" rendered grey while the other
   statuses are white on the dark panel — match them. */
html.xmas-on .mapLegend.verticalStatusPanel button[data-status-filter="AVAILABLE"] {
  color: #ffffff !important;
}

/* ---- Apps: Classic Garland (Nov 17) — the app look Anthony picked ---- */

/* Slim greeting strip the script places above app headers: navy with a
   garland stripe along its base, matching the booking header treatment. */
.xmas-app-strip {
  position: relative;
  background: #081a2c;
  color: #ffffff;
  text-align: center;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding: 8px 12px 13px;
}

.xmas-app-strip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: repeating-linear-gradient(
    90deg,
    #b42335 0 16px,
    #f5b942 16px 32px,
    #0a7a55 32px 48px,
    #ffffff 48px 64px
  );
}

/* Patient/driver top bar: the navy inner bar carries the garland stripe;
   the outer bar stays transparent so the app background shows through
   (the blanket cream header above would otherwise wash the bar out). */
html.xmas-on header.topBar {
  background: transparent;
  box-shadow: none;
}

html.xmas-on .topBarInner {
  box-shadow:
    0 16px 34px rgba(7, 42, 63, 0.28),
    inset 0 -4px 0 #14532d,
    inset 0 -8px 0 #f5b942,
    inset 0 -12px 0 #b42335;
}

/* Booking app: primary action buttons go cranberry for the season.
   Disabled buttons keep their pale disabled look. */
html.xmas-on .phone .primary:not(:disabled) {
  background: linear-gradient(135deg, #c22633, #8f1d2c);
  box-shadow: 0 10px 22px rgba(143, 29, 44, 0.28);
}
