/* ==========================================================================
   Booking page — form styling on top of the site's tokens
   ========================================================================== */

.booking-page {
  background:
    radial-gradient(90rem 40rem at 90% -10%, rgba(23, 195, 214, 0.1), transparent 60%),
    radial-gradient(70rem 36rem at -10% 0%, rgba(255, 212, 41, 0.1), transparent 55%),
    var(--sand-50);
  min-height: 100vh;
}

.booking {
  padding-bottom: var(--space-2xl);
}

.booking__inner {
  max-width: 54rem;
  /* Starts below the hero's wave. Pulling it up tucks the tour/transfer
     switch underneath the wave, where it becomes unreadable. */
  padding-top: clamp(1rem, 2.5vw, 1.75rem);
  position: relative;
  z-index: 2;
}

/* ---- Page hero ---------------------------------------------------------- */

.pagehero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: clamp(19rem, 34vw, 27rem);
  padding-top: calc(var(--header-h) + clamp(1.5rem, 4vw, 3rem));
  padding-bottom: clamp(4.5rem, 9vw, 8rem);
  color: var(--white);
}

.pagehero__media,
.pagehero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.pagehero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.pagehero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Pulled right and down so the crop lands on the turquoise shelf and the
     coastline rather than open water. */
  object-position: 78% 62%;
}

.pagehero__scrim {
  background:
    linear-gradient(to bottom, rgba(6, 28, 56, 0.42) 0%, rgba(6, 28, 56, 0) 42%),
    linear-gradient(100deg, rgba(6, 28, 56, 0.66) 0%,
                            rgba(6, 28, 56, 0.4) 42%,
                            rgba(6, 28, 56, 0.08) 78%,
                            rgba(6, 28, 56, 0) 100%);
}

.pagehero__eyebrow {
  color: var(--turq-300);
  margin-bottom: var(--space-sm);
}

.pagehero__title {
  font-size: var(--fs-h2);
  color: var(--white);
  margin-bottom: var(--space-sm);
  max-width: 24ch;
  text-shadow: 0 8px 30px rgba(6, 28, 56, 0.4);
}

.pagehero__lede {
  color: rgba(255, 255, 255, 0.92);
  max-width: 42rem;
  text-shadow: 0 4px 18px rgba(6, 28, 56, 0.4);
}

.pagehero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
  width: 100%;
  height: clamp(40px, 6vw, 92px);
  pointer-events: none;
}

.booking__title {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-sm);
}

/* ---- Tour / transfer switch --------------------------------------------- */

.booking__switch {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  margin-bottom: var(--space-md);
  background: rgba(10, 42, 80, 0.06);
  border-radius: var(--r-pill);
}

.booking__switchOption {
  padding: 0.7rem 1.35rem;
  border-radius: var(--r-pill);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy-500);
  transition: background-color var(--t-base) var(--ease-soft),
              color var(--t-base) var(--ease-soft);
}

.booking__switchOption:hover { color: var(--navy-800); }

.booking__switchOption.is-active {
  background: var(--navy-800);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

/* ---- Form --------------------------------------------------------------- */

.booking__form {
  padding: clamp(1.25rem, 4vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.bf {
  display: block;
  margin-bottom: var(--space-md);
  border: 0;
  padding: 0;
  min-width: 0;   /* lets a fieldset shrink inside a grid */
}

.bf__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--navy-800);
}

.bf__input {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--navy-800);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast) var(--ease-soft),
              box-shadow var(--t-fast) var(--ease-soft);
}

.bf__input:focus {
  outline: none;
  border-color: var(--turq-500);
  box-shadow: 0 0 0 4px rgba(23, 195, 214, 0.16);
}

textarea.bf__input { resize: vertical; min-height: 6rem; }

.bf__hint,
.bf__error {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8125rem;
}

.bf__hint { color: var(--navy-500); }

.bf__error { color: var(--coral-500); font-weight: 700; }

.bf.is-invalid .bf__input {
  border-color: var(--coral-500);
  background: #FFF7F6;
}

.bf-row {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .bf-row { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Radio choices ------------------------------------------------------ */

.bf__choices {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .bf__choices { grid-template-columns: 1fr 1fr; }
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease-soft),
              background-color var(--t-fast) var(--ease-soft);
}

.choice:hover { border-color: var(--turq-300); }

.choice:has(input:checked) {
  border-color: var(--turq-500);
  background: var(--turq-100);
}

.choice input { accent-color: var(--turq-600); width: 1.1rem; height: 1.1rem; }

/* ---- Honeypot: off-screen, never shown, never announced ----------------- */

.booking__pot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- Submit ------------------------------------------------------------- */

.booking__submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
  padding-top: var(--space-xs);
}

.booking__note {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--navy-500);
  max-width: 28rem;
}

.booking__alert {
  margin-bottom: var(--space-md);
  padding: 0.9rem 1.15rem;
  border-radius: var(--r-md);
  background: #FEECEA;
  border: 1px solid #F6C7C2;
  color: #A32017;
  font-weight: 600;
}

/* ---- Confirmation ------------------------------------------------------- */

.booking__done {
  padding: clamp(1.75rem, 5vw, 3rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.booking__tick {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-md);
  border-radius: 50%;
  background: var(--turq-100);
  color: var(--turq-600);
}

.booking__tick svg { width: 28px; height: 28px; }

.booking__ref {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  margin: var(--space-md) 0;
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-pill);
  background: var(--navy-800);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
}

.booking__ref strong {
  color: var(--yellow-500);
  font-size: 1.0625rem;
  letter-spacing: 0.04em;
}

.booking__summary {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 var(--space-md);
  padding: var(--space-md) 0;
  border-block: 1px solid var(--line);
}

.booking__summary div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.booking__summary dt {
  flex: 0 0 11rem;
  font-weight: 700;
  color: var(--navy-500);
}

.booking__summary dd { margin: 0; font-weight: 600; }

.booking__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* ---- Footer ------------------------------------------------------------- */

.booking__foot {
  padding-block: var(--space-md);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.booking__foot .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-lg);
  font-size: 0.9rem;
  color: var(--navy-500);
}

.booking__foot a:hover { color: var(--turq-600); }

/* A quieter secondary button for light backgrounds */
.btn--soft-navy {
  background: transparent;
  color: var(--navy-800);
  border: 2px solid rgba(10, 42, 80, 0.2);
}

.btn--soft-navy:hover,
.btn--soft-navy:focus-visible {
  border-color: var(--navy-800);
  background: rgba(10, 42, 80, 0.05);
}
