/* ============================================================
   booking.css — Velonova Calendly Inline Modal
   ============================================================ */

/* ── Overlay ──────────────────────────────────────────── */
.booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 8, 20, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

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

/* ── Modal chrome ─────────────────────────────────────── */
.booking-chrome--expanded {
  background: linear-gradient(145deg, #1a1a3e 0%, #2c2c54 55%, #3e3e72 100%);
  border-radius: 20px;
  width: 100%;
  max-width: 780px;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65);
  transform: translateY(20px) scale(0.97);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
  position: relative;
}

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

/* ── Close button ─────────────────────────────────────── */
.booking-close {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.booking-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

[dir="rtl"] .booking-close {
  right: auto;
  left: 16px;
}

/* ── Header area ──────────────────────────────────────── */
.booking-modal-header {
  text-align: center;
  padding: 18px 36px 14px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(253, 161, 162, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.booking-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(253, 161, 162, 0.35);
  margin-bottom: 2px;
}

.booking-title {
  font-family: 'Google Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: 0.01em;
}

.booking-subtitle {
  font-family: 'Google Sans', system-ui, sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

/* RTL: same layout, subtitle already correct */
[dir="rtl"] .booking-modal-header .booking-logo-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Calendly embed container ─────────────────────────── */
#calendly-embed-container {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 540px;
}

#calendly-embed-container .calendly-inline-widget,
#calendly-embed-container iframe {
  width: 100% !important;
  height: 540px !important;
  min-height: 540px;
  border: none;
  display: block;
}


/* ── Fallback / loading state ─────────────────────────── */
.calendly-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  gap: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Google Sans', system-ui, sans-serif;
}

/* ── CTA button (reused for fallback) ─────────────────── */
.booking-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 16px;
  border: none;
  background: #fda1a2;
  color: #1a1a3e;
  font-family: 'Google Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s cubic-bezier(.16, 1, .3, 1);
  text-decoration: none;
}

.booking-cta:hover {
  background: #f87070;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(253, 161, 162, 0.3);
}

/* ── Mobile ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .booking-chrome--expanded {
    border-radius: 16px;
    max-height: 95vh;
  }
  .booking-modal-header {
    padding: 10px 16px;
    gap: 8px;
  }
  .booking-logo {
    width: 22px;
    height: 22px;
  }
  #calendly-embed-container {
    min-height: 480px;
  }
  #calendly-embed-container .calendly-inline-widget,
  #calendly-embed-container iframe {
    height: 480px !important;
    min-height: 480px;
  }
}
