/* Booking modal — a focused, polished surface that matches the oceanic site */

#bookingModal.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 24px;
  background: rgba(2, 11, 18, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#bookingModal.booking-modal.flex { display: flex; }

#bookingModal .booking-form {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 32px 36px 36px;
  color: #eef8ff;
  border: 1px solid rgba(111, 203, 255, .28);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(76, 201, 255, .15), transparent 34%),
    linear-gradient(145deg, #102f63 0%, #0a2554 55%, #071a3a 100%);
  box-shadow: 0 28px 90px rgba(0, 10, 28, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
  scrollbar-color: rgba(145, 213, 255, .65) rgba(255, 255, 255, .08);
  scrollbar-width: thin;
  animation: modalIn .35s cubic-bezier(.2, .8, .2, 1) both;
}

#bookingModal .booking-form::before {
  content: '';
  position: absolute;
  top: 0;
  right: 36px;
  left: 36px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3f83ff, #55ddff);
  opacity: .9;
}

#bookingModal .booking-form > .section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  color: #a9eaff;
  border: 1px solid rgba(85, 221, 255, .28);
  border-radius: 999px;
  background: rgba(52, 169, 255, .1);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

#bookingModal #closeModalBtn.booking-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 13px;
  background: rgba(255, 255, 255, .1);
  cursor: pointer;
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

#bookingModal #closeModalBtn.booking-close:hover,
#bookingModal #closeModalBtn.booking-close:focus-visible {
  color: #fff;
  border-color: rgba(118, 227, 255, .8);
  background: rgba(85, 221, 255, .2);
  outline: 0;
  transform: scale(1.04);
}

#bookingModal #bookingTitle {
  max-width: calc(100% - 58px);
  margin: 22px 0 0;
  color: #fff;
  font: 700 clamp(1.65rem, 4vw, 2rem)/1.08 'Space Grotesk', sans-serif;
  letter-spacing: -.04em;
}

#bookingModal .booking-form > p.mt-2 {
  margin: 12px 0 0;
  color: #a9bfd6;
  font-size: 14px;
  line-height: 1.6;
}

#bookingModal .booking-source {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 13px 15px;
  color: #9bb9d5;
  border: 1px solid rgba(91, 184, 255, .24);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(241, 249, 255, .98), rgba(220, 238, 255, .96));
  box-shadow: 0 10px 24px rgba(0, 10, 30, .12);
  font-size: 12px;
  line-height: 1.4;
}

#bookingModal .booking-source > span:first-child {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  color: #1769c2;
  border-radius: 9px;
  background: #bfe9ff;
  font-size: 16px;
  font-weight: 800;
}

#bookingModal .booking-source strong,
#bookingModal #bookingSourceName {
  display: block;
}

#bookingModal .booking-source strong {
  color: #163c62;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

#bookingModal #bookingSourceName {
  margin-top: 2px;
  color: #55718e;
}

#bookingModal #modalForm {
  display: grid;
  gap: 17px;
  margin-top: 22px;
}

/* Neutralise utility spacing so every field follows the same grid rhythm. */
#bookingModal #modalForm > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0;
}

#bookingModal #modalForm > label:not(.booking-honeypot) {
  display: block;
  color: #a8bfd5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.3;
  text-transform: uppercase;
}

#bookingModal #modalForm input,
#bookingModal #modalForm select,
#bookingModal #modalForm textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 0 16px;
  color: #173552;
  border: 1px solid rgba(17, 58, 97, .14);
  border-radius: 13px;
  outline: 0;
  background: #f9fcff;
  box-shadow: 0 7px 18px rgba(0, 9, 25, .1), inset 0 1px 0 rgba(255, 255, 255, .8);
  font: 600 13px/1.4 'DM Sans', sans-serif;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

#bookingModal #modalForm input,
#bookingModal #modalForm select {
  height: 48px;
}

#bookingModal #modalForm textarea {
  min-height: 104px;
  padding-top: 13px;
  padding-bottom: 13px;
  resize: vertical;
}

#bookingModal #modalForm input::placeholder,
#bookingModal #modalForm textarea::placeholder {
  color: #7f8e9d;
  opacity: 1;
}

#bookingModal #modalForm input:focus,
#bookingModal #modalForm select:focus,
#bookingModal #modalForm textarea:focus {
  border-color: #58caff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(85, 221, 255, .2), 0 7px 18px rgba(0, 9, 25, .1);
}

#bookingModal #modalForm select {
  cursor: pointer;
}

#bookingModal .booking-status {
  min-height: 0;
  margin: -2px 0 0;
  color: #a9bfd6;
  font-size: 12px;
  line-height: 1.5;
}

#bookingModal .booking-status.is-error { color: #ffd0d0; }
#bookingModal .booking-status.is-success { color: #a9ffd9; }

#bookingModal #modalSubmit {
  width: 100%;
  min-height: 50px;
  margin-top: 1px;
  justify-content: center;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(43, 137, 255, .24);
}

@media (max-width: 640px) {
  #bookingModal.booking-modal {
    align-items: flex-start;
    padding: 16px;
  }

  #bookingModal .booking-form {
    max-height: calc(100vh - 32px);
    padding: 28px 20px 24px;
    border-radius: 22px;
  }

  #bookingModal .booking-form::before {
    right: 20px;
    left: 20px;
  }

  #bookingModal #closeModalBtn.booking-close {
    top: 14px;
    right: 14px;
    width: 46px;
    height: 46px;
    font-size: 26px;
  }

  #bookingModal #bookingTitle {
    margin-top: 22px;
    font-size: 1.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #bookingModal .booking-form { animation: none; }
}
