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

/* ===== PAGE WIDTH LOCK ===== */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

img,
video,
iframe {
  max-width: 100%;
}

.page-booking {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.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.1);
  backdrop-filter: blur(8px);
}

/* Make burger visible on white background */
@media (max-width: 950px) {
  .page-booking .menu-toggle span {
    background: #000 !important;
  }
}

/* ===== PAGE WRAPPER ===== */
.booking-page {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 140px 1.25rem 4rem;
  overflow-x: hidden;
}

/* ===== 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 {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 1.6rem;
  align-items: start;
}

/* ===== CARDS ===== */
.booking-card,
.booking-side-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: #f6f6f6;
  border-radius: 22px;
  padding: 1.8rem 1.6rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.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%;
  max-width: 100%;
  min-width: 0;
  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 {
  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: minmax(0, 1fr) minmax(0, 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;
  min-width: 0;
}

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

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

/* ===== DATE RANGE ===== */
.date-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

/* MTB Holiday stay dates: From / Until */
.stay-range,
.date-range.stay-range,
.stay-range.date-range-triplets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

.date-triplet-stack {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
}

.date-sep {
  align-self: center;
  transform: none;
  font-weight: 900;
  opacity: 0.8;
  white-space: nowrap;
}

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

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

.date-triplet {
  display: grid;
  grid-template-columns: minmax(54px, 1fr) minmax(54px, 1fr) minmax(86px, 1.4fr);
  gap: 0.55rem;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

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

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

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

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

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

.phone-split .iti {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: 140px minmax(0, 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%;
  min-width: 0;
  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;
}

/* ===== RIDER BLOCKS ===== */
.riders-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rider-block {
  width: 100%;
  max-width: 100%;
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 18px;
  padding: 1.2rem 1.1rem;
  overflow: hidden;
}

.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: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.9rem;
}

.row-3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.9rem;
}

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

.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;
}

.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;
  flex: 0 0 auto;
}

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

/* ===== PROTECTION CARD ===== */
.protection-card {
  display: grid;
  grid-template-columns: 22px minmax(0, 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;
}

/* ===== SUBMIT ===== */
.booking-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-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 ===== */
.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.1);
  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%;
  max-width: 100%;
  background: #000;
  color: #fff;
  text-align: center;
  padding: 1.5rem 1rem 1.8rem;
  margin-top: 4rem;
  overflow: hidden;
}

.footer-legal {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  line-height: 1.6;
  text-decoration: none;
  border-bottom: none;
  outline: none;
}

.footer-legal span,
.footer-legal a,
.footer-link {
  text-decoration: none;
  border-bottom: none;
  outline: none;
}

.footer-link {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

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

/* ===== FOOTER PARTNERS ===== */
.footer-partners {
  width: 100%;
  max-width: 100%;
  text-align: center;
  margin-bottom: 1.2rem;
  overflow: visible;
}

.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: repeat(3, minmax(0, 1fr));
  align-items: center;
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  column-gap: 2rem;
  overflow: visible;
}

.footer-logos a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: visible;
}

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

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

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

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

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

/* =========================
   DESKTOP
   ========================= */

@media (min-width: 901px) {
  .booking-side {
    position: sticky;
    top: 110px;
  }
}

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

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

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

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

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

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

  .date-triplet {
    grid-template-columns: minmax(48px, 1fr) minmax(48px, 1fr) minmax(
        78px,
        1.4fr
      );
    gap: 0.4rem;
  }

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

  .date-triplet input {
    font-size: 0.85rem;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
  }

  .phone-split .iti {
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 0.65rem;
  }

  .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.6rem !important;
  }

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

  .terms-check {
    gap: 0.45rem;
    font-size: 0.82rem;
    line-height: 1.35;
  }

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

@media (max-width: 700px) {
  html,
  body,
  .page-booking,
  main,
  section,
  form,
  .booking-page,
  .booking-hero,
  .booking-grid,
  .booking-card,
  .booking-side,
  .booking-side-card,
  .rider-block,
  .site-footer {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    touch-action: pan-y;
  }

  .booking-page {
    padding: 120px 1rem 3.5rem;
  }

  .booking-hero h1 {
    font-size: 2.35rem;
    line-height: 1.15;
  }

  .booking-hero p,
  .booking-side-card p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .booking-card,
  .booking-side-card {
    padding: 1.35rem 1rem;
  }

  .booking-card h2,
  .booking-side-card h2 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .booking-btn {
    width: 100%;
  }

  .footer-logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 0.75rem;
    max-width: 100%;
    padding: 0 0.25rem;
  }
}

@media (max-width: 600px) {
  .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;
  }
}

/* ===== KEEP MOBILE FOOTER LOGO SIZES CONSISTENT ACROSS ALL PAGES ===== */
@media (max-width: 700px) {
  .site-footer .footer-logos img[alt="ION"] {
    height: 76px !important;
    max-height: none !important;
    max-width: 120px !important;
  }

  .site-footer .footer-logos img[alt="SolarGuard"] {
    height: 50px !important;
    max-height: none !important;
    max-width: 110px !important;
  }

  .site-footer .footer-logos img[alt="ROC Bike Customs"] {
    height: 28px !important;
    max-height: none !important;
    max-width: 120px !important;
  }
}

/* ===== MOBILE MENU: STAY VISIBLE AFTER SCROLL ===== */
@media (max-width: 950px) {
  .navbar,
  .navbar.solid,
  .nav-bar {
    overflow: visible !important;
  }

  .navbar.solid {
    backdrop-filter: none !important;
  }

  .mobile-menu {
    position: fixed !important;
    z-index: 99999 !important;
    display: none;
    overflow: visible !important;
  }
}
