/* ================================================================
   academy-modal.css — "UNLOCK IWS ACADEMY FOR FREE" modal
   Dark gradient header + form body. Hidden by default.
   Open with: html.academy-modal-open  (set by the modal's JS)
================================================================ */

html.academy-modal-open,
html.academy-modal-open body { overflow: hidden; }

.academy-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 12000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .65s ease, visibility .65s ease;
}
html.academy-modal-open .academy-modal { opacity: 1; visibility: visible; }

.academy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 18, 0);
  backdrop-filter: blur(0px) saturate(100%);
  -webkit-backdrop-filter: blur(0px) saturate(100%);
  transition: background .7s ease, backdrop-filter .7s ease, -webkit-backdrop-filter .7s ease;
}
html.academy-modal-open .academy-modal-backdrop {
  background: rgba(8, 11, 18, 0.72);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
}

.academy-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(8, 11, 18, 0.55);
  transform: translateY(28px) scale(0.96);
  opacity: 0;
  filter: blur(8px);
  transition:
    transform .7s cubic-bezier(.2, .7, .2, 1),
    opacity   .55s ease,
    filter    .55s ease;
}
html.academy-modal-open .academy-modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
  filter: blur(0);
}

/* Close button (white X over the dark header) */
.academy-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
  font-family: inherit;
}
.academy-modal-close:hover { opacity: .75; transform: scale(1.05); }

/* ============================================================
   DARK HEADER  (radial purple/pink glow on near-black)
============================================================ */
.academy-modal-head {
  position: relative;
  padding: 38px 40px 34px;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
.academy-modal-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(220px 120px at 28% 60%, rgba(72, 62, 196, 0.45), transparent 70%),
    radial-gradient(220px 120px at 72% 60%, rgba(168, 35, 72, 0.42), transparent 70%);
  pointer-events: none;
}
.academy-modal-h {
  position: relative;
  margin: 0 0 10px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
  letter-spacing: .01em;
  line-height: 1.2;
  text-transform: uppercase;
}
.academy-modal-sub {
  position: relative;
  margin: 0 auto;
  max-width: 460px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  line-height: 1.5;
}

/* ============================================================
   BODY  (form)
============================================================ */
.academy-modal-body {
  padding: 28px 36px 30px;
  background: #fff;
}
.academy-modal-form label {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: #14141C;
  margin: 0 0 6px;
}
.academy-modal-req { color: #d24a4a; margin-left: 2px; }
.academy-modal-form .form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d9dce3;
  border-radius: 10px;
  font-size: 1rem;
  background: #fff;
  color: #14141C;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.academy-modal-form .form-control::placeholder { color: #b0b4bf; }
.academy-modal-form .form-control:focus {
  outline: none;
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

.academy-modal-submit {
  width: 100%;
  padding: 16px 20px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(90deg, #4A39C8 0%, #A82348 100%);
  box-shadow: 0 12px 28px rgba(72, 62, 196, 0.30);
  transition: transform .25s ease, filter .25s ease, box-shadow .25s ease;
}
.academy-modal-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 16px 34px rgba(72, 62, 196, 0.38);
}

.academy-modal-alt {
  margin: 18px 0 0;
  text-align: center;
  color: #14141C;
  font-size: .95rem;
}
.academy-modal-alt a {
  color: #1FA9C8;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: gap .25s ease, color .2s ease;
}
.academy-modal-alt a:hover { gap: .7rem; color: #177e96; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 575.98px) {
  .academy-modal { padding: 14px; }
  .academy-modal-head { padding: 30px 22px 26px; }
  .academy-modal-body { padding: 22px 20px 24px; }
}
