:root {
  --orange: #f58220;
  --orange-dark: #d9680f;
  --green: #1f9d62;
  --green-dark: #167a4c;
  --navy: #10243b;
  --blue: #1d5d8f;
  --bg: #f4f7fa;
  --text: #142033;
  --muted: #667085;
  --line: #d9e1e8;
  --white: #ffffff;
  --success: #1c9a66;
  --shadow: 0 20px 55px rgba(16, 36, 59, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

button, input, select, textarea { font: inherit; }
.page-shell { min-height: 100vh; }

.hero {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(120deg, rgba(8, 25, 44, 0.84), rgba(12, 58, 92, 0.34)),
    url("hero-van.png") center/cover;
  color: white;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -110px -10%;
  height: 170px;
  background: var(--bg);
  transform: rotate(-2deg);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 55px 0 95px;
}

.brand {
  display: inline-block;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 52px;
}

.brand span { color: #ffb36f; }
.eyebrow, .section-kicker {
  margin: 0 0 10px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--orange);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: .98;
  letter-spacing: -.05em;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 20px;
  font-size: 1.12rem;
  line-height: 1.7;
  color: rgba(255,255,255,.88);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-weight: 600;
}

.booking-wrap {
  position: relative;
  z-index: 4;
  width: min(1180px, calc(100% - 32px));
  margin: -75px auto 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.booking-card, .info-card, .confirmation-card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.booking-card { padding: 34px; }

.step-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: white;
  font-weight: 800;
  margin-bottom: 16px;
}

.step-badge.second { margin-top: 30px; }
.section-heading h2 {
  margin: 0 0 28px;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -.03em;
}

.section-heading.compact h2 { margin-bottom: 20px; }

.field-grid {
  display: grid;
  gap: 16px;
  align-items: end;
}

.two-cols-no-swap { grid-template-columns: 1fr 1fr; }
.two-cols-simple { grid-template-columns: 1fr 1fr; }
.three-cols { grid-template-columns: 1fr 1fr 1.2fr; }

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.field > span {
  font-size: .83rem;
  font-weight: 700;
  color: #344054;
}

.field em {
  font-weight: 500;
  color: var(--muted);
  font-style: normal;
}

.help-text {
  font-size: .77rem;
  color: var(--muted);
  line-height: 1.45;
}

.success-text { color: var(--green-dark); font-weight: 700; }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  color: var(--text);
  padding: 14px;
  outline: none;
  transition: border .2s, box-shadow .2s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(245,130,32,.12);
}

.trip-type-options {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f2f5f7;
}

.trip-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.trip-type-label {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 11px;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.trip-type-label:hover {
  background: rgba(31,157,98,.08);
}

.trip-radio:checked + .trip-type-label {
  background: var(--green);
  color: white;
  box-shadow: 0 8px 20px rgba(31,157,98,.26);
}

.trip-radio:focus-visible + .trip-type-label {
  outline: 3px solid rgba(31,157,98,.22);
  outline-offset: 2px;
}

.passenger-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.passenger-btn {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  padding: 15px 10px;
  cursor: pointer;
  color: var(--text);
  transition: .2s;
}

.passenger-btn strong, .passenger-btn small { display: block; }
.passenger-btn strong { font-size: 1.15rem; }
.passenger-btn small { color: var(--muted); margin-top: 3px; }

.passenger-btn:hover,
.passenger-btn.active {
  border-color: var(--orange);
  background: rgba(245,130,32,.08);
  box-shadow: 0 0 0 3px rgba(245,130,32,.10);
}

.journey-block {
  padding: 18px 18px 2px;
  margin: 8px 0 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfd;
}

.journey-block h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.extras-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.price-card {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 22px;
  align-items: start;
  margin: 10px 0 22px;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #10243b, #1d5d8f);
  color: white;
}

.route-info p {
  margin: 0 0 5px;
  color: rgba(255,255,255,.72);
  font-size: .78rem;
  text-transform: uppercase;
}

.route-info h3 { margin: 0 0 5px; font-size: 1.06rem; }
.route-info span { font-size: .86rem; color: rgba(255,255,255,.76); }

.price-summary {
  border-left: 1px solid rgba(255,255,255,.18);
  padding-left: 20px;
}

.price-line, .price-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  font-size: .86rem;
}

.price-line span { color: rgba(255,255,255,.76); }
.price-total {
  margin-top: 8px;
  padding-top: 13px;
  border-top: 1px solid rgba(255,255,255,.22);
  align-items: end;
}

.price-total span { font-weight: 700; }
.price-total strong { font-size: 1.8rem; }

.primary-btn, .secondary-btn {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 15px 20px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s, opacity .2s, background .2s;
}

.primary-btn {
  background: var(--orange);
  color: white;
  box-shadow: 0 10px 25px rgba(245,130,32,.28);
}

.primary-btn:hover:not(:disabled) {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.primary-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}

.secondary-btn {
  background: #eef3f7;
  color: var(--navy);
}

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

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 5px 0 22px;
  font-size: .83rem;
  line-height: 1.5;
  color: var(--muted);
}

.consent input { width: auto; margin-top: 3px; }
.side-panel { display: grid; gap: 16px; }
.info-card { padding: 24px; }

.info-card .icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(245,130,32,.12);
  color: var(--orange);
  font-weight: 800;
  margin-bottom: 15px;
}

.info-card h3 { margin: 0 0 8px; font-size: 1rem; }
.info-card p { margin: 0; color: var(--muted); line-height: 1.6; font-size: .9rem; }

.form-error {
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fecdca;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: .85rem;
}

.confirmation {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto 70px;
}

.confirmation-card {
  text-align: center;
  padding: 48px 30px;
}

.check {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  background: rgba(28,154,102,.12);
  color: var(--success);
  font-size: 2rem;
  font-weight: 900;
}

.confirmation-card h2 { margin: 0 0 10px; font-size: 2rem; }
.confirmation-card > p { color: var(--muted); }

.reference-box {
  margin: 24px auto;
  width: min(320px, 100%);
  padding: 16px;
  border-radius: 14px;
  background: #f6f8fa;
}

.reference-box small, .reference-box strong { display: block; }
.reference-box strong { margin-top: 5px; font-size: 1.25rem; letter-spacing: .06em; }
.small-note { font-size: .83rem; line-height: 1.6; }

footer {
  padding: 30px 20px 45px;
  text-align: center;
  color: var(--muted);
  font-size: .82rem;
}

footer strong, footer span { display: block; }
footer strong { color: var(--navy); margin-bottom: 5px; }
.hidden { display: none !important; }

@media (max-width: 900px) {
  .booking-wrap { grid-template-columns: 1fr; }
  .side-panel { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .hero { min-height: 390px; }
  .hero-content { padding-top: 34px; }
  .brand { margin-bottom: 36px; }
  .hero h1 { font-size: 2.7rem; }
  .booking-wrap { margin-top: -55px; }
  .booking-card { padding: 24px 18px; border-radius: 20px; }

  .two-cols-no-swap,
  .three-cols,
  .two-cols-simple,
  .extras-grid {
    grid-template-columns: 1fr;
  }

  .passenger-options { gap: 8px; }
  .passenger-btn { padding: 13px 4px; }
  .passenger-btn strong { font-size: 1rem; }
  .passenger-btn small { font-size: .7rem; }

  .price-card { grid-template-columns: 1fr; }
  .price-summary {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.18);
    padding-left: 0;
    padding-top: 14px;
  }

  .side-panel { grid-template-columns: 1fr; }
}

.form-help {
  margin: -4px 0 16px;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--muted);
}

.route-help {
  margin: -6px 0 20px;
  font-size: .8rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 720px) {
  .trip-type-options { grid-template-columns: 1fr; }
  .trip-type-label { min-height: 46px; }
}


/* Round-trip saving highlight */
.trip-type-round {
  gap: 3px;
  line-height: 1.05;
}

.round-discount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .01em;
  white-space: nowrap;
}

.trip-radio:not(:checked) + .trip-type-round .round-discount-badge {
  background: rgba(31,157,98,.12);
  color: var(--green);
}

/* Floating price bar: appears as soon as a valid price can be calculated */
.floating-price {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(700px, calc(100% - 28px));
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: linear-gradient(135deg, #10243b, #1d5d8f);
  color: #fff;
  box-shadow: 0 16px 45px rgba(16,36,59,.32);
  animation: floatingPriceIn .22s ease-out;
}

.floating-price-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
}

.floating-price-head {
  min-width: 145px;
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 10px;
  row-gap: 2px;
}

.floating-price-head small {
  color: rgba(255,255,255,.72);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.floating-price-head strong {
  font-size: 1.45rem;
  line-height: 1;
}

.floating-discount {
  grid-column: 1 / -1;
  margin-top: 2px;
  color: #bff0d5;
  font-size: .76rem;
  font-weight: 800;
}

.floating-price-message {
  margin: 0;
  padding-left: 18px;
  border-left: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.88);
  font-size: .79rem;
  line-height: 1.42;
}

.floating-price-message strong {
  color: #fff;
  font-weight: 800;
}

body.has-floating-price {
  padding-bottom: 126px;
}

@keyframes floatingPriceIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 620px) {
  .floating-price {
    bottom: 10px;
    width: calc(100% - 20px);
    padding: 12px 14px;
    border-radius: 15px;
  }

  .floating-price-copy {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .floating-price-head {
    min-width: 0;
  }

  .floating-price-head strong {
    font-size: 1.75rem;
  }

  .floating-discount {
    font-size: .68rem;
  }

  .floating-price-message {
    padding-left: 0;
    padding-top: 8px;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.18);
    font-size: .86rem;
    line-height: 1.4;
  }

  body.has-floating-price {
    padding-bottom: 172px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-price { animation: none; }
  html { scroll-behavior: auto; }
}

/* v6: keep Round trip + Save 5% on one line */
.trip-type-round {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 7px;
  line-height: 1.2;
}

.trip-type-round .round-discount-badge {
  flex: 0 0 auto;
}
