/* ============================================================================
   Heathrow Park Direct — conversion pass: home page + quote funnel
   (templates/home/index.php, templates/place-order/index.php, templates/booking/*)

   Load AFTER theme-pd-layout.css. Every rule is scoped under #main-content and
   sized to win on specificity rather than on source order, so it also holds if
   it ends up earlier in the cascade.

   Palette and type come from the theme tokens; nothing new is introduced.
   Colour pairs used here (WCAG relative-luminance contrast):
     #141A1F on #FFFFFF 17.5   #141A1F on #E4EFE9 14.7   #141A1F on #E2E0D9 13.2
     #56616B on #FFFFFF  6.3   #56616B on #E4EFE9  5.3   #56616B on #F7F6F2  5.9
     #0A5C3E on #FFFFFF  7.9   #0A5C3E on #E4EFE9  6.6   #0A5C3E on #F7F6F2  7.3
     #FFFFFF on #0F7A52  5.4   #FFFFFF on #0A5C3E  7.9   #9FE3C2 on #141A1F 11.9
   ========================================================================= */

/* Anchored targets must clear the sticky header */
#main-content #booking-widget,
#main-content #cro-notify { scroll-margin-top: 96px; }

/* ── HOME: quote form ────────────────────────────────────────────────────── */
#main-content .booking-widget #search-btn { margin-top: 16px; }
#main-content .booking-widget .widget-microtrust {
  justify-content: center;
  gap: 4px 16px;
  color: var(--pd-slate, #56616B);
}
#main-content .booking-widget .cro-widget-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm, 10px);
  background: var(--pd-sand, #F4E7CE);
  color: var(--pd-ink, #141A1F);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}
#main-content .hero-new .cro-hero-price { margin-top: 4px; }

/* Phones: keep each date beside its time, so the form is three rows, not five,
   and its button is reached sooner. Inputs stay 16px and 50px tall. */
@media (max-width: 640px) {
  #main-content .booking-widget .form-row--new {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 10px;
  }
  #main-content .booking-widget .form-row--new .form-control-new { min-width: 0; }
}

/* Tablets (single-column hero, up to 900px): the four bullets pushed the quote
   form below the fold at 768. They repeat the form's own reassurance line, so
   drop them there, as the theme already does on phones. No hero layout or
   background is changed. */
@media (max-width: 900px) {
  #main-content .hero-new .hero-new-bullets { display: none; }
}

/* ── HOME: service cards ─────────────────────────────────────────────────── */
#main-content .tier-card .cro-tier-more {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--pd-green-dark, #0A5C3E);
  text-decoration: underline;
  text-underline-offset: 3px;
}
#main-content .tier-card.tier-featured .cro-tier-more { color: var(--pd-mint, #9FE3C2); }
#main-content .tier-card .cro-tier-more:hover { text-decoration-thickness: 2px; }
#main-content .services-new .cro-price-scope {
  max-width: 78ch;
  margin: 28px auto 0;
  padding: 14px 18px;
  background: var(--pd-sand, #F4E7CE);
  border-radius: var(--radius-sm, 10px);
  font-size: 15px;
  line-height: 1.55;
  color: var(--pd-ink, #141A1F);
  text-align: center;
}
#main-content .services-new .cro-price-scope a {
  color: var(--pd-green-dark, #0A5C3E);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#main-content .services-new .cro-photo-note { margin-top: 20px; text-align: center; }

/* ── HOME: operator block ────────────────────────────────────────────────── */
#main-content .cro-operator .cro-operator-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
}
#main-content .cro-operator .cro-operator-item {
  margin: 0;
  padding: 20px;
  background: var(--pd-paper, #FFFFFF);
  border: 1px solid var(--pd-line, #E2E0D9);
  border-radius: var(--radius, 14px);
  min-width: 0;
}
#main-content .cro-operator .cro-operator-item dt {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--pd-slate, #56616B);
}
#main-content .cro-operator .cro-operator-item dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--pd-ink, #141A1F);
  overflow-wrap: anywhere;
}
#main-content .cro-operator .cro-operator-item a,
#main-content .cro-operator .cro-operator-links a {
  color: var(--pd-green-dark, #0A5C3E);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#main-content .cro-operator .cro-operator-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 28px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
#main-content .cro-operator .cro-operator-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
}
@media (max-width: 1023px) {
  #main-content .cro-operator .cro-operator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  #main-content .cro-operator .cro-operator-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 24px; }
}

/* ── FUNNEL: "tell me when I can book" ───────────────────────────────────── */
#main-content .cro-notify {
  margin-top: 24px;
  padding: 24px;
  background: var(--pd-tint, #E4EFE9);
  border: 1px solid var(--pd-green, #0F7A52);
  border-radius: var(--radius, 14px);
  color: var(--pd-ink, #141A1F);
}
#main-content .cro-notify .cro-notify-title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--pd-ink, #141A1F);
}
#main-content .cro-notify .cro-notify-lead {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--pd-ink, #141A1F);
  max-width: 62ch;
}
#main-content .cro-notify .cro-notify-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
#main-content .cro-notify .cro-notify-field label {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--pd-ink, #141A1F);
}
#main-content .cro-notify .cro-notify-field input {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--pd-ink, #141A1F);
  background: var(--pd-paper, #FFFFFF);
  border: 1px solid var(--pd-slate, #56616B);
  border-radius: var(--radius-sm, 10px);
  box-sizing: border-box;
}
#main-content .cro-notify .cro-notify-field input:focus-visible,
#main-content .cro-notify .cro-notify-btn:focus-visible,
#main-content .cro-notify a:focus-visible {
  outline: 2px solid var(--pd-green, #0F7A52);
  outline-offset: 2px;
}
#main-content .cro-notify .cro-notify-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 16px;
  padding: 0 28px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--pd-green, #0F7A52);
  border: 0;
  border-radius: var(--radius-sm, 10px);
  box-shadow: none;
  cursor: pointer;
}
#main-content .cro-notify .cro-notify-btn:hover { background: var(--pd-green-dark, #0A5C3E); color: #FFFFFF; }
#main-content .cro-notify .cro-notify-btn:disabled { background: var(--pd-green-dark, #0A5C3E); color: #FFFFFF; opacity: 1; cursor: progress; }
#main-content .cro-notify .cro-notify-fine,
#main-content .cro-notify .cro-notify-alt {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--pd-slate, #56616B);
}
#main-content .cro-notify a {
  color: var(--pd-green-dark, #0A5C3E);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#main-content .cro-notify .cro-notify-done {
  margin: 0;
  padding: 16px 18px;
  background: var(--pd-paper, #FFFFFF);
  border-left: 4px solid var(--pd-green, #0F7A52);
  border-radius: var(--radius-sm, 10px);
  font-size: 16px;
  line-height: 1.5;
  color: var(--pd-ink, #141A1F);
}
#main-content .cro-notify [hidden] { display: none; }
@media (max-width: 640px) {
  #main-content .cro-notify { padding: 20px 16px; }
  #main-content .cro-notify .cro-notify-title { font-size: 21px; }
  #main-content .cro-notify .cro-notify-fields { grid-template-columns: minmax(0, 1fr); }
  #main-content .cro-notify .cro-notify-btn { width: 100%; }
}

/* The link inside the "booking opens soon" notice is the way out of the dead end */
#main-content .payments-off-notice a[href="#cro-notify"] {
  color: var(--pd-green-dark, #0A5C3E);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

/* The disabled pay button: say "not available" plainly instead of a washed-out
   green button with low-contrast white text. */
#main-content #checkout-submit:disabled,
#main-content #checkout-submit[aria-disabled="true"] {
  /* !important only because theme-pd.css sets .btn-cta background/border that way */
  opacity: 1;
  background: var(--pd-line, #E2E0D9) !important;
  color: var(--pd-ink, #141A1F) !important;
  border: 1px dashed var(--pd-slate, #56616B) !important;
  box-shadow: none;
  cursor: not-allowed;
}

#main-content #checkout-submit:disabled .btn-text,
#main-content #checkout-submit[aria-disabled="true"] .btn-text { color: var(--pd-ink, #141A1F) !important; }

/* ── FUNNEL: sidebar and trust bar ───────────────────────────────────────── */
#main-content .on-sidebar-identity .on-identity-header { color: var(--pd-green-dark, #0A5C3E); }
#main-content .on-checkout-sidebar .sidebar-guarantee { color: var(--pd-slate, #56616B); }

/* ── FUNNEL: option cards beside the sidebar ─────────────────────────────────
   On the details step the grid gains its sidebar, the main column narrows, and
   the three-column option card (330px | text | 230px) crushed its text to one
   word per line at 1024–1440. Give the card two columns there and put price and
   button on their own row. */
@media (min-width: 901px) {
  #main-content .on-checkout-grid:not(.is-wide) .product-card.pc {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  #main-content .on-checkout-grid:not(.is-wide) .product-card.pc .pc-buy {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(200px, 260px);
    align-items: center;
    gap: 4px 16px;
    padding: 14px 20px;
    border-top: 1px solid var(--pd-line, #E2E0D9);
    text-align: left;
  }
  #main-content .on-checkout-grid:not(.is-wide) .product-card.pc .pc-price { font-size: 28px; }
  #main-content .on-checkout-grid:not(.is-wide) .product-card.pc .pc-price-note { margin: 0; }
}

/* ── FUNNEL: booking summary card ────────────────────────────────────────────
   The eyebrow labels ("Your booking", "Drop-off", "Return") were brand green on
   the ink card: 3.28:1 at 12px. Mint on ink is 11.9:1. */
#main-content .co-summary .co-eyebrow { color: var(--pd-mint, #9FE3C2); }
