/* =========================
   BOOKING PAGE
   ========================= */

/* Navbar behavior for white pages */
.page-booking .nav-links a {
  color: #000 !important;
}

.page-booking .logo {
  filter: brightness(0) invert(0) !important;
}

.page-booking .navbar {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.page-booking .navbar.solid {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
  backdrop-filter: blur(8px);
}

/* Page wrapper */
.booking-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 140px 1.25rem 4rem;
}

/* Hero */
.booking-hero {
  text-align: center;
  margin-bottom: 2.2rem;
}

.booking-hero h1 {
  font-family: "Permanent Marker", cursive;
  font-size: 2.8rem;
  margin: 0 0 0.75rem;
}

.booking-hero p {
  line-height: 1.85;
  color: #222;
  max-width: 760px;
  margin: 0 auto;
}

/* Layout grid */
.booking-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.6rem;
  align-items: start;
}

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

/* Cards */
.booking-card,
.booking-side-card {
  background: #f6f6f6;
  border-radius: 22px;
  padding: 1.8rem 1.6rem;
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
}

.booking-card h2,
.booking-side-card h2 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
  font-size: 2rem;
  margin: 0 0 1rem;
}

.booking-side-card h3 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
  font-size: 1.4rem;
  margin: 0 0 0.4rem;
}

/* Form base */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.field span {
  font-weight: 800;
  font-size: 0.95rem;
  color: #111;
}

/* Inputs */
.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  border: 2px solid rgba(0,0,0,0.14);
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
  font-family: "Fira Mono", monospace;
  font-size: 0.95rem;
  outline: none;
  background: #fff;
}

.booking-form textarea {
  resize: vertical;
  min-height: 120px;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  border-color: rgba(0,0,0,0.45);
}

#lockedTourDisplay {
  background: #efefef;
  color: #111;
  font-weight: 700;
  cursor: default;
}

/* Section headings inside form */
.section-divider {
  height: 1px;
  background: rgba(0,0,0,0.12);
  margin: 0.6rem 0 0.2rem;
}

.section-title {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
  font-size: 1.65rem;
  margin: 0.6rem 0 0.2rem;
}

/* Help text */
.help {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.55;
}

/* Date mode toggle */
.date-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.date-mode-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
  border: 2px solid rgba(0,0,0,0.14);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.date-mode-option input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #000;
}

.date-mode-option span {
  font-weight: 800;
  font-size: 0.95rem;
  color: #111;
}

@media (max-width: 520px) {
  .date-mode-toggle {
    grid-template-columns: 1fr;
  }
}

/* Date range */
.date-sep {
  font-weight: 900;
  opacity: 0.8;
}

.stay-range {
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  align-items: start;
}

.date-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.8rem;
  align-items: start; /* keep stacks aligned from top */
}

.date-triplet-stack {
  display: grid;
  grid-template-rows: auto auto; /* label + inputs */
}

.date-sep {
  align-self: end; /* 👈 this is the key */
  transform: translateY(-85%);
  font-weight: 900;
  opacity: 0.8;
}

.date-label-top {
  font-weight: 800;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: -0.45rem;
  line-height: 1;
}

.date-range-triplets {
  align-items: start;
}

.date-triplet-stack {
  display: grid;
  gap: 0.45rem;
}

.date-triplet {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) minmax(70px, 1fr) minmax(110px, 1.4fr);
  gap: 0.6rem;
  align-items: center;
}

.date-triplet input {
  width: 100%;
  min-width: 0;
  text-align: center;
  letter-spacing: 0.04em;
}

.date-triplet input {
  text-align: center;
  letter-spacing: 0.04em;
}

.date-triplet input[data-date-part="day"],
.date-triplet input[data-date-part="month"] {
  min-width: 0;
}

.date-triplet input[data-date-part="year"] {
  min-width: 0;
}

.rider-block .phone-error {
  min-height: 0;
  margin-top: 0.1rem;
}

.rider-block .field {
  margin-bottom: 0.75rem;
}

.rider-block .date-triplet {
  margin-top: 0;
}

.date-triplet-error {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.4;
  color: #b00020;
}

@media (max-width: 520px) {
  .date-range {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .date-sep {
    text-align: center;
    transform: none;
  }

  .stay-range {
    grid-template-columns: 1fr;
  }

  .date-triplet {
    grid-template-columns: minmax(72px, 1fr) minmax(72px, 1fr) minmax(110px, 1.5fr);
    gap: 0.7rem;
  }
}

.special-tour-fields,
#standardBookingFlow {
  display: grid;
  gap: 0.9rem;
}

.extra-number-field {
  margin-top: -0.25rem;
}

/* =========================
   PHONE
   ========================= */

.phone-split .iti {
  width: 100%;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.8rem;
  align-items: stretch;
}

.phone-split .iti * {
  box-sizing: border-box;
}

.phone-split .iti__selected-country {
  width: 100%;
  height: 54px;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.55rem;
  padding: 0 0.85rem !important;
  background: #fff !important;
  border: 2px solid rgba(0,0,0,0.14) !important;
  border-radius: 14px !important;
}

.phone-split .iti__flag {
  transform: scale(1.05);
}

.phone-split .iti__arrow {
  margin-left: 0.3rem !important;
  opacity: 0.8;
}

.phone-split .iti__selected-dial-code {
  font-family: "Fira Mono", monospace;
  font-weight: 800;
  font-size: 0.95rem;
  color: #111;
}

.phone-split .iti input[type="tel"] {
  height: 54px;
  width: 100%;
  padding-left: 0.9rem !important;
  border: 2px solid rgba(0,0,0,0.14);
  border-radius: 14px;
  font-family: "Fira Mono", monospace;
  font-size: 0.95rem;
  outline: none;
  background: #fff;
  grid-column: 2;
  grid-row: 1;
}

.phone-split .iti input[type="tel"]:focus {
  border-color: rgba(0,0,0,0.45);
}

.phone-split .iti__flag-container {
  position: static !important;
  grid-column: 1;
  grid-row: 1;
  height: 54px;
}

.iti__country-list {
  z-index: 9999 !important;
}

@media (max-width: 520px) {
  .phone-split .iti {
    grid-template-columns: 115px minmax(0, 1fr);
    gap: 0.9rem;
  }

  .phone-split .iti__flag-container {
    position: static !important;
    grid-column: 1;
    grid-row: 1;
    width: 105px;
    height: 54px;
  }

  .phone-split .iti__selected-country {
    width: 100%;
    height: 54px;
    padding: 0 0.65rem !important;
  }

  .phone-split .iti input[type="tel"] {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    padding-left: 0.9rem !important;
  }
}

/* Rider blocks */
.riders-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rider-block {
  background: #fff;
  border: 2px solid rgba(0,0,0,0.10);
  border-radius: 18px;
  padding: 1.2rem 1.1rem;
}

.rider-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.rider-block h3 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
  font-size: 1.55rem;
  margin: 0;
}

.rider-tag {
  font-family: "Fira Mono", monospace;
  font-size: 0.85rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0.18);
  opacity: 0.9;
}

.rider-tag.on {
  background: #000;
  color: #fff;
  border-color: #000;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.9rem;
}

.row-3 .date-triplet {
  grid-template-columns: minmax(70px, 1fr) minmax(70px, 1fr) minmax(110px, 1.4fr);
}

@media (max-width: 650px) {
  .row-3 {
    grid-template-columns: 1fr;
  }

  .row-2 {
    grid-template-columns: 1fr;
  }
}

.same-contact-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.same-contact-check input {
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
}

.readonly-field {
  background: #f2f2f2 !important;
}

.protection-card {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 1rem;
  background: #fff;
  border: 2px solid rgba(0,0,0,0.12);
  border-radius: 18px;
  margin-bottom: 0.9rem;
  cursor: pointer;
}

.protection-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
}

.protection-card-copy {
  display: grid;
  gap: 0.2rem;
}

.protection-card input[type="checkbox"]:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.protection-card a,
.protection-card a:visited {
  color: #000;
  font-weight: 900;
  text-decoration: underline;
}

.protection-card a:hover {
  opacity: 0.7;
}

.protection-title {
  font-weight: 900;
  font-size: 1rem;
  color: #111;
  line-height: 1.4;
}

/* Terms */
.terms-check {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.15rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #222;
}

.terms-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
}

.terms-text {
  display: inline;
}

.terms-check a {
  color: #000;
  font-weight: 900;
  text-decoration: underline;
}

@media (max-width: 520px) {
  .terms-check {
    gap: 0.45rem;
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .terms-check input {
    width: 16px;
    height: 16px;
  }
}

/* Submit */
.booking-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 1.6rem;
  border-radius: 999px;
  border: 2px solid #000;
  background: #000;
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.booking-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
  background: #111;
}

.booking-note {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.6;
}

.form-status {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 700;
}

.form-status.success {
  color: #0a7a32;
}

.form-status.error {
  color: #b00020;
}

.success-modal[hidden] {
  display: none;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.45);
}

.success-modal-card {
  width: min(100%, 520px);
  background: #fff;
  border-radius: 22px;
  padding: 1.6rem 1.4rem;
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
  text-align: center;
}

.success-modal-card h3 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
  font-size: 2rem;
  margin: 0 0 0.6rem;
}

.success-modal-card p {
  margin: 0 0 1.2rem;
  line-height: 1.7;
  color: #222;
}

/* Side card */
.booking-side-card p {
  line-height: 1.8;
  color: #222;
  margin: 0 0 0.4rem;
}

.booking-side-card .small {
  font-size: 0.95rem;
  opacity: 0.9;
}

.booking-divider {
  height: 1px;
  background: rgba(0,0,0,0.10);
  margin: 1.2rem 0 1.1rem;
}

/* Phone error */
.phone-error {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.4;
  color: #b00020;
  min-height: 1.2em;
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
  width: 100%;
  background: #000;
  color: #fff;
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 4rem;
}

.footer-legal {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.footer-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.footer-link:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .footer-legal {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .footer-legal .footer-break {
    display: block;
    height: 0;
  }

  .footer-legal .footer-sep {
    display: none;
  }
}

@media (min-width: 601px) {
  .footer-legal .footer-break {
    display: none;
  }

  .footer-legal .footer-sep {
    display: inline;
  }
}

.footer-link {
  white-space: nowrap;
}

/* =========================
   FOOTER PARTNERS
   ========================= */

.footer-partners {
  text-align: center;
  margin-bottom: 1.2rem;
}

.footer-partners-title {
  font-size: 0.85rem;
  letter-spacing: 1px;
  opacity: 0.7;
  margin: 0 0 0.75rem 0;
}

.footer-logos {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  column-gap: 3rem;
}

.footer-logos a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-logos a:nth-child(1) {
  justify-self: end;
}

.footer-logos a:nth-child(2) {
  justify-self: center;
}

.footer-logos a:nth-child(3) {
  justify-self: start;
}

.footer-logos img {
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-logos img[alt="SolarGuard"] {
  height: 72px;
}

.footer-logos img[alt="ION"] {
  height: 155px;
}

.footer-logos img[alt="ROC Bike Customs"] {
  height: 38px;
}

.footer-logos img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

@media (max-width: 700px) {
  .footer-logos {
    gap: 1.4rem;
  }

  .footer-logos img {
    height: 32px;
    max-width: 120px;
  }
}

/* Desktop safety: never let side logos stretch layout */
@media (min-width: 901px) {
  .booking-side {
    position: sticky;
    top: 110px;
  }
}