.booking-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.booking-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.booking-modal {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 680px;
  height: min(90vh, 820px);
  max-height: min(90vh, 820px);
  overflow: hidden;
  background: var(--white, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(30, 44, 93, 0.18);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.2s ease;
}

.booking-modal-overlay.is-open .booking-modal {
  transform: translateY(0) scale(1);
}

.booking-modal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  background: var(--off-white, #f8fafc);
}

.booking-modal-logo {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.booking-modal-logo img {
  display: block;
  height: 28px;
  width: auto;
}

.booking-modal-title {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max-content;
  max-width: calc(100% - 140px);
  height: 28px;
  transform: translate(-50%, -50%);
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.3px;
  color: var(--navy, #1E2C5D);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.booking-modal-close {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  background: var(--white, #ffffff);
  color: var(--navy, #1E2C5D);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.booking-modal-close:hover {
  background: var(--off-white, #f8fafc);
  border-color: var(--navy, #1E2C5D);
}

.booking-modal-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.booking-modal-body {
  position: relative;
  flex: 1;
  min-height: 0;
  background: var(--white, #ffffff);
}

.booking-modal-iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.booking-modal-loading,
.booking-modal-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 24px;
  text-align: center;
  background: var(--white, #ffffff);
}

.booking-modal-loading p,
.booking-modal-fallback p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate, #64748b);
}

.booking-modal-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border, #e2e8f0);
  border-top-color: var(--green, #4E9A6F);
  border-radius: 50%;
  animation: booking-modal-spin 0.7s linear infinite;
}

@keyframes booking-modal-spin {
  to { transform: rotate(360deg); }
}

.booking-modal-fallback a {
  font-size: 15px;
  font-weight: 600;
  color: var(--green, #4E9A6F);
  text-decoration: none;
}

.booking-modal-fallback a:hover {
  color: var(--green-dark, #3F8260);
  text-decoration: underline;
}

.booking-modal-overlay.is-open .booking-modal-iframe.is-ready ~ .booking-modal-loading {
  display: none;
}

.booking-modal-fallback.is-visible {
  display: flex;
}

.booking-modal-fallback[hidden],
.booking-modal-loading[hidden] {
  display: none;
}

body.booking-modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .booking-modal-overlay {
    padding: 12px;
    align-items: flex-end;
  }

  .booking-modal {
    max-height: 92vh;
    border-radius: 12px 12px 0 0;
  }

  .booking-modal-header {
    padding: 16px;
  }

  .booking-modal-title {
    font-size: 18px;
  }

  .booking-modal-body {
    min-height: 360px;
  }

  .booking-modal-iframe {
    min-height: 360px;
  }
}
