/* ======================================================
   EQUINE TRANSPORT BOOKING SYSTEM
   MAIN STYLESHEET

   Sections
   01 Global Foundation
   02 Layout
   03 Hero
   04 Buttons
   05 Fleet Cards
   06 Booking Layout
   07 Forms
   08 Admin
   09 Signature Pad
   10 Mobile Navigation
   11 Fleet Slideshow
   12 Reviews Modal
   13 Booking Flow
   14 Vouchers
   15 Availability Calendar
   16 Calendar Tooltip
   17 Calendar Vehicle Preview
   18 Mobile Calendar Preview
   19 Booking Form Layout
====================================================== */

/* ======================================================
   GLOBAL FOUNDATION
   Reset, browser fixes, variables
====================================================== */

/* ======================================================
   SAFARI DESKTOP ONLY — NORMALISE BUTTONS + FORM FIELDS
   Makes Safari match Chrome sizing.
====================================================== */

@media not all and (min-resolution: 0.001dpcm) {
  @supports (-webkit-appearance: none) {
    @media (hover: hover) and (pointer: fine) {
      button,
      .btn,
      button.btn,
      a.btn,
      input,
      select,
      textarea {
        font-size: 18px !important;
        line-height: 1.25 !important;
      }

      input,
      select,
      textarea {
        min-height: 54px !important;
        padding: 14px 16px !important;
        border-radius: 14px !important;
        -webkit-text-size-adjust: 100%;
      }

      select {
        height: 54px !important;
      }

      button,
      .btn,
      button.btn,
      a.btn {
        min-height: 54px !important;
        padding: 14px 22px !important;
        font-weight: 800 !important;
      }

      .deposit-card input,
      .deposit-card button,
      #submit-btn {
        font-size: 22px !important;
        min-height: 66px !important;
        padding: 18px 22px !important;
        border-radius: 16px !important;
      }

      .deposit-card label {
        font-size: 24px !important;
        line-height: 1.25 !important;
      }

      .deposit-card h2 {
        font-size: 42px !important;
        line-height: 1.15 !important;
      }

      .deposit-card p,
      .deposit-note,
      #booking-info,
      #message {
        font-size: 24px !important;
        line-height: 1.35 !important;
      }

      .stripe-card {
        min-height: 66px !important;
        padding: 18px 22px !important;
        border-radius: 16px !important;
        display: flex !important;
        align-items: center !important;
      }
    }
  }
}

/* ======================================================
   ROOT VARIABLES
====================================================== */

:root {
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #1d2530;
  --muted: #5a6675;
  --line: #dbe1e8;
  --accent: #1f6feb;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family:
    "SF Pro Display",
    "SF Pro Text",
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text);
  background: linear-gradient(180deg, #f8f9fb 0%, #eef1f6 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  line-height: 1.45;
}

/* iOS fix – prevent wobble repaint */
@supports (-webkit-touch-callout: none) {
  body {
    background-attachment: scroll;
  }
}

/* ======================================================
   PAGE LAYOUT
   Containers, header, navigation
====================================================== */

html {
  scroll-padding-top: 80px; /* adjust to your header height */
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  min-width: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
  min-width: 0;
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.brand-group {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-subtitle {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-logo {
  width: 76px;
  height: 54px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  flex: 0 0 auto;
}

.main-nav {
  display: flex;
  gap: 18px;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

/* ======================================================
   HERO SECTION
====================================================== */

.hero {
  padding: 40px 0 10px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  align-items: center;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.03;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 62ch;
}

/* HERO IMAGE WRAPPER */

/* HERO IMAGE WRAPPER */

.hero-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  clip-path: inset(0 round 28px);
}

/* HERO IMAGE */

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;

  border-radius: 0; /* important */

  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.hero-image.fade-out {
  opacity: 0;
}

/* hover zoom */

.hero-image-wrap:hover .hero-image {
  transform: scale(1.02);
}

/* PREMIUM HERO GLASS OVERLAY */

.hero-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 55%,
    rgba(0, 0, 0, 0.18) 100%
  );

  pointer-events: none;
}

/* HERO ACTION BUTTONS */

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

/* FLOATING HERO CTA */

.hero-floating-cta {
  position: absolute;
  bottom: 22px;
  left: 22px;

  display: flex;
  align-items: center;
  gap: 8px;

  padding: 12px 18px;

  background: rgba(30, 30, 30, 0.75);
  backdrop-filter: blur(10px);

  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;

  border-radius: 999px;

  transition: all 0.25s ease;
}

.hero-floating-cta span {
  font-size: 16px;
  transition: transform 0.25s ease;
}

.hero-floating-cta:hover {
  background: rgba(20, 20, 20, 0.9);
  transform: translateY(-2px);
}

.hero-floating-cta:hover span {
  transform: translateX(4px);
}

.hero-floating-cta {
  z-index: 2;
}

/* ======================================================
   BUTTON SYSTEM
====================================================== */

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 0 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn.ghost {
  background: #fff;
  color: var(--accent);
}

.section {
  padding: 30px 0;
}
.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 38px);
}

/* ======================================================
   FLEET LISTING
   Vehicle cards
====================================================== */

.fleet-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.fleet-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.fleet-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.fleet-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.fleet-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1; /* THIS is key */
}

.fleet-card-book {
  margin-top: auto; /* pushes button to bottom */
  width: 100%;
}

.fleet-content h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.muted {
  color: var(--muted);
}
.tiny {
  font-size: 13px;
}

/* ======================================================
   BOOKING LAYOUT
   Main booking UI grid
====================================================== */

.booking-wrap {
  padding: 34px 0;
}
.booking-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.card-stack {
  display: grid;
  gap: 16px;
}

/* ======================================================
   FORM ELEMENTS
   Inputs, labels, fields
====================================================== */

.form-field label {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  font: inherit;
  background: #fafbfc;
}

textarea {
  min-height: 100px;
}

.checkline {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
}

.hire-form-info {
  margin: 12px 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.hire-form-info h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.hire-form-info ul {
  margin: 10px 0;
  padding-left: 18px;
}

.hire-form-info li {
  margin: 6px 0;
}

.quote {
  background: #f0f5ff;
  border: 1px solid #cad9ff;
  border-radius: 12px;
  padding: 12px;
  color: #1b3f91;
  font-weight: 600;
}

.availability-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.availability-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 10px;
  align-items: center;
}

.availability-item h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.availability-image {
  width: 120px;
  height: 85px;
  object-fit: cover;
  border-radius: 10px;
}

.availability-info {
  min-width: 0;
}

.availability-item .choose-lorry {
  align-self: center;
}

.availability-item {
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.availability-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.success {
  margin-top: 10px;
  background: #edfdf2;
  border: 1px solid #b6efcb;
  color: #137a3d;
  padding: 10px 12px;
  border-radius: 10px;
}

.booking-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.booking-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.booking-item .muted {
  display: inline-block;
  margin-top: 2px;
}

/* ===============================
   STEP 2 — SEARCH SUMMARY
=============================== */

.availability-search-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}

.search-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
}

.search-chip-accent {
  background: rgba(31, 111, 235, 0.08);
  border-color: rgba(31, 111, 235, 0.18);
  color: var(--accent);
}

/* ===============================
   STEP 2 — RESULT CARD POLISH
=============================== */

.availability-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 8px;
}

.availability-meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.availability-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.availability-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.availability-price-note {
  font-size: 13px;
  color: var(--muted);
}

.availability-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.availability-item .choose-lorry {
  min-width: 170px;
}

.availability-empty-state {
  padding: 8px 0 2px;
}

/* ===============================
   STEP 2 — PRICE PREVIEW
=============================== */

.price-preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0 10px;
}

.price-main {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.price-confirm {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .availability-item {
    grid-template-columns: 1fr;
  }

  .availability-actions {
    justify-content: stretch;
  }

  .availability-item .choose-lorry {
    width: 100%;
    min-width: 0;
  }

  .availability-search-summary {
    gap: 6px;
  }

  .search-chip {
    width: 100%;
    border-radius: 12px;
  }

  .availability-price {
    font-size: 22px;
  }
}

/* ======================================================
   ADMIN PANEL
====================================================== */

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.admin-table-wrap {
  overflow: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 8px 6px;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.empty-note {
  color: var(--muted);
  font-size: 14px;
}

.availability-status {
  margin: 18px 0;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f8fafc;
  font-size: 14px;
}

.availability-status.ok {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.1);
}

.availability-status.error {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
}

.terms-card h3 {
  margin: 14px 0 8px;
}

.terms-card ul {
  margin: 0 0 10px;
  padding-left: 18px;
}

.terms-card li {
  margin: 5px 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding: 20px 0 34px;
  color: var(--muted);
}

/* ======================================================
   SIGNATURE PAD (DRAWABLE ON MOBILE)
====================================================== */

.signature-wrap {
  margin-top: 6px;
}

#signaturePad {
  width: 100%;
  height: 160px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.signature-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.signature-actions button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.signature-actions button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 980px) {
  .hero-grid,
  .booking-grid,
  .fleet-grid,
  .booking-list {
    grid-template-columns: 1fr 1fr;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .booking-grid {
    grid-template-columns: 1fr;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .main-nav {
    gap: 12px;
    font-size: 14px;
  }
  .brand-name {
    font-size: 14px;
  }

  .brand-group {
    font-size: 9.5px;
    white-space: normal;
  }

  .brand-subtitle {
    font-size: 11px;
  }
  .fleet-grid,
  .booking-list,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .availability-item {
    grid-template-columns: 1fr;
  }
  #signaturePad {
    height: 180px;
  }
}

/* ======================================================
   MOBILE NAVIGATION
====================================================== */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.nav-toggle.open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1070px) {
  .nav-toggle {
    display: flex;
  }

  .header-inner {
    min-height: 82px;
    position: relative;
  }

  .brand {
    max-width: calc(100% - 52px);
    gap: 10px;
  }

  .brand-logo {
    width: 70px;
    height: 50px;
    flex: 0 0 auto;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 16px 20px;
    gap: 16px;
    z-index: 19;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
  }

  .main-nav.open {
    display: flex;
  }
}

@media (max-width: 650px) {
  .header-inner {
    min-height: 78px;
  }

  .brand {
    max-width: calc(100% - 48px);
    gap: 8px;
  }

  .brand-logo {
    width: 58px;
    height: 44px;
  }

  .main-nav {
    top: 78px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    font-size: 16px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }
}

@media (max-width: 350px) {
  .hero-image {
    display: none;
  }
}

@supports (font: -apple-system-body) {
  @media (hover: hover) and (pointer: fine) {
    .btn {
      font-size: 17px;
    }
  }
}

/* ======================================================
   FLEET CARD IMAGE OVERLAY + DETAIL POP-UP
====================================================== */

.fleet-image-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #000;
}

.fleet-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.fleet-card:hover .fleet-image-wrap img {
  transform: scale(1.03);
}

.fleet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.fleet-overlay:hover {
  background: rgba(0, 0, 0, 0.32);
}

/* ======================================================
   APPLE STYLE SEE-MORE BUTTON
====================================================== */

.apple-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.apple-play-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.apple-play-btn svg {
  width: 16px;
  height: 16px;
  fill: #fff;
  margin-left: 2px;
}

/* ======================================================
   FLEET DETAIL MODAL
====================================================== */

body.fleet-detail-open {
  overflow: hidden;
}

.fleet-detail-overlay[hidden] {
  display: none;
}

.fleet-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow-y: auto;
}

.fleet-detail-modal {
  width: min(1120px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.32);
}

.fleet-detail-close {
  position: sticky;
  top: 12px;
  float: right;
  z-index: 3;
  width: 44px;
  height: 44px;
  margin: 12px 12px -56px 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}

.fleet-detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.86fr);
  gap: 24px;
  padding: 24px;
}

.fleet-detail-media,
.fleet-detail-copy {
  min-width: 0;
}

.fleet-detail-main-image {
  overflow: hidden;
  border-radius: 22px;
  background: #0f172a;
  aspect-ratio: 4 / 3;
}

.fleet-detail-main-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fleet-detail-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.fleet-detail-thumb {
  border: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #e5e7eb;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.fleet-detail-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fleet-detail-video {
  margin-top: 14px;
}

.fleet-detail-video h3,
.fleet-detail-info-grid h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.fleet-detail-video video {
  display: block;
  width: 100%;
  max-height: 340px;
  border-radius: 18px;
  background: #0f172a;
}

.fleet-detail-video-placeholder {
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 20px;
  color: var(--muted);
  background: #f8fafc;
}

.fleet-detail-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.08;
}

.fleet-detail-subtitle {
  margin: 0 0 12px;
  font-weight: 800;
  color: var(--accent);
}

.fleet-detail-intro {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 17px;
}

.fleet-detail-info-grid {
  display: grid;
  gap: 14px;
}

.fleet-detail-info-grid ul {
  margin: 0;
  padding-left: 18px;
}

.fleet-detail-info-grid li {
  margin: 6px 0;
  color: var(--muted);
}

.fleet-detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.fleet-detail-actions .btn {
  min-width: 170px;
}

@media (max-width: 820px) {
  .fleet-detail-overlay {
    align-items: flex-start;
    padding: 10px;
  }

  .fleet-detail-modal {
    max-height: none;
    border-radius: 22px;
  }

  .fleet-detail-close {
    top: 10px;
    width: 42px;
    height: 42px;
    margin: 10px 10px -52px 0;
  }

  .fleet-detail-body {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
  }

  .fleet-detail-main-image {
    aspect-ratio: 4 / 3;
    border-radius: 18px;
  }

  .fleet-detail-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .fleet-detail-copy h2 {
    padding-right: 46px;
  }

  .fleet-detail-actions {
    flex-direction: column;
  }

  .fleet-detail-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 420px) {
  .fleet-detail-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fleet-detail-copy h2 {
    font-size: 25px;
  }

  .fleet-detail-intro {
    font-size: 16px;
  }
}

/* ==========================================
   CLEAN APPLE-STYLE CHECKBOX (FIXED ALIGNMENT)
========================================== */

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox-line input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: #fff;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.checkbox-line input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-line input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-line span {
  font-size: 14px;
  line-height: 1.4;
}

.header-card {
  background: linear-gradient(180deg, #ffffff, #fbfcff);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow2);
  padding: 16px 16px 14px;
  margin-bottom: 14px;
  position: relative;
}

/* ==========================================
   HERO CTA ROW — CLEAN VERSION
========================================== */

.hero-reviews {
  display: flex;
  align-items: center;
  height: 44px;
  flex-shrink: 0;
}

.hero-reviews iframe,
.hero-reviews > div {
  max-width: 240px;
  height: 44px !important;
}

/* ==========================================
   FORCE REVIEWS TO MATCH BUTTON EXACTLY
========================================== */

.hero-reviews iframe,
.hero-reviews > div {
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
}

/* Normalize inner content */
.hero-reviews * {
  line-height: 1 !important;
}

/* Match font weight */
.hero-reviews {
  font-weight: 600 !important;
}

/* Ensure border thickness matches */
.hero-reviews iframe {
  border-radius: 12px !important;
}
/* Safari desktop only: Increase button text size */

/* ==========================================
   HERO CTA ROW (3 buttons aligned)
========================================== */

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Ensure consistent height for normal buttons */
.hero-cta-row .btn {
  min-height: 44px;
}

/* ======================================================
   GOOGLE REVIEWS MODAL
====================================================== */

.reviews-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  /* Full-screen backdrop blur made Chrome wheel/mouse scrolling feel laggy.
     Keep a simple overlay so the popup remains smooth while scrolling. */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  contain: layout paint;
  isolation: isolate;
}

.reviews-overlay.active {
  display: flex;
}

/* ==========================================
   MODAL STRUCTURE
========================================== */

.reviews-modal {
  width: min(980px, 94vw);
  height: 85vh;
  height: min(85vh, calc(100dvh - 40px));
  max-height: calc(100vh - 40px);
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.28);

  display: flex;
  flex-direction: column;
  overflow: hidden !important; /* Important */
  position: relative;
  contain: layout paint style;
}

/* Header (drag + close always visible) */
.reviews-header {
  position: relative;
  padding: 10px 0 6px 0;
  flex-shrink: 0;
}

/* Drag handle */
.reviews-drag {
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  margin: 0 auto;

  animation: pulseHandle 2s infinite;
}

@keyframes pulseHandle {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Close button */
.reviews-close {
  position: absolute;
  top: 4px;
  right: 10px;

  width: 48px;
  height: 48px;

  border-radius: 50%;
  border: none;

  background: rgba(255, 255, 255, 0.96);

  font-size: 28px;
  font-weight: 500;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 2;
}

/* Scrollable content */
.reviews-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 12px 18px 20px 18px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* old Edge/IE */
  overscroll-behavior: contain;
}


/* Chrome smooth-scroll fix: avoid animated/repaint-heavy layers while the
   reviews sheet is open. Scrolling remains on .reviews-content only. */
.reviews-overlay.active .reviews-drag {
  animation: none !important;
}

.reviews-overlay.active .reviews-content {
  scroll-behavior: auto !important;
}

.reviews-overlay.active .google-review-photo-card img,
.reviews-overlay.active .google-review-avatar {
  backface-visibility: hidden;
}

html.reviews-scroll-lock,
body.reviews-scroll-lock {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.reviews-overlay.active {
  overflow: hidden !important;
}

.reviews-modal,
.reviews-content,
.google-reviews-widget,
.google-reviews-list {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.google-reviews-photos-block {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.google-reviews-photos-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.google-reviews-photos-head h4 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.google-reviews-photos-head a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.google-reviews-photos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.google-review-photo-card {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #e5e7eb;
  aspect-ratio: 4 / 3;
}

.google-review-photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.google-review-photo-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 9px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.78));
  color: #ffffff;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.25;
}

.google-review-photo-card figcaption a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.google-reviews-list {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.reviews-modal::-webkit-scrollbar,
.reviews-content::-webkit-scrollbar,
.google-reviews-widget::-webkit-scrollbar,
.google-reviews-list::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

.reviews-modal::-webkit-scrollbar-thumb,
.reviews-content::-webkit-scrollbar-thumb,
.google-reviews-widget::-webkit-scrollbar-thumb,
.google-reviews-list::-webkit-scrollbar-thumb {
  background: transparent !important;
}


/* Custom Google reviews widget */
.google-reviews-widget {
  display: grid;
  gap: 16px;
}

.google-reviews-loading,
.google-reviews-empty {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  color: var(--muted);
}

.google-reviews-title,
.google-reviews-kicker {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.google-reviews-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.google-reviews-summary h3 {
  margin: 4px 0 8px;
  color: var(--text);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.google-reviews-rating-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.google-reviews-score {
  color: var(--text);
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.google-reviews-stars,
.google-review-stars {
  color: #f59e0b;
  font-weight: 950;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.google-reviews-count {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.google-reviews-google-link,
.google-reviews-footer a {
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
}

.google-reviews-google-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(31, 111, 235, 0.22);
  border-radius: 999px;
  background: rgba(31, 111, 235, 0.08);
  white-space: nowrap;
}

.google-reviews-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.google-review-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.google-review-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.google-review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: #e5e7eb;
}

.google-review-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--accent);
  font-size: 18px;
  font-weight: 950;
}

.google-review-author {
  color: var(--text);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.2;
  text-decoration: none;
}

.google-review-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.google-review-text {
  margin: 12px 0 0;
  color: #334155;
  font-size: 15px;
  line-height: 1.55;
}

.google-reviews-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
}

/* ==========================================
   MOBILE LAYOUT
========================================== */

@media (max-width: 650px) {
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .hero-cta-row > a.btn,
  .hero-cta-row > div {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero-cta-row > div .elfsight-app-08760789-afd9-4fa0-9275-cbac247e4400 {
    width: 100% !important;
  }

  /* Bottom sheet behaviour */
  .reviews-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .reviews-modal {
    width: 100%;
    height: 90vh;
    height: min(90vh, 90dvh);
    max-height: 90vh;
    border-radius: 24px 24px 0 0;

    animation: sheetUp 0.25s ease;
  }

  .reviews-content {
    padding: 12px 14px calc(18px + env(safe-area-inset-bottom));
  }

  @keyframes sheetUp {
    from {
      transform: translateY(40px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
}

.summary-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
}

.summary-row.total {
  font-size: 18px;
}

.summary-row.pay-now {
  color: #1f6feb;
  font-weight: 600;
}

.summary-row.outstanding {
  color: #555;
}

.summary-note {
  font-size: 13px;
  color: #666;
  margin-top: 8px;
}

.summary-row.loading {
  opacity: 0.5;
}

/* =================================
   Summary vehicle preview
================================= */

.summary-vehicle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.summary-vehicle-image {
  width: 70px;
  height: 55px;
  object-fit: cover;
  border-radius: 8px;
}

.summary-vehicle-name {
  font-weight: 600;
}

/* ======================================================
   BOOKING FLOW STEPS
====================================================== */

.booking-steps {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.step {
  font-size: 14px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}

.step.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.booking-step {
  display: none;
}

.booking-step.active {
  display: block;
  animation: fadeStep 0.25s ease;
}

@keyframes fadeStep {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.checkout-breakdown {
  background: #f0f5ff;
  border: 1px solid #cad9ff;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 18px;
  font-weight: 600;
}

.requirements-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 18px;
}

.requirements-box ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.confirm-btn {
  font-size: 18px;
  height: 52px;
}

/* ======================================================
   Booking form + voucher (added)
====================================================== */

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

.availability-form .form-grid,
.booking-form .form-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 720px) {
  /* Availability form stays multi-column */
  .availability-form .form-grid {
    grid-template-columns: 1fr 1fr 1fr auto;
    align-items: end;
  }

  /* Booking form stays single column */
  .booking-form .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text, #0f172a);
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field-actions {
  display: flex;
  align-items: end;
}
.form-field-actions .btn {
  width: 100%;
}

/* ======================================================
   VOUCHERS & EXTRAS
====================================================== */

.voucher-card {
  margin: 0 0 16px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
}

.voucher-left {
  flex: 1;
}
.voucher-left label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px;
}
.voucher-left input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.voucher-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.btn.btn-ghost {
  background: transparent;
  border: 1px solid rgba(31, 111, 235, 0.35);
  color: var(--accent, #1f6feb);
}

.voucher-message {
  font-size: 13px;
  line-height: 1.25;
}
.voucher-message.ok {
  color: #059669;
}
.voucher-message.error {
  color: #dc2626;
}
.voucher-message.muted {
  color: rgba(15, 23, 42, 0.65);
}

/* Safari date input fix */
input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
}

/* ======================================================
   AVAILABILITY CALENDAR
====================================================== */

.cal-wrap {
  margin: 16px 0 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  width: 100%;
  overflow: hidden;
}

/* ------------------------------------------------------
   Header
------------------------------------------------------ */

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cal-title {
  font-weight: 600;
  font-size: 16px;
}

.cal-nav {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fafbfc;
  cursor: pointer;
  transition: 0.2s;
}

.cal-nav:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ------------------------------------------------------
   Weekdays
------------------------------------------------------ */

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.cal-weekdays div {
  text-align: center;
  padding: 6px 0;
}

/* ------------------------------------------------------
   Calendar grid
------------------------------------------------------ */

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

/* ------------------------------------------------------
   Day cell
------------------------------------------------------ */

.cal-day {
  aspect-ratio: 1/1;
  border-radius: 10px;
  border: 2px solid transparent;
  background: #fafbfc;
  font-size: 13px;
  font-weight: 500;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: 0.15s;

  position: relative; /* important for labels */
  overflow: hidden;
  min-height: 42px;
  padding-bottom: 14px;
  z-index: 1;
}

/* ------------------------------------------------------
   Availability states
------------------------------------------------------ */

.cal-day.cal-available,
.cal-day.cal-unavailable {
  border-color: rgba(203, 213, 225, 0.9);
  background: #fafbfc;
  opacity: 1;
}
.cal-day.cal-no-start {
  opacity: 0.45;
  cursor: not-allowed;
}

/* past days */

.cal-past {
  opacity: 0.35;
  pointer-events: none;
  background: #f5f7fa;
  color: #9aa3af;
}

/* ------------------------------------------------------
   Today marker
------------------------------------------------------ */

.cal-day.cal-today {
  border: 2px solid var(--accent);
}

/* ------------------------------------------------------
   Weekend shading
------------------------------------------------------ */

.cal-day.cal-weekend {
  background: rgba(0, 0, 0, 0.06);
}

.cal-day.cal-weekend.cal-available {
  background: rgba(34, 197, 94, 0.1);
}

.cal-day.cal-weekend.cal-unavailable {
  background: rgba(239, 68, 68, 0.12);
}

/* ------------------------------------------------------
   Preview highlight
------------------------------------------------------ */

.cal-preview {
  background: rgba(31, 111, 235, 0.12);
  border-color: #1f6feb;
}

/* ------------------------------------------------------
   Vehicle booking bars
------------------------------------------------------ */

.cal-line {
  position: relative;
  height: 3px;
  border-radius: 2px;
  background: #cde8cd;
  overflow: hidden;
  opacity: 0.9;
}

/* full day */

.cal-line.booked-full {
  background: #ef4444;
}

/* morning */

.cal-line.booked-am::before {
  content: "";
  position: absolute;
  left: 0;
  width: 50%;
  top: 0;
  bottom: 0;
  background: #ef4444;
}

/* afternoon */

.cal-line.booked-pm::after {
  content: "";
  position: absolute;
  right: 0;
  width: 50%;
  top: 0;
  bottom: 0;
  background: #ef4444;
}

/* both halves */

.cal-line.booked-am.booked-pm {
  background: #ef4444;
}

/* mobile */

@media (max-width: 768px) {
  .cal-line {
    height: 1.5px;
  }
  .cal-lines {
    gap: 1px;
  }
}

/* ------------------------------------------------------
   Legend
------------------------------------------------------ */

.cal-legend {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.cal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.cal-dot-available {
  background: #22c55e;
}
.cal-dot-unavailable {
  background: #ef4444;
}

/* ======================================================
   Vehicle preview popup
====================================================== */

.vehicle-preview {
  position: absolute;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  font-size: 13px;
  z-index: 20;
  pointer-events: none;
  transform: translate(-50%, -110%);
  opacity: 0;
  transition: 0.15s;
}

.vehicle-preview:not(.hidden) {
  opacity: 1;
}

.preview-item {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}

.preview-img {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: 8px;
}

.preview-text {
  flex: 1;
}

.preview-status {
  margin-bottom: 6px;
}

.preview-select {
  cursor: pointer;
}

.preview-select:active {
  transform: scale(0.98);
}

.preview-status-good {
  color: #22c55e;
}
.preview-status-low {
  color: #f59e0b;
}
.preview-status-none {
  color: #ef4444;
}

/* ======================================================
   Mobile preview panel
====================================================== */

.mobile-preview {
  margin-bottom: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  font-size: 14px;
  line-height: 1.45;
}

.mobile-preview strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.mobile-preview.hidden {
  display: none;
}

html {
  scroll-behavior: smooth;
}

.reset-btn {
  opacity: 0.8;
}

/* ===============================
   Per-vehicle lines
=============================== */

.cal-lines {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  pointer-events: none;
  z-index: 2;
}

/* MORNING */

.cal-line.booked-am::before {
  content: "";
  position: absolute;
  left: 0;
  width: 50%;
  top: 0;
  bottom: 0;
  background: #ef4444;
  border-radius: 2px 0 0 2px;
}

/* AFTERNOON */

.cal-line.booked-pm::after {
  content: "";
  position: absolute;
  right: 0;
  width: 50%;
  top: 0;
  bottom: 0;
  background: #ef4444;
  border-radius: 0 2px 2px 0;
}

.cal-day::before {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .cal-line {
    height: 1.5px;
  }

  .cal-lines {
    gap: 1px;
  }
}

/* =================================
   Keep day number visible when selected
================================= */

.cal-day.cal-selected.cal-booked {
  color: var(--text); /* keep number dark */
  background: inherit; /* keep booking background */
}

/* Optional: make selected outline clearer */

.cal-day.cal-selected.cal-booked {
  box-shadow: 0 0 0 2px var(--accent) inset;
}

.availability-item.preselected {
  border: 2px solid var(--accent);
  box-shadow: 0 6px 20px rgba(31, 111, 235, 0.12);
}

.calendar-vehicle-label {
  max-width: 1100px;
  margin: 0 auto 12px auto;
  padding: 10px 14px;
  border-radius: 10px;

  background: #eef4ff;
  border: 1px solid #cfe0ff;

  font-size: 14px;
  font-weight: 500;
  color: #1f3b8b;
}

.calendar-vehicle-label strong {
  font-weight: 600;
}

.calendar-vehicle-label.hidden {
  display: none;
}

.duration-highlight {
  outline: 3px solid #1f6feb;
  outline-offset: 4px;
  animation: highlightPulse 1.5s ease;
  transition: outline 0.2s ease;
}

@keyframes highlightPulse {
  0% {
    box-shadow: 0 0 0 rgba(31, 111, 235, 0);
  }
  50% {
    box-shadow: 0 0 12px rgba(31, 111, 235, 0.4);
  }
  100% {
    box-shadow: 0 0 0 rgba(31, 111, 235, 0);
  }
}

.field-error {
  font-size: 13px;
  color: #c62828;
  margin-top: 6px;
}
/* =========================
   BOOKING FORM LAYOUT
   Clean single column
========================= */

#booking-form {
  max-width: 520px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* form field */

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* labels */

.form-field label {
  font-size: 15px;
  font-weight: 500;
  color: #1d2530;
}

/* inputs */

.form-field input,
.form-field select {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid #dbe1e8;
  font-size: 16px;
  font-family: inherit;
  background: #ffffff;
  box-sizing: border-box;
  transition:
    border 0.15s ease,
    box-shadow 0.15s ease;
}

/* focus */

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: #1f6feb;
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.12);
}

/* readonly */

input[readonly] {
  background: #f5f7fa;
}

/* date icon */

.form-field input[type="date"] {
  padding-right: 40px;
}

/* =========================
   EXTRAS CARD ROWS
========================= */

.extras-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0;
}

/* each option row */

.check {
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f8fafc;

  cursor: pointer;
}

/* square checkbox */

.check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;

  width: 22px;
  height: 22px;
  min-height: 22px; /* override global rule */
  padding: 0; /* override global rule */

  border: 2px solid var(--line);
  border-radius: 0;

  background: #fff;

  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

/* checked state */

.check input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

/* checkmark */

.check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;

  left: 50%;
  top: 50%;

  width: 6px;
  height: 12px;

  border: solid #fff;
  border-width: 0 2px 2px 0;

  transform: translate(-50%, -60%) rotate(45deg);
}

/* label text */

.check span {
  font-size: 15px;
  color: var(--text);
}

/* dartford row */

.dartford-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f8fafc;
}

/* remove inner card inside dartford */

.dartford-row .check {
  padding: 0;
  border: none;
  background: transparent;
}

/* number input */

.dartford-count input {
  width: 80px;
  height: 42px;
  text-align: center;

  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.dartford-count input:disabled {
  opacity: 0.45;
}

/* =========================
   PAYMENT BUTTON
========================= */

.form-actions {
  margin-top: 18px;
}

.form-actions .btn {
  width: 100%;
  height: 54px;
  font-size: 18px;
}

/* =========================
   ACTION BUTTON ROW
========================= */

.details-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.details-actions .btn {
  flex: 1;
  min-width: 140px;
  text-align: center;
}

/* =========================
   BOOKING SECTION SPACING
========================= */

#booking h2 {
  margin-bottom: 30px;
}

/* =========================
   DESKTOP FORM GRID
========================= */

/* fields that should span full width */

.form-full {
  grid-column: 1 / -1;
}

/* HERO OVERLAY */

/* HERO OVERLAY */

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  pointer-events: none; /* overlay itself ignores clicks */

  transition: opacity 0.4s ease;
  z-index: 4;
}

.hero-overlay .apple-play-btn {
  pointer-events: auto; /* BUT the button can be clicked */
}

.hero-overlay.playing {
  opacity: 0;
  pointer-events: none;
}

.apple-play-btn {
  position: relative;
  z-index: 5;
}

.customer-badge {
  margin-top: 6px;
  font-size: 14px;
  color: #16a34a;
  font-weight: 500;
}

.customer-badge.hidden {
  display: none;
}

/* ===================================
BOOKING SUMMARY CARD
=================================== */

.booking-summary-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  margin-top: 24px;
  margin-bottom: 18px;
  max-width: 520px;
}

.summary-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
}

.summary-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  color: var(--text);
}

.summary-row.muted {
  color: var(--muted);
}

.summary-divider {
  height: 1px;
  background: var(--line);
  margin: 12px 0;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 600;
}

.summary-due {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.summary-remaining {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
}

#step-4 .btn.ghost {
  margin-top: 6px;
  margin-bottom: 22px;
}

/* =================================
   FORCE SAME STYLE FOR SELECTED DAY
================================= */

.cal-day.cal-selected {
  border-color: var(--accent) !important;
  background: rgba(37, 99, 235, 0.1) !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
  color: var(--text) !important;
  font-weight: 600;
}

.cal-selected {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  background: rgba(31, 111, 235, 0.08);
  transition: all 0.15s ease;
}

.next-available {
  margin-top: 12px;
}

.next-available .btn {
  margin-top: 6px;
}

/* =================================
   Urgency banner
================================ */

.urgency-banner {
  background: #fff4e5;
  border: 1px solid #ffd7a3;
  color: #a15c00;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}

/* calendar tile must be relative */
.cal-day {
  position: relative;
}

/* ===============================
   LAST SLOT BADGE
=============================== */

/* "1 left" label inside calendar */
.cal-last-label {
  position: absolute;
  top: 6px;
  right: 6px;

  font-size: 12px;
  font-weight: 600;

  padding: 4px 6px;
  border-radius: 10px;

  background: #facc157c; /* amber */
  color: #111;

  z-index: 5;
}

/* ===============================
   LAST SLOT TILE (DESKTOP)
=============================== */

.cal-last {
  border-color: #f59e0b;
  background: rgba(245, 159, 11, 0);
}

/* ===============================
   MOBILE VERSION
=============================== */

@media (max-width: 768px) {
  .cal-last-label {
    top: 50%;
    left: 50%;
    right: auto;

    color: #ffff00;

    transform: translate(-50%, -50%);

    /* perfect centering */
    display: flex;
    flex-direction: column; /* 👈 KEY for 2 lines */
    align-items: center;
    justify-content: center;
    text-align: center;

    /* sizing */
    min-width: 52px; /* slightly wider for 2 lines */
    min-height: 36px; /* 👈 important for vertical balance */

    padding: 6px 10px;

    /* typography */
    line-height: 1.05; /* 👈 better for stacked text */
    font-size: 13px;
    font-weight: 600;

    /* your colours untouched */
    background: rgba(21, 59, 250, 0.562);
    backdrop-filter: blur(6px);

    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}

/* ===============================
   MOBILE — let badge do the work
=============================== */

@media (max-width: 768px) {
  .cal-last {
    border-color: #f59e0b;
    background: transparent; /* cleaner than rgba(...,0) */
  }
}

/* ===============================
   PRESELECTED WARNING
=============================== */

.availability-warning {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #b91c1c;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.preselected-warning {
  margin-top: 12px;
}

.preselected-warning .availability-warning {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #b91c1c;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
}

.availability-warning {
  animation: fadeSlideIn 0.25s ease;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
   Availability Loader (Apple style)
=============================== */

.availability-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 0;
  gap: 12px;
  color: var(--muted);
  animation: fadeIn 0.2s ease;
}

/* dots */
.loader-dots {
  display: flex;
  gap: 6px;
}

.loader-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.3;
  animation: loaderPulse 1.4s infinite ease-in-out;
}

.loader-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.loader-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes loaderPulse {
  0%,
  80%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  40% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* text */
.loader-text {
  font-size: 14px;
  letter-spacing: 0.2px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ===============================
   Availability Warning — Polished
=============================== */

.availability-warning {
  padding: 24px 28px;
  border-radius: 16px;
  line-height: 1.5;
}

/* spacing between text + buttons */
.availability-warning .warning-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* buttons */
.warning-actions .btn {
  padding: 12px 18px;
  font-size: 15px;
  border-radius: 12px;
}

/* make primary feel stronger */
.warning-actions .btn.primary {
  min-width: 180px;
}

/* ghost button balance */
.warning-actions .btn.ghost {
  min-width: 160px;
}

/* ===============================
   MOBILE IMPROVEMENT
=============================== */

@media (max-width: 640px) {
  .availability-warning {
    padding: 20px;
  }

  .warning-actions {
    flex-direction: column;
  }

  .warning-actions .btn {
    width: 100%;
  }
}

.availability-warning strong {
  font-weight: 600;
}

.confirmation-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-width: 500px;
  margin: 40px auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.confirmation-dates {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}

.confirmation-summary div {
  display: flex;
  justify-content: space-between;
  margin: 6px 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
   Summary Loading State
=============================== */

#checkout-summary.loading {
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Optional shimmer (premium feel) */

#checkout-summary.loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 1.2s infinite;
  pointer-events: none;
  border-radius: 16px;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.confirmation-card.success {
  text-align: center;
}

.confirmation-ref {
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
}

.confirmation-section {
  margin: 14px 0;
}

.confirmation-section.highlight {
  margin-top: 16px;
  font-size: 18px;
  color: #16a34a;
}

.confirmation-footer {
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
  margin-bottom: 16px;
}

.confirmation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.confirmation-section.grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.value {
  font-size: 15px;
}

.value.strong {
  font-weight: 600;
}

.price-box {
  border-top: 1px solid #e5e7eb;
  padding-top: 12px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  margin: 6px 0;
}

.price-row.total {
  font-weight: 600;
  font-size: 17px;
}

.price-row.paid {
  color: #16a34a;
}

.price-row.outstanding {
  color: #dc2626;
  font-weight: 600;
}

.confirmation-status {
  text-align: center;
  margin: 16px 0;
  font-weight: 600;
  color: #16a34a;
}
.confirmation-card.pro {
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
  position: relative;
  overflow: hidden;
}

/* CONTENT ABOVE BACKGROUND */
.confirmation-card.pro > * {
  position: relative;
  z-index: 1;
}

/* ===============================
   CONFIRMATION — APPLE STYLE
=============================== */

.confirmation-card.apple {
  max-width: 560px;
  margin: 20px auto;
  padding: 22px;
  border-radius: 20px;
  background: white;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.confirmation-header h2 {
  margin: 0;
  font-size: 22px;
}

.confirmation-block {
  margin-bottom: 16px;
}

.confirmation-block.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.payment-card {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.payment-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.payment-row.total {
  font-weight: 600;
  font-size: 16px;
}

.payment-row.paid {
  color: #137a3d;
}

.payment-row.remaining {
  color: #1f6feb;
  font-weight: 600;
}

/* TRUST */

.confirmation-trust {
  margin-top: 18px;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ACTION */

.confirmation-actions {
  margin-top: 20px;
}

.confirmation-card.apple::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/logo.png") center center / 180px no-repeat;
  opacity: 0.04; /* subtle watermark */
  pointer-events: none;
}

/* ===============================
   BOOKING 2 COLUMN LAYOUT
=============================== */

.booking-two-col {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: start;
}

.booking-main {
  min-width: 0;
}

.booking-summary {
  position: relative;
}

/* ===============================
   STICKY SUMMARY
=============================== */

.summary-sticky-wrap {
  position: sticky;
  top: 100px; /* below header */
}

/* ===============================
   MOBILE FIX
=============================== */

@media (max-width: 900px) {
  .booking-two-col {
    grid-template-columns: 1fr;
  }

  .summary-sticky-wrap {
    position: static;
  }
}

#app-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);

  background: rgba(0, 0, 0, 0.85);
  color: #fff;

  padding: 14px 22px;
  border-radius: 12px;

  font-size: 15px;
  font-weight: 500;

  z-index: 9999;

  opacity: 0;
  pointer-events: none;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

/* visible state */
#app-toast.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

textarea {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}

.admin-notes {
  margin-top: 6px;
  padding: 8px;
  background: #fff8dc;
  border-left: 3px solid #facc15;
  font-size: 13px;
}

.summary-row.notes {
  font-size: 13px;
  color: #444;
  border-top: 1px dashed #ddd;
  padding-top: 6px;
}

.notes-important {
  color: #b91c1c;
  font-weight: 600;
}

/* ===============================
   DEPOSIT PAGE
=============================== */

.deposit-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deposit-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.deposit-logo {
  width: 120px;
  margin-bottom: 10px;
}

.deposit-card h2 {
  margin-bottom: 8px;
}

#booking-info {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

.deposit-card label {
  display: block;
  text-align: left;
  margin: 12px 0 6px;
  font-weight: 600;
}

.deposit-card input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
}

.stripe-card {
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
}

#submit-btn {
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: #1f6feb;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.deposit-note {
  margin-top: 16px;
  font-size: 13px;
  color: #666;
}

/* ======================================================
   CUSTOMER CONTACT + FOOTER
====================================================== */

.contact-card {
  max-width: 760px;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form .form-grid {
  gap: 18px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 170px;
}

/* 🔥 Correct spacing around Formspree button */
.contact-form > .btn {
  width: auto;
  align-self: flex-start;
  margin-top: 22px;
  margin-bottom: 16px;
  min-width: 170px;
}

/* 🔥 Correct spacing for success/error text */
#contact-status {
  margin-top: 0 !important;
  padding-top: 2px;
  line-height: 1.45;
}

.form-full {
  grid-column: 1 / -1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 24px;
  align-items: start;
}

.site-footer h3,
.site-footer h4 {
  margin: 0 0 10px;
  color: var(--text);
}

.footer-menu {
  display: grid;
  gap: 8px;
}

.footer-menu a,
.footer-contact a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.footer-menu a:hover,
.footer-contact a:hover {
  text-decoration: underline;
}

.footer-contact {
  margin: 0 0 12px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-card {
    max-width: none;
  }

  .contact-form .form-grid {
    gap: 14px;
  }

  .contact-form > .btn {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 14px;
    min-height: 54px;
  }

  #contact-status {
    font-size: 15px;
    line-height: 1.45;
  }
}

/* ======================================================
   FORMSPREE CONTACT FORM STATES
====================================================== */

.success-message {
  color: #137a3d !important;
  font-weight: 700;
}

.contact-form button[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Google address suggestions */
.pac-container {
  z-index: 999999 !important;
}

/* ======================================================
   PUBLIC CALENDAR PRIVACY CLEANUP
   Hide old per-lorry availability lines and legend.
   Live availability is shown only in the preview.
====================================================== */

#availability-calendar .cal-lines,
#availability-calendar .cal-line,
#availability-calendar .cal-legend {
  display: none !important;
}

/* ======================================================
   CUSTOMER BOOKING CALENDAR — CLEAN PREMIUM VERSION
   Desktop + Mobile
   Availability is shown only in the live preview.
====================================================== */

#availability-calendar.cal-wrap {
  width: 100%;
  max-width: 760px;
  margin: 20px auto 18px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(203, 213, 225, 0.85);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(248, 250, 252, 0.98)
  );
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: visible;
}

/* Header */
#availability-calendar .cal-head {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

#availability-calendar .cal-title {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #111827;
}

#availability-calendar .cal-nav {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: #ffffff;
  color: #111827;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

#availability-calendar .cal-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Weekdays */
#availability-calendar .cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

#availability-calendar .cal-weekdays div {
  text-align: center;
  padding: 4px 0;
}

/* Grid */
#availability-calendar .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

/* Day tiles */
#availability-calendar .cal-day {
  aspect-ratio: 1 / 1;
  min-height: 66px;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: #ffffff;
  color: #1d2530;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 6px 14px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

/* Neutralise old available/unavailable colours */
#availability-calendar .cal-day.cal-available,
#availability-calendar .cal-day.cal-unavailable,
#availability-calendar .cal-day.cal-weekend.cal-available,
#availability-calendar .cal-day.cal-weekend.cal-unavailable {
  border-color: rgba(203, 213, 225, 0.9);
  background: #ffffff;
  opacity: 1;
}

/* Weekend: very subtle, not availability-related */
#availability-calendar .cal-day.cal-weekend {
  background: #f8fafc;
}

/* Hover */
@media (hover: hover) {
  #availability-calendar .cal-day:not(.cal-past):not(.cal-no-start):hover {
    transform: translateY(-2px);
    border-color: rgba(31, 111, 235, 0.45);
    box-shadow:
      0 12px 26px rgba(31, 111, 235, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.95);
  }
}

/* Today */
#availability-calendar .cal-day.cal-today {
  border-color: rgba(31, 111, 235, 0.75);
  box-shadow:
    0 0 0 3px rgba(31, 111, 235, 0.12),
    0 8px 18px rgba(15, 23, 42, 0.05);
}

/* Selected day */
#availability-calendar .cal-day.cal-selected {
  border-color: var(--accent) !important;
  background: linear-gradient(180deg, #eff6ff, #dbeafe) !important;
  color: #1e40af !important;
  box-shadow:
    0 0 0 3px rgba(31, 111, 235, 0.16),
    0 14px 28px rgba(31, 111, 235, 0.16);
  outline: none !important;
}

/* Previewed range */
#availability-calendar .cal-day.cal-preview {
  border-color: rgba(31, 111, 235, 0.45);
  background: rgba(31, 111, 235, 0.07);
}

/* Past / cannot-start days */
#availability-calendar .cal-day.cal-past,
#availability-calendar .cal-day.cal-no-start {
  background: #f1f5f9 !important;
  color: #94a3b8;
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
}

/* Hide old privacy-sensitive / confusing indicators */
#availability-calendar .cal-lines,
#availability-calendar .cal-line,
#availability-calendar .cal-legend,
#availability-calendar .cal-last-label {
  display: none !important;
}

/* Desktop preview popup */
#vehicle-preview.vehicle-preview {
  width: min(360px, 92vw);
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 22px 46px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: auto;
  z-index: 50;
}

#vehicle-preview .preview-item {
  padding: 9px;
  border-radius: 14px;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

#vehicle-preview .preview-item:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

#vehicle-preview .preview-select,
#mobile-preview .preview-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

#vehicle-preview .preview-select:focus-visible,
#mobile-preview .preview-select:focus-visible {
  outline: 3px solid rgba(31, 111, 235, 0.28);
  outline-offset: 2px;
}

#vehicle-preview .preview-select.selecting,
#mobile-preview .preview-select.selecting {
  opacity: 0.72;
  pointer-events: none;
}

.preview-action {
  flex: 0 0 auto;
  align-self: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31, 111, 235, 0.1);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

#vehicle-preview .preview-select:hover .preview-action,
#mobile-preview .preview-select:hover .preview-action {
  background: var(--accent);
  color: #ffffff;
}

#vehicle-preview .preview-img {
  width: 72px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
}

/* Mobile preview panel */
#mobile-preview.mobile-preview {
  margin: 14px 0 0;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

#mobile-preview .preview-item {
  padding: 10px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(203, 213, 225, 0.75);
}

#mobile-preview .preview-item + .preview-item {
  margin-top: 8px;
}

#mobile-preview .preview-img {
  width: 76px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}

/* Selected vehicle label polish */
.calendar-vehicle-label {
  max-width: 760px;
  margin: 0 auto 12px;
  padding: 11px 14px;
  border-radius: 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 14px;
  font-weight: 700;
}

/* ======================================================
   MOBILE CALENDAR — iPhone friendly
====================================================== */

@media (max-width: 760px) {
  #booking .card {
    padding: 14px;
    border-radius: 20px;
  }

  #availability-calendar.cal-wrap {
    max-width: none;
    margin: 16px auto 14px;
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
  }

  #availability-calendar .cal-head {
    grid-template-columns: 42px 1fr 42px;
    gap: 8px;
    margin-bottom: 10px;
  }

  #availability-calendar .cal-title {
    font-size: 18px;
  }

  #availability-calendar .cal-nav {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 24px;
  }

  #availability-calendar .cal-weekdays {
    gap: 4px;
    font-size: 10px;
    letter-spacing: 0.04em;
    margin-bottom: 5px;
  }

  #availability-calendar .cal-grid {
    gap: 5px;
  }

  #availability-calendar .cal-day {
    min-height: 42px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: none;
  }

  #availability-calendar .cal-day.cal-selected {
    box-shadow: 0 0 0 2px rgba(31, 111, 235, 0.22);
  }

  #availability-calendar .cal-day.cal-today {
    box-shadow: 0 0 0 2px rgba(31, 111, 235, 0.16);
  }

  .calendar-vehicle-label {
    max-width: none;
    margin: 0 0 10px;
    font-size: 13px;
    border-radius: 14px;
  }

  #mobile-preview.mobile-preview {
    margin-top: 12px;
    padding: 12px;
    border-radius: 18px;
  }

  #mobile-preview .preview-img {
    width: 68px;
    height: 52px;
  }

  #mobile-preview .preview-text strong {
    font-size: 14px;
  }

  #mobile-preview .tiny {
    font-size: 12px;
  }
}

/* Very small phones, e.g. iPhone SE */
@media (max-width: 390px) {
  #availability-calendar.cal-wrap {
    padding: 8px;
  }

  #availability-calendar .cal-grid {
    gap: 4px;
  }

  #availability-calendar .cal-weekdays {
    gap: 4px;
    font-size: 9px;
  }

  #availability-calendar .cal-day {
    min-height: 38px;
    border-radius: 10px;
    font-size: 13px;
  }
}

/* ======================================================
   CALENDAR TITLE HELPER TEXT
====================================================== */

#availability-calendar .cal-title-wrap {
  text-align: center;
  line-height: 1.15;
}

#availability-calendar .cal-title-help {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: -0.01em;
}

@media (max-width: 760px) {
  #availability-calendar .cal-title-help {
    font-size: 11px;
    line-height: 1.25;
  }
}

/* Centre calendar month + helper text */
#availability-calendar .cal-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100%;
  text-align: center;
}

#availability-calendar .cal-title,
#availability-calendar .cal-title-help {
  width: 100%;
  text-align: center;
}

/* ======================================================
   STEP 2 RESET BOOKING BUTTON
====================================================== */

.step-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.step-card-head h3 {
  margin: 0;
}

.reset-booking-step-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 800;
}

@media (max-width: 640px) {
  .step-card-head {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .reset-booking-step-btn {
    width: 100%;
  }
}

/* ======================================================
   BOOKING CONFIRMATION — EMAIL SENT NOTICE
====================================================== */

.confirmation-email-notice {
  margin: 16px 0 18px;
  padding: 14px 15px;
  border-radius: 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;

  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;

  text-align: left;
}

.confirmation-email-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #dbeafe;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 17px;
}

.confirmation-email-notice strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 3px;
  color: #1e40af;
}

.confirmation-email-notice p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
}

@media (max-width: 640px) {
  .confirmation-email-notice {
    grid-template-columns: 30px 1fr;
    padding: 13px;
  }

  .confirmation-email-icon {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }
}

/* ======================================================
   PAY DEPOSIT PAGE — MOBILE SIZE FIX
====================================================== */

@media (max-width: 640px) {
  body:has(.deposit-wrap) {
    min-height: 100svh;
    padding: 16px 12px !important;
    display: flex;
    align-items: flex-start !important;
    justify-content: center !important;
    background: #f1f3f6;
  }

  .deposit-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    padding: 0 !important;
    display: flex;
    align-items: flex-start !important;
    justify-content: center !important;
  }

  .deposit-card {
    width: calc(100vw - 24px) !important;
    max-width: none !important;
    margin: 24px auto 0 !important;
    padding: 26px 20px !important;
    border-radius: 24px !important;
  }

  .deposit-logo {
    width: 108px !important;
    max-width: 108px !important;
    height: auto !important;
    margin-bottom: 16px !important;
  }

  .deposit-card h2 {
    font-size: 24px !important;
    line-height: 1.2 !important;
    margin-bottom: 10px !important;
  }

  #booking-info {
    font-size: 14px !important;
    margin-bottom: 18px !important;
  }

  #payment-form label {
    font-size: 15px !important;
    margin-bottom: 7px !important;
  }

  #card-name,
  .stripe-card {
    width: 100% !important;
    min-height: 54px !important;
    padding: 15px 14px !important;
    font-size: 16px !important;
    border-radius: 14px !important;
  }

  #submit-btn {
    width: 100% !important;
    min-height: 54px !important;
    margin-top: 18px !important;
    border-radius: 14px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
  }

  .deposit-note {
    font-size: 14px !important;
    line-height: 1.45 !important;
    margin-top: 18px !important;
  }

  #message {
    font-size: 14px !important;
    margin-top: 14px !important;
  }
}


/* ======================================================
   SEO / AI SEARCH CONTENT SECTIONS
   Clear answer-style sections for Google Search and AI search.
====================================================== */

.seo-content-section {
  padding-top: 24px;
  padding-bottom: 24px;
}

.seo-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.seo-panel h2,
.seo-panel h3 {
  margin-top: 0;
  letter-spacing: -0.03em;
}

.seo-panel p {
  color: var(--muted);
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.seo-mini-card {
  background: #f8fafc;
  border: 1px solid rgba(219, 225, 232, 0.9);
  border-radius: 18px;
  padding: 16px;
}

.seo-mini-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.seo-mini-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.seo-mini-card li {
  margin: 6px 0;
}

.seo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.faq-section {
  padding-top: 18px;
  padding-bottom: 28px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

.service-area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.service-area-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #eef4ff;
  border: 1px solid #cfe0ff;
  color: #1f3b8b;
  font-weight: 700;
  font-size: 13px;
}

@media (max-width: 760px) {
  .seo-panel {
    padding: 18px;
    border-radius: 20px;
  }

  .seo-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .seo-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .seo-actions .btn {
    width: 100%;
  }

  .service-area-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .service-area-list span {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
}

/* ======================================================
   APPLE STYLE DATE PICKER
   Larger custom picker for booking pickup dates
====================================================== */

.apple-date-source {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.apple-date-trigger {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: var(--text);
  font: inherit;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(15, 23, 42, 0.04);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease,
    background 0.16s ease;
}

.apple-date-trigger:hover {
  border-color: rgba(31, 111, 235, 0.45);
  background: #ffffff;
  transform: translateY(-1px);
}

.apple-date-trigger:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow:
    0 0 0 4px rgba(31, 111, 235, 0.14),
    0 10px 24px rgba(15, 23, 42, 0.08);
}

.apple-date-trigger.empty .apple-date-trigger-text {
  color: #8a94a3;
  font-weight: 600;
}

.apple-date-trigger-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #eef2f7;
  color: #1d2530;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 900;
}

.apple-date-picker-open {
  overflow: hidden;
}

.apple-date-picker-shell.hidden {
  display: none !important;
}

.apple-date-picker-shell {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.apple-date-picker-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.42);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  cursor: pointer;
}

.apple-date-picker-card {
  position: relative;
  z-index: 2;
  width: min(460px, calc(100vw - 28px));
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid rgba(219, 225, 232, 0.88);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  box-shadow:
    0 26px 80px rgba(15, 23, 42, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 14px;
}

.apple-date-picker-grabber {
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: #d7dde7;
  margin: 2px auto 12px;
}

.apple-date-picker-head,
.apple-date-picker-monthbar,
.apple-date-picker-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.apple-date-picker-head {
  padding: 4px 6px 14px;
}

.apple-date-picker-kicker {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.apple-date-picker-head h3 {
  margin: 2px 0 0;
  color: #111827;
  font-size: 28px;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.apple-date-picker-close,
.apple-date-picker-nav {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #111827;
  font-weight: 950;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.apple-date-picker-close {
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
}

.apple-date-picker-monthbar {
  padding: 8px 2px 14px;
}

.apple-date-picker-nav {
  width: 48px;
  height: 48px;
  font-size: 34px;
  line-height: 1;
}

.apple-date-picker-close:hover,
.apple-date-picker-nav:hover,
.apple-date-picker-today:hover,
.apple-date-picker-done:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
}

.apple-date-picker-month {
  flex: 1;
  text-align: center;
  color: #111827;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.apple-date-picker-weekdays,
.apple-date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}

.apple-date-picker-weekdays {
  padding: 0 2px 8px;
}

.apple-date-picker-weekdays span {
  color: #94a3b8;
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.apple-date-picker-grid {
  padding: 0 2px;
}

.apple-date-picker-empty {
  min-height: 48px;
}

.apple-date-picker-day {
  appearance: none;
  -webkit-appearance: none;
  min-width: 0;
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  background: #f8fafc;
  color: #111827;
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
  transition:
    background 0.14s ease,
    color 0.14s ease,
    transform 0.14s ease,
    box-shadow 0.14s ease;
}

.apple-date-picker-day:hover:not(:disabled) {
  background: #eaf2ff;
  transform: translateY(-1px);
}

.apple-date-picker-day.today:not(.selected) {
  color: var(--accent);
  box-shadow: inset 0 0 0 2px rgba(31, 111, 235, 0.28);
}

.apple-date-picker-day.selected {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(31, 111, 235, 0.28);
}

.apple-date-picker-day.disabled,
.apple-date-picker-day:disabled {
  color: #cbd5e1;
  background: #f8fafc;
  cursor: not-allowed;
  opacity: 0.75;
}

.apple-date-picker-actions {
  padding: 16px 2px 2px;
}

.apple-date-picker-today,
.apple-date-picker-done {
  appearance: none;
  -webkit-appearance: none;
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 950;
  cursor: pointer;
}

.apple-date-picker-today {
  background: #eef2f7;
  color: #111827;
}

.apple-date-picker-done {
  min-width: 112px;
  background: var(--accent);
  color: #ffffff;
}

@media (max-width: 720px) {
  .apple-date-trigger {
    min-height: 60px;
    border-radius: 18px;
    font-size: 18px;
  }

  .apple-date-picker-shell {
    align-items: flex-end;
    padding: 10px;
  }

  .apple-date-picker-card {
    width: 100%;
    border-radius: 32px;
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  }

  .apple-date-picker-day,
  .apple-date-picker-empty {
    min-height: 50px;
  }
}



@media (max-width: 650px) {
  .google-reviews-summary {
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
  }

  .google-reviews-google-link {
    width: 100%;
  }

  .google-reviews-photos-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .google-reviews-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .google-reviews-list {
    grid-template-columns: 1fr;
  }

  .google-review-card {
    padding: 15px;
  }

  .google-reviews-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ======================================================
   DATE-ONLY BOOKING CALENDAR
   Calendar now chooses date only: no availability colours, no preview popup.
====================================================== */

#availability-calendar .cal-day,
#availability-calendar .cal-day.cal-date-only,
#availability-calendar .cal-day.cal-available,
#availability-calendar .cal-day.cal-unavailable,
#availability-calendar .cal-day.cal-weekend.cal-available,
#availability-calendar .cal-day.cal-weekend.cal-unavailable {
  background: #ffffff !important;
  color: #1d2530 !important;
  border-color: rgba(203, 213, 225, 0.9) !important;
  opacity: 1 !important;
  cursor: pointer !important;
}

#availability-calendar .cal-day.cal-weekend,
#availability-calendar .cal-day.cal-weekend.cal-date-only {
  background: #f8fafc !important;
}

#availability-calendar .cal-day.cal-past {
  background: #f1f5f9 !important;
  color: #94a3b8 !important;
  opacity: 0.65 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  box-shadow: none !important;
}

#availability-calendar .cal-day.cal-selected {
  border-color: var(--accent) !important;
  background: linear-gradient(180deg, #eff6ff, #dbeafe) !important;
  color: #1e40af !important;
}

#availability-calendar .cal-day.cal-preview {
  background: inherit !important;
  border-color: rgba(203, 213, 225, 0.9) !important;
}

#vehicle-preview,
#mobile-preview,
.vehicle-preview,
.mobile-preview {
  display: none !important;
}


/* ======================================================
   LIVE BOOKING FLOW CLEANUP
   Hide the old large availability calendar below the check-availability card.
   Customers now use the pickup date input and duration selector directly.
====================================================== */
#availability-calendar,
#calendar-vehicle-label,
#vehicle-preview,
#mobile-preview {
  display: none !important;
}

/* ======================================================
   LIVE V72 — clean date fields
   Removes oversized calendar symbols and aligns availability fields.
====================================================== */

/* Availability: keep the custom date picker clickable, but remove the ugly icon. */
.availability-form .apple-date-trigger-icon {
  display: none !important;
}

.availability-form .apple-date-trigger {
  height: 58px !important;
  min-height: 58px !important;
  padding: 14px 16px !important;
  align-items: center !important;
}

.availability-form #duration-days,
.availability-form select#duration-days {
  height: 58px !important;
  min-height: 58px !important;
  padding: 14px 16px !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
}

@media (max-width: 720px) {
  .availability-form .apple-date-trigger,
  .availability-form #duration-days,
  .availability-form select#duration-days {
    height: 60px !important;
    min-height: 60px !important;
  }
}

/* Your Details: remove the injected oversized DOB calendar image/icon. */
.dob-calendar-icon,
.dob-date-shell .dob-calendar-icon,
.dob-calendar-wrap .dob-calendar-icon {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

#customer-dob,
input#customer-dob[type="date"] {
  background-image: none !important;
}

/* ======================================================
   LIVE V73 — final date field icon cleanup
   Removes the calendar graphic from the availability date button
   and hides the native DOB calendar button in Your Details.
====================================================== */

#availability-form .apple-date-trigger-icon,
.apple-date-trigger-icon {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#availability-form .apple-date-trigger,
.apple-date-trigger {
  justify-content: flex-start !important;
  gap: 0 !important;
}

#availability-form .apple-date-trigger,
#availability-form #duration-days,
#availability-form select#duration-days {
  height: 60px !important;
  min-height: 60px !important;
  max-height: 60px !important;
  box-sizing: border-box !important;
}

#availability-form .apple-date-trigger {
  padding: 14px 16px !important;
}

#availability-form #duration-days,
#availability-form select#duration-days {
  padding: 14px 16px !important;
  line-height: 1.2 !important;
}

#customer-dob,
input#customer-dob[type="date"] {
  background-image: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

#customer-dob::-webkit-calendar-picker-indicator,
input#customer-dob[type="date"]::-webkit-calendar-picker-indicator {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  -webkit-appearance: none !important;
  pointer-events: none !important;
}

#customer-dob::-webkit-inner-spin-button,
#customer-dob::-webkit-clear-button,
input#customer-dob[type="date"]::-webkit-inner-spin-button,
input#customer-dob[type="date"]::-webkit-clear-button {
  display: none !important;
  -webkit-appearance: none !important;
}

/* ======================================================
   LIVE LIGHT OVERLAY HERO — V3 COMPACT
   Same width as the page content and reduced total height.
====================================================== */

.live-light-overlay-hero {
  padding: 18px 0 12px !important;
}

.live-light-overlay-hero-stage {
  width: min(1120px, 92vw) !important;
  margin-inline: auto !important;
}

.live-light-overlay-slideshow,
.live-light-overlay-frame {
  position: relative;
  width: 100%;
  height: clamp(455px, 34vw, 515px);
  min-height: 455px;
}

.live-light-overlay-frame {
  overflow: hidden;
  border: 1px solid #d7e0ea;
  border-radius: 26px;
  background:
    #eaf0f7
    url("images/hero1.webp")
    center center / cover
    no-repeat;
  isolation: isolate;
}

.live-light-overlay-frame .hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  visibility: visible !important;
  transform: scale(1.01);
  transition:
    opacity 0.75s ease,
    transform 4.8s ease;
}

.live-light-overlay-frame .hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.live-light-overlay-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(249, 252, 255, 0.99) 0%,
      rgba(249, 252, 255, 0.96) 19%,
      rgba(249, 252, 255, 0.84) 35%,
      rgba(249, 252, 255, 0.45) 50%,
      rgba(249, 252, 255, 0.08) 67%,
      rgba(249, 252, 255, 0.00) 83%
    ),
    linear-gradient(
      180deg,
      rgba(249, 252, 255, 0.04) 0%,
      rgba(249, 252, 255, 0.00) 68%,
      rgba(249, 252, 255, 0.16) 100%
    );
}

.live-light-overlay-copy {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: clamp(30px, 3.6vw, 48px);
  width: min(455px, 44%);
  transform: translateY(-50%);
  color: #172232;
}

.live-light-overlay-copy .kicker {
  margin: 0 0 11px !important;
  color: #135fc8 !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: 0.24em !important;
}

.live-light-overlay-copy h1 {
  max-width: 13ch;
  margin: 0 !important;
  color: #172232;
  font-size: clamp(36px, 3.35vw, 49px);
  line-height: 1.01;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.live-light-overlay-copy .hero-rule {
  width: 58px;
  height: 3px;
  margin: 16px 0 14px;
  border-radius: 99px;
  background: #f4d500;
}

.live-light-overlay-copy .lead {
  max-width: 47ch;
  margin: 0;
  color: #46576b;
  font-size: clamp(14px, 1.08vw, 16px);
  line-height: 1.43;
}

.live-light-overlay-copy .hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.live-light-overlay-copy .hero-cta-row .btn {
  min-height: 46px;
  border-radius: 11px;
  padding: 0 17px;
  font-size: 14px;
  font-weight: 850;
}

.live-light-overlay-copy .hero-cta-row .btn.ghost {
  border-color: rgba(44, 90, 140, 0.34);
  background: rgba(255, 255, 255, 0.84);
  color: #172232;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.live-light-overlay-copy .google-mark {
  margin-right: 6px;
  font-size: 17px;
  font-weight: 900;
}

.live-light-overlay-frame .hero-slideshow-controls {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 5px 8px;
  border: 1px solid rgba(51, 76, 105, 0.20);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.live-light-overlay-frame .hero-slide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid rgba(51, 76, 105, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: #172232;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.live-light-overlay-frame .hero-slide-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.live-light-overlay-frame .hero-slide-dot {
  width: 8px;
  height: 8px;
  min-height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #9aa8b7;
  cursor: pointer;
  transition:
    width 0.25s ease,
    background 0.25s ease;
}

.live-light-overlay-frame .hero-slide-dot.is-active {
  width: 24px;
  background: #1f6feb;
}

@media (max-width: 980px) {
  .live-light-overlay-hero-stage {
    width: min(1120px, 92vw) !important;
  }

  .live-light-overlay-slideshow,
  .live-light-overlay-frame {
    height: 520px;
    min-height: 520px;
  }

  .live-light-overlay-copy {
    width: min(425px, 48%);
  }

  .live-light-overlay-copy h1 {
    font-size: clamp(35px, 4.7vw, 45px);
  }
}

@media (max-width: 760px) {
  .live-light-overlay-hero {
    padding-top: 12px !important;
  }

  .live-light-overlay-hero-stage {
    width: 92vw !important;
  }

  .live-light-overlay-slideshow,
  .live-light-overlay-frame {
    height: 575px;
    min-height: 575px;
  }

  .live-light-overlay-frame {
    border-radius: 22px;
  }

  .live-light-overlay-frame .hero-slide {
    object-position: 62% center;
  }

  .live-light-overlay-scrim {
    background:
      linear-gradient(
        180deg,
        rgba(249, 252, 255, 0.97) 0%,
        rgba(249, 252, 255, 0.91) 43%,
        rgba(249, 252, 255, 0.48) 67%,
        rgba(249, 252, 255, 0.81) 100%
      ),
      linear-gradient(
        90deg,
        rgba(249, 252, 255, 0.84) 0%,
        rgba(249, 252, 255, 0.28) 100%
      );
  }

  .live-light-overlay-copy {
    top: 24px;
    right: 21px;
    left: 21px;
    width: auto;
    transform: none;
  }

  .live-light-overlay-copy .kicker {
    margin-bottom: 10px !important;
    font-size: 9px !important;
  }

  .live-light-overlay-copy h1 {
    max-width: 13ch;
    font-size: clamp(31px, 7.6vw, 41px);
  }

  .live-light-overlay-copy .hero-rule {
    width: 52px;
    margin: 14px 0 12px;
  }

  .live-light-overlay-copy .lead {
    max-width: 44ch;
    font-size: 14px;
    line-height: 1.4;
  }

  .live-light-overlay-copy .hero-cta-row {
    gap: 8px;
    margin-top: 16px;
  }

  .live-light-overlay-copy .hero-cta-row .btn {
    min-height: 44px;
    padding: 0 14px;
    font-size: 13px;
  }

  .live-light-overlay-frame .hero-slideshow-controls {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 520px) {
  .live-light-overlay-slideshow,
  .live-light-overlay-frame {
    height: 555px;
    min-height: 555px;
  }

  .live-light-overlay-copy {
    top: 20px;
    right: 17px;
    left: 17px;
  }

  .live-light-overlay-copy h1 {
    max-width: 12ch;
    font-size: clamp(29px, 9.2vw, 37px);
  }

  .live-light-overlay-copy .lead {
    font-size: 13px;
  }

  .live-light-overlay-copy .hero-cta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .live-light-overlay-copy .hero-cta-row .btn {
    width: 100%;
    min-width: 0;
  }

  .live-light-overlay-copy .hero-cta-row .reviews-open {
    grid-column: 1 / -1;
  }

  .live-light-overlay-frame .hero-slideshow-controls {
    right: 50%;
    transform: translateX(50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-light-overlay-frame .hero-slide {
    transition: opacity 0.2s linear;
    transform: none !important;
  }
}

/* ======================================================
   AVAILABILITY LAYOUT — SAFARI / CHROME / MOBILE MATCH
   Harmonises spacing, field heights and the Step 1 layout.
====================================================== */

#step-1 > .card {
  margin: 0 0 18px !important;
  padding: 28px !important;
}

#step-1 > .card h3 {
  margin: 0 0 12px !important;
  line-height: 1.2 !important;
}

#step-1 > .card > p.muted {
  margin: 0 !important;
  line-height: 1.5 !important;
}

#availability-form {
  margin: 0 !important;
}

#availability-form .form-grid {
  display: grid !important;
  align-items: end !important;
  gap: 16px 22px !important;
}

#availability-form .form-field {
  min-width: 0 !important;
}

#availability-form .form-field label {
  display: block !important;
  min-height: 18px !important;
  margin: 0 0 9px !important;
  line-height: 1.2 !important;
}

#availability-form .apple-date-trigger,
#availability-form #pickup-time,
#availability-form #duration-days,
#availability-form .form-field-actions .btn {
  width: 100% !important;
  height: 60px !important;
  min-height: 60px !important;
  max-height: 60px !important;
  box-sizing: border-box !important;
  border-radius: 14px !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
}

#availability-form .apple-date-trigger,
#availability-form #pickup-time,
#availability-form #duration-days {
  padding: 14px 16px !important;
}

#availability-form .form-field-actions {
  display: flex !important;
  align-items: flex-end !important;
  margin: 0 !important;
}

#availability-form .form-field-actions .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 22px !important;
}

/* No native down-arrow / “v” in the availability duration field. */
#availability-form #duration-days {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: none !important;
  padding-right: 16px !important;
}

#availability-form #duration-days::-ms-expand {
  display: none !important;
}

/* Placeholder colour, while real duration choices keep normal text colour. */
#availability-form #duration-days:required:invalid {
  color: var(--muted) !important;
}

#availability-form #duration-days option {
  color: var(--text);
}

@media (min-width: 721px) {
  #availability-form:not(.has-pickup-time) .form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  #availability-form.has-pickup-time .form-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  #step-1 > .card {
    margin-bottom: 14px !important;
    padding: 24px !important;
  }

  #availability-form .form-grid,
  #availability-form:not(.has-pickup-time) .form-grid,
  #availability-form.has-pickup-time .form-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  #availability-form .form-field label {
    margin-bottom: 9px !important;
  }

  #availability-form .form-field-actions {
    margin-top: 2px !important;
  }
}

/* ======================================================
   LIVE LIGHT / DARK THEME
   Same layout and behaviour; only the colour palette changes.
====================================================== */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  margin-left: 10px;
  padding: 0 !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.theme-toggle:hover {
  border-color: rgba(31, 111, 235, 0.55);
  transform: translateY(-1px);
}

.theme-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.16);
}

.theme-toggle-icon {
  display: block;
  font-size: 18px;
  line-height: 1;
}

@media (min-width: 1071px) {
  .header-inner .main-nav {
    margin-left: auto;
  }
}

@media (max-width: 1070px) {
  .theme-toggle {
    margin-left: auto;
    margin-right: 7px;
  }

  .header-inner .brand {
    max-width: calc(100% - 98px);
  }
}

@media (max-width: 650px) {
  .theme-toggle {
    width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    margin-right: 5px;
  }

  .header-inner .brand {
    max-width: calc(100% - 92px);
  }
}

html.theme-dark {
  color-scheme: dark;
  --bg: #07111d;
  --card: #0f1c2a;
  --text: #f3f7fb;
  --muted: #a9b7c7;
  --line: #2b3b4d;
  --accent: #2f7df6;
}

html.theme-dark body {
  color: var(--text) !important;
  background:
    radial-gradient(circle at 50% -18%, rgba(47, 125, 246, 0.15), transparent 34rem),
    linear-gradient(180deg, #091522 0%, #06101b 100%) !important;
}

html.theme-dark .site-header {
  background: rgba(8, 19, 31, 0.90) !important;
  border-bottom-color: var(--line) !important;
}

html.theme-dark .brand,
html.theme-dark .brand-name,
html.theme-dark .site-footer h3,
html.theme-dark .site-footer h4,
html.theme-dark h1,
html.theme-dark h2,
html.theme-dark h3,
html.theme-dark h4 {
  color: var(--text) !important;
}

html.theme-dark .brand-group,
html.theme-dark .lead,
html.theme-dark .muted,
html.theme-dark .footer-contact,
html.theme-dark .main-nav a,
html.theme-dark .seo-panel p,
html.theme-dark .faq-item p,
html.theme-dark .terms-card-premium p,
html.theme-dark .terms-card-premium li,
html.theme-dark .driven-info-card p,
html.theme-dark .contact-detail,
html.theme-dark .directions-section p,
html.theme-dark .calculator-card p {
  color: var(--muted) !important;
}

html.theme-dark .brand-subtitle,
html.theme-dark a:not(.btn) {
  color: #69a2ff;
}

html.theme-dark .brand-logo {
  background: #ffffff !important;
  border-color: #425269 !important;
}

html.theme-dark .nav-toggle-bar {
  background: var(--text) !important;
}

html.theme-dark .main-nav {
  background: var(--card) !important;
  border-color: var(--line) !important;
  box-shadow: none !important;
}

html.theme-dark .site-footer {
  border-top-color: var(--line) !important;
}

html.theme-dark :is(
  .card,
  .fleet-card,
  .booking-item,
  .summary-card,
  .booking-summary-card,
  .voucher-card,
  .cal-wrap,
  .requirements-box,
  .reviews-modal,
  .google-reviews-photos-block,
  .google-review-card,
  .seo-panel,
  .seo-mini-card,
  .faq-item,
  .terms-card-premium,
  .terms-video-box,
  .terms-modal,
  .driven-hero-card,
  .driven-info-card,
  .driven-calculator-section,
  .contact-panel,
  .contact-detail,
  .directions-section,
  .calculator-card,
  .calculator-modal-card
) {
  background: var(--card) !important;
  border-color: var(--line) !important;
  box-shadow: none !important;
}

html.theme-dark :is(
  input,
  select,
  textarea,
  .apple-date-trigger,
  .fixed-field
) {
  background: #0a1623 !important;
  color: var(--text) !important;
  border-color: #33465b !important;
  box-shadow: none !important;
}

html.theme-dark input::placeholder,
html.theme-dark textarea::placeholder,
html.theme-dark .apple-date-trigger.empty .apple-date-trigger-text,
html.theme-dark #availability-form #duration-days:required:invalid {
  color: #8190a2 !important;
  opacity: 1;
}

html.theme-dark option {
  background: #0f1c2a;
  color: var(--text);
}

html.theme-dark .btn.ghost,
html.theme-dark .btn-ghost,
html.theme-dark .theme-toggle,
html.theme-dark .reset-booking-step-btn {
  background: #132335 !important;
  color: var(--text) !important;
  border-color: #3a5068 !important;
}

html.theme-dark .btn.ghost:hover,
html.theme-dark .btn-ghost:hover,
html.theme-dark .theme-toggle:hover {
  background: #192c42 !important;
}

html.theme-dark :is(
  .search-chip,
  .availability-meta-pill,
  .terms-pill,
  .service-area-list span,
  .customer-badge,
  .base-note,
  .google-reviews-footer,
  .apple-date-picker-today
) {
  background: #132335 !important;
  color: #cbd8e7 !important;
  border-color: #33485f !important;
}

html.theme-dark .availability-status,
html.theme-dark .hire-form-info,
html.theme-dark .quote,
html.theme-dark .preselected-warning,
html.theme-dark .success-note {
  background: #101f30 !important;
  border-color: #33485f !important;
  color: var(--muted) !important;
}

html.theme-dark .price-row,
html.theme-dark .summary-row,
html.theme-dark .summary-divider,
html.theme-dark .calculator-modal-header,
html.theme-dark .terms-modal-header {
  border-color: var(--line) !important;
}

html.theme-dark .summary-row.notes,
html.theme-dark .google-review-text,
html.theme-dark .google-reviews-title,
html.theme-dark .google-reviews-kicker,
html.theme-dark .google-reviews-footer {
  color: var(--muted) !important;
}

html.theme-dark .google-reviews-summary {
  background: linear-gradient(180deg, #122235 0%, #0e1b29 100%) !important;
  border-color: var(--line) !important;
}

html.theme-dark .reviews-close,
html.theme-dark .calculator-modal-close,
html.theme-dark .terms-modal-close {
  background: #17283b !important;
  color: var(--text) !important;
  border-color: #3a5068 !important;
  box-shadow: none !important;
}

html.theme-dark .reviews-drag {
  background: #60738a !important;
}

html.theme-dark .google-review-avatar,
html.theme-dark .google-review-photo-card {
  background: #1a2a3d !important;
}

html.theme-dark .cal-head,
html.theme-dark .cal-weekdays,
html.theme-dark .cal-title-help {
  color: var(--muted) !important;
}

html.theme-dark .cal-nav {
  background: #132335 !important;
  color: var(--text) !important;
  border-color: #33485f !important;
}

html.theme-dark #availability-calendar .cal-day,
html.theme-dark #availability-calendar .cal-day.cal-date-only,
html.theme-dark #availability-calendar .cal-day.cal-available,
html.theme-dark #availability-calendar .cal-day.cal-unavailable,
html.theme-dark #availability-calendar .cal-day.cal-weekend,
html.theme-dark #availability-calendar .cal-day.cal-weekend.cal-date-only {
  background: #0d1a28 !important;
  color: var(--text) !important;
  border-color: #304258 !important;
}

html.theme-dark #availability-calendar .cal-day.cal-past {
  background: #0a1521 !important;
  color: #65758a !important;
}

html.theme-dark #availability-calendar .cal-day.cal-selected {
  background: linear-gradient(180deg, #17345b, #112944) !important;
  color: #dceaff !important;
  border-color: var(--accent) !important;
}

html.theme-dark .apple-date-picker-backdrop {
  background: rgba(0, 5, 12, 0.68) !important;
}

html.theme-dark .apple-date-picker-card {
  background: rgba(13, 27, 42, 0.97) !important;
  border-color: #33475e !important;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42) !important;
}

html.theme-dark :is(
  .apple-date-picker-close,
  .apple-date-picker-nav,
  .apple-date-picker-day,
  .apple-date-picker-today
) {
  background: #142538 !important;
  color: var(--text) !important;
}

html.theme-dark .apple-date-picker-day:hover:not(:disabled) {
  background: #1b3552 !important;
}

html.theme-dark .apple-date-picker-day.disabled,
html.theme-dark .apple-date-picker-day:disabled {
  background: #0b1724 !important;
  color: #526175 !important;
}

html.theme-dark .apple-date-picker-head h3,
html.theme-dark .apple-date-picker-month {
  color: var(--text) !important;
}

html.theme-dark .apple-date-picker-grabber {
  background: #53667c !important;
}

/* Homepage hero: identical layout, dark palette. */
html.theme-dark .live-light-overlay-frame {
  border-color: #31455c !important;
  background-color: #0a1725 !important;
}

html.theme-dark .live-light-overlay-scrim {
  background:
    linear-gradient(
      90deg,
      rgba(5, 15, 26, 0.98) 0%,
      rgba(5, 15, 26, 0.95) 19%,
      rgba(5, 15, 26, 0.82) 35%,
      rgba(5, 15, 26, 0.46) 51%,
      rgba(5, 15, 26, 0.08) 68%,
      rgba(5, 15, 26, 0.00) 84%
    ),
    linear-gradient(
      180deg,
      rgba(5, 15, 26, 0.04) 0%,
      rgba(5, 15, 26, 0.00) 66%,
      rgba(5, 15, 26, 0.26) 100%
    ) !important;
}

html.theme-dark .live-light-overlay-copy,
html.theme-dark .live-light-overlay-copy h1 {
  color: #f7fbff !important;
}

html.theme-dark .live-light-overlay-copy .lead {
  color: #c0ccda !important;
}

html.theme-dark .live-light-overlay-copy .kicker {
  color: #ffe600 !important;
}

html.theme-dark .live-light-overlay-copy .hero-cta-row .btn.ghost {
  background: rgba(12, 29, 46, 0.80) !important;
  color: #f7fbff !important;
  border-color: rgba(151, 184, 222, 0.42) !important;
}

html.theme-dark .live-light-overlay-frame .hero-slideshow-controls,
html.theme-dark .live-light-overlay-frame .hero-slide-btn {
  background: rgba(12, 29, 46, 0.84) !important;
  color: #f7fbff !important;
  border-color: rgba(151, 184, 222, 0.34) !important;
}

html.theme-dark .live-light-overlay-frame .hero-slide-dot {
  background: #6d7f94 !important;
}

html.theme-dark .live-light-overlay-frame .hero-slide-dot.is-active {
  background: #2f7df6 !important;
}

/* Page-specific components whose original CSS uses fixed light colours. */
html.theme-dark .terms-card-premium,
html.theme-dark .terms-modal,
html.theme-dark .driven-hero-card,
html.theme-dark .driven-info-card,
html.theme-dark .driven-calculator-section,
html.theme-dark .contact-panel,
html.theme-dark .calculator-card,
html.theme-dark .calculator-modal-card {
  background: var(--card) !important;
}

html.theme-dark .terms-video-box,
html.theme-dark .driven-calculator-frame,
html.theme-dark .calculator-frame,
html.theme-dark .directions-section,
html.theme-dark .contact-detail {
  background: #0a1623 !important;
  border-color: var(--line) !important;
}

html.theme-dark .calculator-card::before {
  background: radial-gradient(circle at top right, rgba(47, 125, 246, 0.16), transparent 34%) !important;
}

html.theme-dark .calculator-icon {
  background: #142a45 !important;
  border-color: #294d78 !important;
}

html.theme-dark .contact-page,
html.theme-dark body:has(.contact-page) {
  background:
    radial-gradient(circle at 15% 0%, rgba(47, 125, 246, 0.18), transparent 30rem),
    linear-gradient(180deg, #091522 0%, #06101b 100%) !important;
}

html.theme-dark .map-frame {
  opacity: 0.88;
}

html.theme-dark .deposit-card {
  background: var(--card) !important;
  color: var(--text) !important;
  border: 1px solid var(--line);
  box-shadow: none !important;
}

html.theme-dark #booking-info,
html.theme-dark .deposit-note {
  color: var(--muted) !important;
}

/* Keep Stripe's secure card field white for guaranteed legibility. */
html.theme-dark .stripe-card {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
}

@media (max-width: 760px) {
  html.theme-dark .live-light-overlay-scrim {
    background:
      linear-gradient(
        180deg,
        rgba(5, 15, 26, 0.97) 0%,
        rgba(5, 15, 26, 0.91) 43%,
        rgba(5, 15, 26, 0.48) 67%,
        rgba(5, 15, 26, 0.82) 100%
      ),
      linear-gradient(
        90deg,
        rgba(5, 15, 26, 0.85) 0%,
        rgba(5, 15, 26, 0.28) 100%
      ) !important;
  }
}

/* ======================================================
   DARK MODE POLISH — V2
   Fixes fleet detail modal, availability labels and embedded calculator chrome.
====================================================== */

/* Availability labels must stay readable over the dark page background. */
html.theme-dark #availability-form .form-field label,
html.theme-dark #availability-form label,
html.theme-dark #step-1 .form-field label {
  color: #dce7f3 !important;
  opacity: 1 !important;
}

/* Booking step pills: inactive pills stay white in dark mode, so use darker text for contrast. */
html.theme-dark .booking-steps .step {
  color: #7b8798 !important;
  border-color: #607185 !important;
  background: #ffffff !important;
}

html.theme-dark .booking-steps .step.active {
  color: #ffffff !important;
  border-color: var(--accent) !important;
  background: var(--accent) !important;
}

/* Fleet details modal: convert every remaining fixed light surface. */
html.theme-dark .fleet-detail-overlay {
  background: rgba(1, 8, 16, 0.84) !important;
}

html.theme-dark .fleet-detail-modal {
  background: #0f1c2a !important;
  color: #f3f7fb !important;
  border-color: #33465b !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.56) !important;
}

html.theme-dark .fleet-detail-copy,
html.theme-dark .fleet-detail-copy h2,
html.theme-dark .fleet-detail-video h3,
html.theme-dark .fleet-detail-info-grid h3 {
  color: #f3f7fb !important;
}

html.theme-dark .fleet-detail-intro,
html.theme-dark .fleet-detail-info-grid li,
html.theme-dark .fleet-detail-video-placeholder {
  color: #a9b7c7 !important;
}

html.theme-dark .fleet-detail-video-placeholder {
  background: #0a1623 !important;
  border-color: #3a4e64 !important;
}

html.theme-dark .fleet-detail-thumb {
  background: #142538 !important;
  border: 1px solid #33465b !important;
}

html.theme-dark .fleet-detail-close {
  background: #132335 !important;
  color: #f3f7fb !important;
  border-color: #425a73 !important;
  box-shadow: none !important;
}

/* Calculator overlay header and frame should read as one dark component. */
html.theme-dark .calculator-modal-card {
  background: #0f1c2a !important;
  border: 1px solid #33465b !important;
}

html.theme-dark .calculator-modal-header {
  flex: 0 0 auto;
  min-height: 68px;
  background: #0f1c2a !important;
  color: #f3f7fb !important;
  border-bottom-color: #33465b !important;
}

html.theme-dark .calculator-modal-header h3 {
  color: #f3f7fb !important;
}

html.theme-dark .calculator-frame {
  background: #0a1623 !important;
}

/* Keep headings and labels readable on all page-specific dark surfaces. */
html.theme-dark :is(
  .terms-card-premium,
  .driven-hero-card,
  .driven-info-card,
  .driven-calculator-section,
  .contact-panel,
  .calculator-card
) :is(h1, h2, h3, h4, label, strong) {
  color: #f3f7fb !important;
}


/* ======================================================
   DARK MODE POLISH — V3
   Your Details labels and extras cards.
====================================================== */

/* Step 3 / Your Details: keep every field title readable. */
html.theme-dark #step-3 :is(
  .form-field > label,
  .form-group > label,
  .voucher-left > label
) {
  color: #dce7f3 !important;
  opacity: 1 !important;
}

/* Read-only field labels and half-day pickup label use the same contrast. */
html.theme-dark #step-3 :is(
  label[for="selected-lorry"],
  label[for="selected-base"],
  label[for="selected-pickup"],
  label[for="selected-duration"],
  label[for="booking-pickup-time"],
  label[for="customer-name"],
  label[for="customer-email"],
  label[for="customer-mobile"],
  label[for="customer-dob"],
  label[for="customer-address"],
  label[for="discount-code"],
  label[for="customer-notes"]
) {
  color: #dce7f3 !important;
  opacity: 1 !important;
}

/* Extras should be dark cards, not fixed white rows. */
html.theme-dark #step-3 .extras-grid > .check,
html.theme-dark #step-3 .extras-grid > .dartford-row {
  background: #0a1623 !important;
  color: #f3f7fb !important;
  border-color: #33465b !important;
  box-shadow: none !important;
}

html.theme-dark #step-3 .dartford-row .check {
  background: transparent !important;
  border: 0 !important;
}

html.theme-dark #step-3 .extras-grid .check span {
  color: #dce7f3 !important;
  opacity: 1 !important;
}

/* A disabled option remains visibly unavailable without disappearing. */
html.theme-dark #step-3 .extras-grid .check:has(input:disabled) span {
  color: #8fa0b3 !important;
}

html.theme-dark #step-3 .check input[type="checkbox"] {
  background: #07111d !important;
  border-color: #526a84 !important;
}

html.theme-dark #step-3 .check input[type="checkbox"]:checked {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}

html.theme-dark #step-3 .dartford-count input {
  background: #132335 !important;
  color: #dce7f3 !important;
  border-color: #425a73 !important;
}

html.theme-dark #step-3 .dartford-count input:disabled {
  background: #172536 !important;
  color: #aebccc !important;
  opacity: 0.8 !important;
}

/* Voucher area should match the surrounding details card. */
html.theme-dark #step-3 .voucher-card {
  background: #0a1623 !important;
  border-color: #33465b !important;
}

html.theme-dark #step-3 .voucher-message.muted {
  color: #9eafc1 !important;
}

/* ======================================================
   DARK MODE POLISH — V4
   Stripe finalisation and booking confirmation cards.
====================================================== */

html.theme-dark #booking-confirmation :is(
  .confirmation-card,
  .confirmation-card.pro,
  .confirmation-card.apple
) {
  background: #0f1c2a !important;
  color: #f3f7fb !important;
  border-color: #33465b !important;
  box-shadow: none !important;
}

html.theme-dark #booking-confirmation .confirmation-card.apple::before {
  opacity: 0.08;
  filter: brightness(1.3);
}

html.theme-dark #booking-confirmation :is(
  .confirmation-note,
  .confirmation-ref,
  .confirmation-block .label,
  .confirmation-block .value,
  .confirmation-trust,
  .trust-item
) {
  color: #c7d5e5 !important;
  opacity: 1 !important;
}

html.theme-dark #booking-confirmation .confirmation-block .value.strong,
html.theme-dark #booking-confirmation .payment-row.total {
  color: #f3f7fb !important;
}

html.theme-dark #booking-confirmation .payment-card {
  background: #0a1623 !important;
  border-color: #425a73 !important;
}

html.theme-dark #booking-confirmation .payment-row:not(.paid):not(.remaining) {
  color: #dce7f3 !important;
}

html.theme-dark #booking-confirmation .payment-row.paid {
  color: #50cf7d !important;
}

html.theme-dark #booking-confirmation .payment-row.remaining {
  color: #69a2ff !important;
}

html.theme-dark #booking-confirmation .confirmation-email-notice {
  background: #13283e !important;
  border-color: #315d8f !important;
  color: #dceaff !important;
}

html.theme-dark #booking-confirmation .confirmation-email-icon {
  background: #1b3a5d !important;
}

html.theme-dark #booking-confirmation .confirmation-email-notice strong {
  color: #8bb9ff !important;
}

html.theme-dark #booking-confirmation .confirmation-email-notice p {
  color: #c7d5e5 !important;
}

html.theme-dark #booking-confirmation .confirmation-actions .btn {
  color: #ffffff !important;
}
