/* =========================
   CUSTOM MODAL
========================= */

.custom-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.custom-modal.is-open {
  display: block;
}

.custom-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.custom-modal__container {
  position: relative;
  width: 90%;
  max-width: 900px;
  margin: 60px auto;
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  z-index: 2;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  height: 650px;
}

/* close button */
.custom-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  line-height: 32px;
}

/* title */
.custom-modal__title {
  margin: 0 0 15px 0;
  font-size: 20px;
  font-weight: 600;
}

/* iframe */
.custom-modal iframe {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 10px;
  padding-top: 25px;
}

/* animation (nice UX) */
.custom-modal {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.custom-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.custom-modal__container {
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.custom-modal.is-open .custom-modal__container {
  transform: scale(1);
}
