/* Custom styles for specific CTAs - define as needed */
/*
.cta99 .cta-btn {
  background-color: #cc0000;
  font-size: 20px;
  padding: 20px 40px;
}

.cta99 .cta-btn:hover {
  background-color: #990000;
}
*/

.cta04 .cta-container {
  text-align: left;
}
.cta04 .cta-btn {
  margin-left: 0;
}

/* Simple modal styles for Calendly POC */
.calendly-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.calendly-modal.open { display: flex; }
.calendly-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5,7,17,0.85);
  backdrop-filter: blur(6px);
}
.calendly-modal-box {
  position: relative;
  width: min(1100px, 98vw);
  height: min(900px, 92vh);
  background: #050711;
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.65);
  z-index: 2;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* let inner scroll if needed */
}
.calendly-modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  background: transparent;
  border: none;
  color: #f5f5f5;
  font-size: 30px;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
}
.calendly-modal-body {
  padding: 1rem 1rem 0 1rem;
  color: #f5f5f5;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1 1 auto;
}
.calendly-modal-heading { margin: 0 0 0.5rem 0; }
.calendly-widget-container {
  flex: 1 1 auto;
  min-height: 560px;
  display: block;
}

/* Ensure Calendly iframe (injected by the widget) uses full available space */
.calendly-widget-container iframe,
.calendly-widget-container .calendly-inline-widget,
.calendly-widget-container .calendly-iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 520px;
  border: 0 !important;
  display: block;
}

/* Prevent background scroll when modal open */
.calendly-modal-open { overflow: hidden; }

/* Small screens: make modal full-screen to maximize usable space */
@media (max-width: 640px) {
  .calendly-modal { padding: 0; }
  .calendly-modal-box {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
  .calendly-modal-close { right: 12px; top: 12px; }
  .calendly-modal-body { padding: 1rem; }
  .calendly-widget-container { min-height: calc(100vh - 120px); }
  .calendly-widget-container iframe { min-height: calc(100vh - 120px) !important; }
}