/* Booking modal v2 — 2-column with promo panel */
.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: 'Poppins', system-ui, sans-serif;
}
.booking-modal.is-open { display: flex; }
.booking-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 30, 62, .7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: booking-modal-fade .25s ease;
}
.booking-modal__dialog {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 18px;
  max-width: 880px;
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(9, 30, 62, .45);
  animation: booking-modal-pop .3s ease;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
}
@keyframes booking-modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes booking-modal-pop {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* LEFT COLUMN — form */
.booking-modal__left {
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow-y: auto;
}
.booking-modal__header {
  position: relative;
  padding: 26px 30px 18px;
  background: #ffffff;
  color: #163E40;
  border-bottom: 1px solid #eef1f5;
}
.booking-modal__title {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.2;
  color: #163E40;
}
.booking-modal__subtitle {
  font-size: 13.5px;
  color: #4A6577;
  margin: 0;
  line-height: 1.45;
}
.booking-modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: #f3f6fa;
  border: 0;
  border-radius: 50%;
  color: #4A6577;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  transition: background .2s, color .2s;
}
.booking-modal__close:hover { background: #163E40; color: #fff; }

.booking-modal__body {
  padding: 22px 30px 16px;
}
.booking-modal__service-pill {
  display: none;
  margin-bottom: 18px;
  padding: 12px 14px;
  background: #226468 0%, rgba(34,100,104,.04) 100%);
  border: 1px solid rgba(34,100,104,.35);
  border-radius: 10px;
  font-size: 13.5px;
  color: #163E40;
  line-height: 1.4;
}
.booking-modal__service-pill.has-service { display: flex; align-items: flex-start; gap: 10px; }
.booking-modal__service-pill i { color: #154F58; font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.booking-modal__service-pill strong { font-weight: 600; display: block; font-size: 12px; color: #154F58; margin-bottom: 2px; letter-spacing: .3px; text-transform: uppercase; }

.booking-modal__field { margin-bottom: 14px; }
.booking-modal__field label {
  display: block;
  font-size: 12.5px;
  color: #4A6577;
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}
.booking-modal__field label .req { color: #F57E57; margin-left: 2px; }
.booking-modal__field input,
.booking-modal__field textarea,
.booking-modal__field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e3e8ef;
  border-radius: 10px;
  font-size: 14.5px;
  font-family: 'Poppins', system-ui, sans-serif;
  color: #163E40;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}
.booking-modal__field input:focus,
.booking-modal__field textarea:focus {
  outline: none;
  border-color: #226468;
  box-shadow: 0 0 0 3px rgba(34,100,104,.18);
}
.booking-modal__field textarea { resize: vertical; min-height: 60px; }
.booking-modal__field input::placeholder,
.booking-modal__field textarea::placeholder { color: #9aa6b2; }

.booking-modal__consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #4A6577;
  line-height: 1.4;
  margin: 8px 0 4px;
}
.booking-modal__consent input { margin-top: 2px; flex-shrink: 0; accent-color: #226468; }
.booking-modal__consent a { color: #154F58; text-decoration: underline; }

.booking-modal__footer {
  padding: 0 30px 24px;
  display: flex;
  gap: 10px;
}
.booking-modal__submit {
  flex: 1;
  background: #226468;
  color: #ffffff;
  border: 0;
  padding: 14px 20px;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s, transform .12s, box-shadow .2s;
  box-shadow: 0 6px 14px rgba(34,100,104,.35);
}
.booking-modal__submit:hover {
  background: #163E40;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(22,62,64,.35);
}
.booking-modal__submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.booking-modal__cancel {
  background: transparent;
  color: #4A6577;
  border: 0;
  padding: 14px 18px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  cursor: pointer;
  border-radius: 999px;
}
.booking-modal__cancel:hover { background: #f5f7fa; color: #163E40; }

/* RIGHT COLUMN — promo */
.booking-modal__right {
  background: #163E40;
  color: #fff;
  padding: 28px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.booking-modal__right::before {
  content: "";
  position: absolute;
  width: 280px; height: 280px;
  top: -120px; right: -90px;
  background: #226468 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.booking-modal__right::after {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  bottom: -100px; left: -60px;
  background: #226468 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.booking-modal__right > * { position: relative; z-index: 1; }

.booking-modal__promo-title {
  font-family: 'Poppins', sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 8px;
  color: #ffffff;
  letter-spacing: -0.3px;
}
.booking-modal__promo-title span { color: #226468; }
.booking-modal__promo-lead {
  font-size: 13.5px;
  color: rgba(255,255,255,.78);
  line-height: 1.5;
  margin: 0 0 22px;
}

.booking-modal__perks {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.booking-modal__perks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255,255,255,.9);
}
.booking-modal__perks i {
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(34,100,104,.25);
  color: #226468;
  border-radius: 8px;
  font-size: 16px;
  flex-shrink: 0;
}
.booking-modal__perks strong {
  display: block;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
  font-size: 13.5px;
}

.booking-modal__contact {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.booking-modal__contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.85);
  margin-bottom: 8px;
}
.booking-modal__contact-row i { color: #226468; font-size: 16px; flex-shrink: 0; }
.booking-modal__contact-row a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.booking-modal__contact-row a:hover { color: #226468; }

/* Success state spans both columns */
.booking-modal__success {
  display: none;
  text-align: center;
  padding: 36px 28px;
  grid-column: 1 / -1;
  background: #fff;
}
.booking-modal.is-success .booking-modal__left,
.booking-modal.is-success .booking-modal__right { display: none; }
.booking-modal.is-success .booking-modal__success { display: block; }
.booking-modal.is-success .booking-modal__dialog { grid-template-columns: 1fr; }
.booking-modal__success-icon {
  width: 80px; height: 80px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #226468 0%, rgba(34,100,104,.18) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: #226468;
}
.booking-modal__success h3 {
  font-family: 'Poppins', sans-serif;
  color: #163E40;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
}
.booking-modal__success p {
  color: #4A6577;
  font-size: 14.5px;
  margin: 0 0 22px;
  line-height: 1.5;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.booking-modal__success-call {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px;
  background: #f3f6fa;
  border-radius: 999px;
  color: #163E40;
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  transition: background .2s;
}
.booking-modal__success-call i { color: #226468; font-size: 18px; }
.booking-modal__success-call:hover { background: #e8edf3; }

@media (max-width: 767px) {
  .booking-modal { padding: 0; align-items: stretch; }
  .booking-modal__dialog {
    display: flex;
    flex-direction: column;
    border-radius: 0;
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .booking-modal__right { order: 2; flex: none; padding: 22px 22px 26px; }
  /* Прибираємо вкладений скрол лівої колонки — на мобільному скролиться весь dialog,
     інакше форма затиснута й футер з кнопками «прилипає» знизу.
     flex:none — щоб колонки не стискались, а dialog скролився цілком. */
  .booking-modal__left { order: 1; flex: none; overflow: visible; }
  .booking-modal__header { padding: 22px 22px 14px; }
  .booking-modal__body { padding: 18px 22px; }
  .booking-modal__footer { padding: 0 22px 22px; flex-direction: column; }
  .booking-modal__cancel { order: 2; }
  .booking-modal__title { font-size: 20px; }
  .booking-modal__promo-title { font-size: 19px; }
  .booking-modal__perks { gap: 10px; margin-bottom: 16px; }
  .booking-modal__perks li { font-size: 12.5px; }
  .booking-modal__success { padding: 32px 22px; }
}
