/* =========================
   MODAL OVERLAY (STATE)
   ========================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;               /* hidden by default */
  z-index: 9999;

  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);

  /* center modal content */
  /*display: flex;*/
  align-items: center;
  justify-content: center;
}

.modal-overlay.is-active {
  display: flex;
}

/* =========================
   MODAL CONTAINER
   ========================= */

.modal-content {
  width: 80%;
  height: 82%;
  max-width: 1200px;

  display: flex;
  flex-direction: column;

  background: var(--bg-primary, #ffffff);
  border: 1px solid var(--border-soft, #ccc);
  border-radius: 16px;

  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* =========================
   MODAL HEADER
   ========================= */

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 1rem 1.5rem;
  background: #0f172a;

  border-bottom: 1px solid var(--border-soft);
}

.modal-header span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;

  color: var(--accent-primary);
}

.close-modal {
  background: none;
  border: none;

  font-size: 2rem;
  line-height: 1;
  color: #ffffff;

  cursor: pointer;
  opacity: 0.7;
}

.close-modal:hover {
  opacity: 1;
}
/* =========================
   MODAL BODY
   ========================= */

.modal-body {
  flex: 1;
  background: #ffffff;
}

#modalIframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* =========================
   MODAL CTA
   ========================= */

.modal-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;

  padding: 1.2rem;
  background: #0f172a;

  border-top: 1px solid var(--border-soft);
}

.btn-cta {
  background: var(--accent-primary);
  color: var(--bg-primary);

  padding: 0.7rem 1.8rem;
  border-radius: 8px;

  font-weight: 700;
  text-decoration: none;

  transition: transform 0.2s ease;
}

.btn-cta:hover {
  transform: scale(1.05);
}
/* =========================
   MODAL TRIGGER
   ========================= */

.open-modal-btn {
  background: var(--accent-primary);
  color: var(--bg-primary);

  padding: 0.7rem 1.8rem;
  border-radius: 8px;
  margin: 20px 0 0;

  font-weight: 700;
  text-decoration: none;

  transition: transform 0.2s ease;
}

.open-modal-btn:hover {
  transform: scale(1.05);
}
/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 600px) {
  .modal-content {
    width: 96%;
    height: 96%;
    border-radius: 10px;
  }

  .modal-header {
    padding: 0.8rem 1rem;
  }

  .btn-cta {
    width: 100%;
    text-align: center;
  }
}
