/* -------------------------------
   Base reset / global
---------------------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  background-color: #f8fafc;
  line-height: 1.5;
}

/* Color system */
:root {
  --bg-body: #f8fafc;
  --bg-elevated: #ffffff;
  --bg-soft: #f1f5f9;
  --bg-accent: #0f172a;

  --primary: #0ea5e9;
  --primary-soft: rgba(14, 165, 233, 0.1);
  --primary-deep: #0369a1;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-soft: #e2e8f0;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.5rem 0;
}

.section-light {
  background-color: #f1f5f9;
}

.section-accent {
  background: linear-gradient(135deg, #0f172a, #020617);
  color: #e5e7eb;
}

/* Utility */
.hidden {
  display: none !important;
}

/* -------------------------------
   Header
---------------------------------*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(248, 250, 252, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.brand-link:hover,
.brand-link:focus {
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, #22c55e, #0ea5e9);
  color: #f9fafb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.17rem;
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: nowrap;
}

@media (max-width: 768px) {
  section[id],
  #booking-step-1 {
    scroll-margin-top: 84px;
  }

  .site-header {
    transition: transform 0.2s ease;
  }

  .site-header.is-hidden {
    transform: translateY(-110%);
  }
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-user-btn::after {
  content: "v";
  font-size: 0.7rem;
  opacity: 0.7;
}

@media (max-width: 768px) {
  /* Mobile: use a compact "3 dots" menu button in the header. */
  .nav-user-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
    font-size: 0; /* hide the name label visually */
    gap: 0;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  .nav-user-btn::after {
    content: "...";
    font-size: 1.25rem;
    opacity: 0.9;
    display: inline-block;
    transform: rotate(90deg);
  }

  /* Mobile: menu is an overlay dropdown; close by clicking anywhere. */
  .nav-dropdown-menu {
    position: fixed;
    right: 0.85rem;
    top: 66px;
    min-width: min(280px, calc(100vw - 1.7rem));
    z-index: 110;
  }

  #date,
  #time,
  #returnDate,
  #returnTime,
  #referralCode {
    text-align: right;
  }

  .menu-toggle {
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
  }

  .menu-toggle::after {
    content: "...";
    font-size: 1.25rem;
    opacity: 0.9;
    display: inline-block;
    transform: rotate(90deg);
  }
}

.nav-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 180px;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 0.8rem;
  box-shadow: var(--shadow-soft);
  padding: 0.5rem;
  display: none;
  z-index: 20;
}

.nav-dropdown[open] .nav-dropdown-menu {
  display: grid;
}

.nav-dropdown-item {
  border: none;
  background: transparent;
  padding: 0.45rem 0.6rem;
  border-radius: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-main);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.nav-dropdown-item:hover {
  background: rgba(15, 23, 42, 0.06);
}

.nav-dropdown-item.is-danger {
  color: #991b1b;
}

.nav-dropdown-item.is-danger:hover {
  background: rgba(239, 68, 68, 0.12);
}

/* Driver onboarding extras (keep scoped to the onboarding form) */
.driver-onboarding-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border-soft);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.7);
}

.driver-onboarding-tags .tag-input {
  flex: 1 1 140px;
  min-width: 120px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
}

.driver-onboarding-tags .tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #075985;
  font-weight: 700;
  font-size: 0.85rem;
}

.driver-onboarding-tags .tag-chip button {
  border: none;
  background: transparent;
  font-weight: 900;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  padding: 0;
}

.driver-onboarding-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.driver-onboarding-row .form-input {
  flex: 1 1 auto;
}

.driver-onboarding-row .file-btn {
  flex: 0 0 auto;
}

.service-areas-mobile {
  display: none;
  width: 100%;
  gap: 0.4rem;
}

.service-areas-open {
  width: 100%;
  justify-content: center;
}

.service-areas-summary {
  margin-top: 0.15rem;
}

html.modal-open,
html.modal-open body {
  overflow: hidden;
}

.service-areas-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.service-areas-dropdown-wrap {
  position: relative;
  width: 100%;
}

.service-areas-dropdown-btn {
  text-align: left;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.service-areas-dropdown-btn::after {
  content: "v";
  font-size: 0.7rem;
  opacity: 0.7;
}

.service-areas-dropdown {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  z-index: 70;
  background: var(--bg-elevated);
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.service-areas-dropdown-search {
  padding: 0.75rem 0.8rem 0.35rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(248, 250, 252, 0.85);
}

.service-areas-dropdown-list {
  max-height: 320px;
  overflow: auto;
  padding: 0.65rem 0.8rem;
  display: grid;
  gap: 0.5rem;
}

.service-areas-dropdown-actions {
  padding: 0.65rem 0.8rem 0.85rem;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(248, 250, 252, 0.85);
}

.service-areas-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
}

.service-areas-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: min(92vh, 860px);
  background: var(--bg-elevated);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-areas-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(248, 250, 252, 0.85);
}

.service-areas-title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-main);
}

.service-areas-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.service-areas-search {
  padding: 0.75rem 1rem 0.2rem;
}

.service-areas-checklist {
  padding: 0.4rem 1rem 1rem;
  overflow: auto;
  display: grid;
  gap: 0.5rem;
}

.service-areas-check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(248, 250, 252, 0.75);
  font-weight: 700;
  color: var(--text-main);
}

.service-areas-check input {
  width: 18px;
  height: 18px;
}

.service-areas-foot {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(248, 250, 252, 0.85);
}

@media (max-width: 720px) {
  .service-areas-desktop {
    display: none !important;
  }

  .service-areas-mobile {
    display: grid;
  }

  .service-areas-modal {
    padding: 0;
  }

  .service-areas-card {
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
  }
}

@media (min-width: 721px) {
  .service-areas-mobile {
    display: none;
  }
}

.driver-onboarding-page .hero-card {
  max-width: 520px;
}

@media (min-width: 960px) {
  .driver-onboarding-page .hero-card {
    max-width: 560px;
  }
}

.file-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.75rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border-soft);
  background: rgba(248, 250, 252, 0.9);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden; /* keep the invisible input from affecting layout/scroll */
}

.file-btn-icon {
  width: 20px;
  height: 20px;
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.file-btn input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.tag-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 0.85rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  padding: 0.35rem;
  display: none;
  max-height: 220px;
  overflow: auto;
}

.tag-suggestions.open {
  display: block;
}

.tag-suggestions button {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.45rem 0.55rem;
  border-radius: 0.65rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-main);
}

.tag-suggestions button:hover {
  background: rgba(14, 165, 233, 0.12);
}

@media (max-width: 768px) {
  /* On phone, show camera icon instead of text to save space */
  .file-btn .file-btn-label {
    display: none;
  }
  .file-btn .file-btn-icon {
    display: block;
  }

  /* Driver onboarding: compact camera-style button */
  #driver-onboarding-form .file-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 999px;
    background: var(--primary);
    border-color: rgba(14, 165, 233, 0.65);
    color: #ffffff;
  }
  #driver-onboarding-form .file-btn:hover {
    filter: brightness(0.98);
  }

  /* Driver onboarding: make tag box larger for better visibility */
  #driver-onboarding-form .driver-onboarding-tags {
    min-height: 60px;
    padding: 0.75rem 0.75rem;
  }
  #driver-onboarding-form .driver-onboarding-tags .tag-input {
    font-size: 1rem;
    min-width: 160px;
  }
}

.luggage-inline {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.luggage-inline .mini-field {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.luggage-inline .mini-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  min-width: 64px;
}

@media (max-width: 560px) {
  .driver-onboarding-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .driver-onboarding-tags::-webkit-scrollbar {
    display: none;
  }

  .driver-onboarding-tags .tag-chip {
    flex: 0 0 auto;
  }

  .driver-onboarding-tags .tag-input {
    flex: 0 0 160px;
    min-width: 160px;
  }
}

/* Mobile bottom tabs (customer app-like nav) */
.mobile-bottom-tabs {
  display: none;
}

@media (max-width: 900px) {
  body.has-mobile-tabs {
    padding-bottom: 64px;
  }

  /* When the app-like bottom tabs are present, hide the hamburger site menu on mobile. */
  body.has-mobile-tabs .menu-toggle,
  body.has-mobile-tabs .menu-dropdown {
    display: none !important;
  }

  .mobile-bottom-tabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.15rem;
    padding: 0.35rem 0.65rem calc(0.35rem + env(safe-area-inset-bottom));
    background: rgba(248, 250, 252, 0.9);
    border-top: 1px solid rgba(226, 232, 240, 0.85);
    backdrop-filter: blur(10px);
    z-index: 60;
  }

  .mobile-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border: none;
    background: transparent;
    border-radius: 0.8rem;
    padding: 0.2rem 0.3rem;
    font-weight: 700;
    font-size: 0.98rem;
    flex-direction: column;
    gap: 0.2rem;
    color: rgba(15, 23, 42, 0.55);
    text-decoration: none;
    position: relative;
  }

  .mobile-tab-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
  }

  .mobile-tab svg {
    width: 24px;
    height: 24px;
    display: block;
  }

  .mobile-tab.is-active {
    color: #075985;
    background: rgba(14, 165, 233, 0.12);
  }

  .mobile-tab.is-active::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 22px;
    height: 3px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.9);
  }
}

/* Buddy intro overlay (mobile) */
.buddy-intro-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  z-index: 200;
  padding: 1.25rem;
}

.buddy-intro-overlay.is-active {
  display: flex;
}

.buddy-intro-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 1.1rem;
  padding: 1.4rem 1.2rem;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.buddy-intro-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0ea5e9;
}

.buddy-intro-card h2 {
  font-size: 1.2rem;
  margin: 0.4rem 0 0.5rem;
}

.buddy-intro-card p {
  margin: 0 0 0.7rem;
  color: rgba(15, 23, 42, 0.72);
  font-size: 0.95rem;
}

.buddy-intro-carousel {
  position: relative;
  min-height: 360px;
}

.buddy-intro-slide {
  display: none;
  animation: buddyIntroFade 0.2s ease;
  min-height: 320px;
}

.buddy-intro-slide.is-active {
  display: block;
}

.buddy-intro-slide h3 {
  margin: 0.4rem 0 0.5rem;
  font-size: 1.05rem;
}

.buddy-intro-slide p {
  margin-bottom: 0.6rem;
}

.buddy-intro-slide a {
  color: #0ea5e9;
  font-weight: 600;
  text-decoration: none;
}

.buddy-intro-slide a:hover {
  text-decoration: underline;
}

.buddy-intro-illustrations {
  display: grid;
  gap: 0.6rem;
  margin: 0.7rem 0 0.9rem;
}

.buddy-illustration-card {
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 0.9rem;
  padding: 0.6rem;
  text-align: center;
}

.buddy-illustration-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.75rem;
  max-height: 180px;
  object-fit: contain;
}

.buddy-illustration-card h4 {
  font-size: 0.85rem;
  margin: 0.5rem 0 0;
  color: rgba(15, 23, 42, 0.75);
}

.buddy-intro-diagram {
  display: grid;
  gap: 0.45rem;
  margin: 0.6rem 0 0.8rem;
}

.diagram-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.diagram-card {
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 0.75rem;
  padding: 0.5rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.8);
  flex: 1 1 120px;
  text-align: center;
}

.diagram-arrow {
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.5);
}

.buddy-intro-note {
  font-size: 0.78rem;
  color: rgba(15, 23, 42, 0.62);
  margin: 0.5rem 0 0.7rem;
}

.buddy-intro-preview {
  border: 1px dashed rgba(148, 163, 184, 0.7);
  border-radius: 0.9rem;
  padding: 0.6rem;
  background: rgba(248, 250, 252, 0.75);
  display: grid;
  gap: 0.4rem;
}

.buddy-intro-preview-grid {
  display: grid;
  gap: 0.6rem;
}

.buddy-intro-preview .preview-chat {
  display: grid;
  gap: 0.35rem;
}

.buddy-intro-preview .preview-bubble {
  max-width: 80%;
  padding: 0.35rem 0.5rem;
  border-radius: 0.75rem;
  font-size: 0.78rem;
}

.buddy-intro-preview .preview-bubble.self {
  justify-self: end;
  background: rgba(14, 165, 233, 0.15);
  color: #075985;
}

.buddy-intro-preview .preview-bubble.other {
  justify-self: start;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  color: rgba(15, 23, 42, 0.78);
}

.buddy-intro-preview .preview-qr {
  display: grid;
  place-items: center;
  padding: 0.45rem;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 0.75rem;
}

.buddy-intro-preview .preview-qr svg {
  width: 140px;
  height: 140px;
}

.buddy-intro-preview .preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(15, 23, 42, 0.75);
}

.buddy-intro-preview .preview-pill {
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #0ea5e9;
  font-weight: 700;
  font-size: 0.7rem;
}

.buddy-intro-dots {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin: 0.6rem 0 0.2rem;
}

.buddy-intro-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.2);
}

.buddy-intro-dot.is-active {
  background: #0ea5e9;
}

.buddy-intro-card ul {
  padding-left: 1.1rem;
  margin: 0 0 0.8rem;
  color: rgba(15, 23, 42, 0.8);
  font-size: 0.9rem;
}

.buddy-intro-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.7);
  margin: 0.6rem 0 1rem;
}

.buddy-intro-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.buddy-intro-actions .btn {
  min-width: 92px;
}

@keyframes buddyIntroFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Popup menu dropdown */
.menu-dropdown {
  position: absolute;
  right: 1.25rem;
  top: 64px;
  margin-top: 0.2rem;
  background-color: #ffffff;
  border-radius: 0.9rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  padding: 0.35rem 0.25rem;
  min-width: 180px;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 50;
}

.menu-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.main-nav {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.2rem 0.35rem;
}

.main-nav a {
  font-size: 0.9rem;
  text-decoration: none;
  color: #0f172a;
  padding: 0.4rem 0.7rem;
  border-radius: 0.7rem;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.main-nav a:hover {
  background-color: var(--primary-soft);
  color: var(--primary-deep);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-icon {
  width: 18px;
  height: 18px;
  margin-right: 0.45rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #f9fafb;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-outline {
  background-color: transparent;
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.8);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-deep);
}

.btn-soft {
  background-color: var(--primary-soft);
  color: var(--primary-deep);
  border-color: transparent;
}

.btn-soft:hover {
  background-color: rgba(14, 165, 233, 0.2);
}

.btn-wide {
  width: 100%;
}

.btn-full {
  width: 100%;
}

/* -------------------------------
   Hero
---------------------------------*/
.hero {
  padding: 3.5rem 0 3rem;
  background: radial-gradient(circle at top left, #e0f2fe, #f8fafc 50%, #f1f5f9 80%);
}

.hero-media {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.hero-image {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-soft);
  background: #f8fafc;
}

.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.hero-copy-top {
  margin-bottom: 1.6rem;
  padding-top: 0.1rem;
  position: relative;
  top: -10px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(1.9rem, 3vw + 1rem, 2.7rem);
  line-height: 1.15;
  margin: 0;
  color: #020617;
}

.page-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-copy .highlight {
  color: var(--primary-deep);
}

.hero-subtitle {
  margin-top: 1.1rem;
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero-subrow {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  align-items: flex-start;
}

.hero-subrow-below {
  margin-top: 1.8rem;
}

.hero-subrow .hero-subtitle {
  margin-top: 0;
  flex: 1 1 420px;
  max-width: 38rem;
}

.hero-subrow .hero-flags {
  margin-top: 0;
  flex: 1 1 420px;
}

.hero-flags {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.65rem;
  justify-content: center;
  align-items: center;
}

.flag-item {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.4);
  text-align: center;
}

.flag-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: block;
}

.flag-value {
  font-size: 0.85rem;
  font-weight: 500;
}

/* Hero booking card */
.hero-panel {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  background-color: var(--bg-elevated);
  border-radius: 1.25rem;
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.25);
  width: 100%;
  max-width: 360px;
}

.hero-card h2 {
  margin: 0 0 0.9rem;
  font-size: 1.1rem;
}

.hero-card p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.hero-card .pill-grid {
  margin: 0.9rem 0 1.2rem;
}

.booking-tabs {
  display: flex;
  gap: 0.45rem;
  margin: 0.35rem 0 0.9rem;
}

.booking-tab {
  flex: 1;
  border-radius: 0.9rem;
  border: 1px solid var(--border-soft);
  background: var(--bg-soft);
  padding: 0.65rem 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: border-color 200ms ease, background 200ms ease, color 200ms ease;
}

.booking-tab:hover {
  border-color: var(--primary-deep);
}

.booking-tab.is-active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.booking-tab.is-active .booking-tab-subtext {
  color: rgba(255, 255, 255, 0.9);
}

.booking-tab-subtext {
  font-size: 0.7rem;
  letter-spacing: 0;
  text-transform: none;
  display: block;
  color: var(--text-muted);
}

.booking-tab-panels {
  margin-bottom: 0.5rem;
}

.booking-tab-panel {
  display: none;
}

.booking-tab-panel.is-active {
  display: block;
}

.buddy-panel {
  border-radius: 1rem;
  border: 1px solid rgba(14, 165, 233, 0.25);
  background: #f0f9ff;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
  margin: 0.75rem 0 1rem;
}

.addon-card {
  border-radius: 1rem;
  border: 1px solid var(--border-soft);
  background: #fff;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.addon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.addon-header h3 {
  margin: 0;
  font-size: 1rem;
}

.addon-price {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-deep);
  background: rgba(14, 116, 144, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.addon-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.addon-buddy-options {
  gap: 0.4rem;
}

.buddy-options {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.buddy-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(15, 23, 42, 0.02);
  font-weight: 600;
  font-size: 0.92rem;
}

.buddy-option input {
  accent-color: var(--primary);
}

.buddy-note-list {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: rgba(15, 23, 42, 0.8);
  font-size: 0.85rem;
}

/* -------------------------------
   Forms
---------------------------------*/
.booking-form {
  margin-top: 0.3rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.8rem;
}

.form-row-inline {
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
}

.form-row-inline .form-label {
  flex: 0 0 auto;
  min-width: 5.5rem;
  margin-bottom: 0;
}

.form-row-inline .form-input {
  flex: 1 1 auto;
}

.form-row-inline .input-with-button {
  flex: 1 1 auto;
}

.form-row-half {
  flex-direction: row;
  gap: 0.75rem;
}

.form-row-half > div {
  flex: 1;
}

.form-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.form-input {
  border-radius: 0.75rem;
  border: 1px solid var(--border-soft);
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  background-color: #f9fafb;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.18);
  background-color: #ffffff;
}

.form-input::placeholder {
  color: #94a3b8;
}

textarea.form-input {
  resize: vertical;
}

.input-with-button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.input-with-button .form-input {
  flex: 1 1 auto;
}

.input-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-soft);
  background-color: #f9fafb;
  font-size: 0.9rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.note-card {
  margin-top: 0.8rem;
}

.note-list {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.note-list li {
  margin-bottom: 0.35rem;
}

.form-hint {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.6rem;
}

.form-actions .btn {
  box-shadow: none;
  filter: none;
}

.form-actions .btn-primary,
.form-actions .btn-soft,
.form-actions .btn-outline {
  box-shadow: none;
  filter: none;
}

.form-actions .btn-soft {
  background-color: rgba(14, 165, 233, 0.16);
  border-color: rgba(14, 165, 233, 0.25);
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

.terms-check {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: var(--text-main);
  user-select: none;
}

.btn.btn-icon {
  padding: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.btn-icon svg {
  width: 22px;
  height: 22px;
}

/* Booking summary */
.booking-summary {
  border-radius: 1rem;
  background-color: #f1f5f9;
  padding: 0.8rem 0.9rem;
  margin-bottom: 0.9rem;
}

.summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.5);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

.summary-value {
  font-size: 0.9rem;
  font-weight: 500;
  text-align: right;
}

.booking-summary.compact-summary {
  display: grid;
  gap: 0.3rem;
}

.booking-summary.compact-summary .summary-route,
.booking-summary.compact-summary .summary-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.5);
}

.booking-summary.compact-summary .summary-value {
  text-align: right;
  min-width: 0;
  justify-self: end;
}

.booking-summary.compact-summary .summary-line:last-child {
  border-bottom: none;
}

.booking-summary.compact-summary .summary-route .summary-value {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.booking-summary.compact-summary .summary-label {
  text-align: left;
  justify-self: start;
}

/* -------------------------------
   Car options (Step 2)
---------------------------------*/
.car-options {
  margin-top: 0.6rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Each car type row */
label.car-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.8rem;
  border: 1px solid var(--border-soft);
  padding: 0.4rem 0.6rem;
  background-color: #f8fafc;
  cursor: pointer;
}

.car-option input[type="radio"] {
  flex: 0 0 auto;
  margin: 0;
  display: inline-block;
}

/* Text / icons / price row */
.car-main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.car-title {
  font-weight: 600;
  font-size: 0.9rem;
  flex: 0 0 auto;
}

.car-extra {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  line-height: 1;
}

.car-extra .icon {
  width: 18px;
  height: 18px;
  margin-right: 0;
  vertical-align: -3px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.car-extra .icon-wheelchair {
  stroke: #2563eb;
}

/* second .car-extra (luggage) spacing */
.car-extra + .car-extra {
  margin-left: 0.35rem;
}

/* Price pinned to right */
.car-price {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-deep);
  flex: 0 0 auto;
}

.car-option:hover {
  border-color: var(--primary);
  background-color: var(--primary-soft);
}

/* -------------------------------
   Section headers, cards, grids
---------------------------------*/
.section-header {
  text-align: left;
  margin-bottom: 2rem;
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.section-header p {
  margin: 0;
  max-width: 36rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.card {
  background-color: var(--bg-elevated);
  border-radius: 1rem;
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--border-soft);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.card-soft {
  background-color: #f8fafc;
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}

.card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.benefit-card p {
  font-size: 0.9rem;
}

/* -------------------------------
   Auth + dashboards
---------------------------------*/
.auth-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.auth-message {
  margin-top: 0.8rem;
  padding: 0.65rem 0.8rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-soft);
  background: #f8fafc;
  font-size: 0.9rem;
}

.auth-message.is-error {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(254, 226, 226, 0.7);
  color: #991b1b;
}

.auth-message.is-success {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(209, 250, 229, 0.7);
  color: #065f46;
}

.card.auth-card {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.auth-tabs {
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  margin-bottom: 1rem;
}

.auth-tab-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.auth-tab-btn.is-active {
  background: #ffffff;
  color: var(--primary-deep);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.auth-panel {
  display: none;
}

.auth-panel.is-active {
  display: block;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.btn-google:hover {
  border-color: rgba(15, 23, 42, 0.2);
  background: #f8fafc;
  color: #0f172a;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.1);
}

.btn-google svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: block;
}

.card-collapsible {
  padding: 0;
}

.card-collapsible summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.card-collapsible summary::-webkit-details-marker {
  display: none;
}

.card-collapsible summary::after {
  content: "Show";
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card-collapsible[open] summary::after {
  content: "Hide";
}

.card-collapsible[open] summary {
  border-bottom: 1px solid var(--border-soft);
}

.card-collapsible .card-body {
  padding: 0 1.3rem 1.2rem;
}

.booking-item {
  border: 1px solid var(--border-soft);
  border-radius: 0.85rem;
  background: #ffffff;
  padding: 0.65rem 0.75rem;
}

.booking-item + .booking-item {
  margin-top: 0.8rem;
}

.booking-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}

.booking-summary::-webkit-details-marker {
  display: none;
}

.booking-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1 1 auto;
  min-width: 0;
}

.booking-headline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.booking-route {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.booking-time {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.booking-leg-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.booking-cancel-btn {
  padding: 0.35rem 0.95rem;
  font-size: 0.75rem;
}

.booking-cancel-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.booking-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.booking-group-id {
  font-size: 0.78rem;
  color: var(--text-muted);
  word-break: break-all;
}

.booking-details {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  font-size: 0.88rem;
  color: var(--text-muted);
}

.booking-detail strong {
  display: block;
  color: var(--text-main);
  font-weight: 600;
}

.booking-actions {
  margin-top: 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.booking-cancel-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .booking-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .booking-meta {
    align-items: flex-start;
  }

  .booking-headline {
    width: 100%;
  }

  .booking-cancel-btn {
    margin-left: auto;
  }
}

.data-list {
  display: grid;
  gap: 0.7rem;
}

.docs-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn-attention {
  animation: btnPulse 1.25s ease-in-out infinite;
}

@keyframes btnPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.35);
  }
  60% {
    box-shadow: 0 0 0 10px rgba(14, 165, 233, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
  }
}

@media (max-width: 720px) {
  .docs-actions {
    gap: 0.75rem;
  }
  .docs-actions .btn {
    min-width: 74px;
  }
}

.data-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  border-radius: 0.8rem;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  font-size: 0.9rem;
}

.data-row strong {
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.metric-value {
  font-size: 1.4rem;
  font-weight: 700;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.span-full {
  grid-column: 1 / -1;
}

.status-select {
  min-width: 140px;
}

/* Pill grid */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill {
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.86rem;
  color: #0f172a;
  background-color: #f8fafc;
}

/* -------------------------------
   Tabs (Areas we cover)
---------------------------------*/
.tabs {
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid var(--border-soft);
  padding: 0.9rem 0.9rem 1rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.tabs input[type="radio"] {
  display: none;
}

.tabs label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.86rem;
  cursor: pointer;
  border: 1px solid transparent;
  color: var(--text-muted);
  margin-right: 0.4rem;
  margin-bottom: 0.3rem;
}

.tabs label:hover {
  background-color: var(--primary-soft);
  color: var(--primary-deep);
}

#tab-dublin:checked + label,
#tab-kildare:checked + label,
#tab-wicklow:checked + label,
#tab-meath:checked + label,
#tab-louth:checked + label {
  background-color: #e0f2fe;
  border-color: #0ea5e9;
  color: #0f172a;
}

.tabPanels {
  margin-top: 0.8rem;
}

.tabPanel {
  display: none;
}

#tab-dublin:checked ~ .tabPanels #panel-dublin,
#tab-kildare:checked ~ .tabPanels #panel-kildare,
#tab-wicklow:checked ~ .tabPanels #panel-wicklow,
#tab-meath:checked ~ .tabPanels #panel-meath,
#tab-louth:checked ~ .tabPanels #panel-louth {
  display: block;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.chip {
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.86rem;
  color: #0f172a;
  background-color: #f8fafc;
  text-decoration: none;
}

.chip:hover {
  background-color: var(--primary-soft);
  border-color: var(--primary);
}

.chipDisabled {
  color: #94a3b8;
  background-color: #f1f5f9;
  border-style: dashed;
  cursor: default;
  pointer-events: none;
}

.miniNote {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0;
}

/* -------------------------------
   Steps
---------------------------------*/
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.4rem;
}

.step {
  background-color: var(--bg-elevated);
  border-radius: 1rem;
  padding: 1.2rem 1.2rem 1.1rem;
  border: 1px solid var(--border-soft);
  position: relative;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  color: #f9fafb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* -------------------------------
   Drivers section
---------------------------------*/
.drivers-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
}

.drivers-block ul {
  margin: 0 0 0.9rem 1.2rem;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.drivers-note {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.drivers-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* -------------------------------
   FAQs
---------------------------------*/
.faq-list {
  max-width: 640px;
}

.faq-item {
  margin-bottom: 0.75rem;
  border-radius: 0.9rem;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  padding: 0.5rem 0.9rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 0.2rem 0.2rem 0.2rem 0;
  font-weight: 500;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0.1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0.35rem 0 0.2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* -------------------------------
   Contact / CTA
---------------------------------*/
.contact-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.contact-inner h2 {
  margin: 0 0 0.55rem;
  font-size: 1.4rem;
}

.contact-inner p {
  margin: 0;
  font-size: 0.95rem;
  max-width: 30rem;
  color: #e5e7eb;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: min(280px, 100%);
}

.contact-email {
  font-size: 0.9rem;
  color: #cbd5f5;
  text-decoration: none;
  text-align: center;
}

.contact-email:hover {
  text-decoration: underline;
}

/* -------------------------------
   Footer
---------------------------------*/
.site-footer {
  background-color: #020617;
  color: #9ca3af;
  padding: 1.8rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-left {
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-left .brand-name {
  color: #e5e7eb;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.footer-tagline {
  color: #e5e7eb;
}

.footer-note {
  color: #9ca3af;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-links a {
  color: #cbd5f5;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-meta {
  align-self: flex-end;
  color: #6b7280;
}

/* -------------------------------
   Responsive
---------------------------------*/
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-image {
    height: auto !important;
  }

  .hero-image img {
    height: auto;
    object-fit: contain;
  }

  .hero-panel {
    justify-content: flex-start;
  }

}

@media (max-width: 640px) {
  .header-inner {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .brand-tagline {
    display: none;
  }

  .brand-name {
    font-size: 1rem;
    letter-spacing: 0.03em;
  }

  .nav-cta .btn,
  .menu-toggle {
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
  }

  .hero-flags {
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 2.6rem;
  }

  .form-row-half {
    flex-direction: column;
  }

  .form-row-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .form-row-inline .form-label {
    min-width: 0;
  }

  .drivers-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .menu-dropdown {
    right: 0.75rem;
  }

  .car-main {
    flex-wrap: wrap;
  }

  .car-price {
    margin-left: auto;
  }

  .booking-tabs {
    background: rgba(15, 23, 42, 0.04);
    padding: 0.25rem;
    border-radius: 999px;
    gap: 0.3rem;
  }

  .booking-tab {
    border: 0;
    background: transparent;
    min-height: 44px;
    padding: 0.55rem 0.9rem;
    flex-direction: row;
    justify-content: center;
  }

  .booking-tab.is-active {
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
  }

}

/* -------------------------------
   Desktop / laptop layout & font bump
---------------------------------*/
@media (min-width: 1024px) {
  .container {
    max-width: 100%;
    padding: 0 3rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: center;
  }

  .hero-card {
    max-width: 440px;
  }

  /* font-size bump on desktop */
  body {
    font-size: 1rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 2.2vw + 1.3rem, 3.1rem);
  }

  .hero-subtitle {
    font-size: 1.02rem;
  }

  .section-header h2 {
    font-size: 1.7rem;
  }

  .section-header p,
  .card p,
  .step p,
  .benefit-card p {
    font-size: 0.98rem;
  }

  .form-input {
    font-size: 0.95rem;
  }

  .summary-value,
  .car-title,
  .car-price {
    font-size: 0.95rem;
  }
}

/* Very wide screens – a little extra breathing room */
@media (min-width: 1440px) {
  .container {
    padding: 0 4rem;
  }
}

#carBookingFormTitle,
#buddyBookingFormTitle {
  scroll-margin-top: 160px;
}

.site-footer-strip {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border-soft);
  background: #f8fafc;
  color: #334155;
}

.footer-strip-inner {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  flex-wrap: wrap;
}

.footer-strip-note {
  font-size: 0.92rem;
}

.footer-strip-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .footer-strip-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-strip-note {
    font-size: 0.88rem;
  }
}
