/* ============================================
   CALENDLY — popup widget
   Self-hosted. Badge widget styles removed.
   ============================================ */

/* ---- Base reset for all Calendly elements ---- */
.calendly-inline-widget,
.calendly-inline-widget *,
.calendly-overlay,
.calendly-overlay * {
  font-size: 16px;
  line-height: 1.2em;
}

.calendly-inline-widget iframe,
.calendly-overlay iframe {
  display: inline;
  height: 100%;
  width: 100%;
}

/* ---- Popup content wrapper ---- */
.calendly-popup-content {
  position: relative;
}

.calendly-popup-content.calendly-mobile {
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
}

/* ---- Overlay (the dark backdrop) ---- */
.calendly-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background-color: rgba(31, 31, 31, 0.4);
}

.calendly-overlay .calendly-close-overlay {
  position: absolute;
  inset: 0;
}

/* ---- Popup window ---- */
.calendly-overlay .calendly-popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
  box-sizing: border-box;
  width: 80%;
  max-width: 1000px;
  min-width: 900px;
  height: 90%;
  max-height: 700px;
}

.calendly-overlay .calendly-popup .calendly-popup-content {
  height: 100%;
}

/* ---- Close button ---- */
.calendly-overlay .calendly-popup-close {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 19px;
  height: 19px;
  cursor: pointer;
  color: #fff;
  background: url(https://assets.calendly.com/assets/external/close-icon.svg) no-repeat center;
  background-size: contain;
}

/* ---- Loading spinner ---- */
.calendly-spinner {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  z-index: -1;
  text-align: center;
  transform: translateY(-50%);
}

.calendly-spinner > div {
  display: inline-block;
  vertical-align: middle;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #e1e1e1;
  animation: calendly-bouncedelay 1.4s ease-in-out infinite;
  animation-fill-mode: both;
}

.calendly-spinner .calendly-bounce1 { animation-delay: -0.32s; }
.calendly-spinner .calendly-bounce2 { animation-delay: -0.16s; }

@keyframes calendly-bouncedelay {
  0%, 80%, 100% { transform: scale(0); }
  40%           { transform: scale(1); }
}

/* ---- Mobile ---- */
@media (max-width: 975px) {
  .calendly-overlay .calendly-popup {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-width: 0;
    max-height: none;
    transform: none;
  }

  .calendly-overlay .calendly-popup-close {
    top: 15px;
    right: 15px;
  }
}