/* ============================================================
   Enroll Modal Component — enroll-modal.css
   ============================================================ */

/* ── Backdrop ────────────────────────────────────────────── */
.em-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.em-backdrop[hidden] { display: none !important; }

/* ── Modal box ───────────────────────────────────────────── */
.em-box {
  position: relative;
  background: var(--dark, #222);
  color: var(--text-color, #ccc);
  border-radius: var(--border-radius);
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 48px 36px;
  box-sizing: border-box;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

/* ── Close button ────────────────────────────────────────── */
.em-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-color, #ccc);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  padding: 0 4px;
  transition: opacity .15s;
}
.em-close:hover { opacity: 1; }

/* ── Modal title ─────────────────────────────────────────── */
.em-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-color, #ccc);
  text-align: center;
  margin: 0 0 28px;
  padding-right: 32px; /* avoid overlap with close btn */
}

/* ── Body row (photo + text) ─────────────────────────────── */
.em-body {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 28px;
}

/* ── Photo column ────────────────────────────────────────── */
.em-photo-col {
  flex: 0 0 180px;
}

.em-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: var(--border-radius);
  display: block;
}

/* ── Text column ─────────────────────────────────────────── */
.em-text-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.em-lead {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-color, #ccc);
  margin: 0;
}

.em-paragraph {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-color, #ccc);
  opacity: 0.9;
  margin: 0;
}

/* ── Bullet list ─────────────────────────────────────────── */
.em-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.em-bullets li {
  font-size: 0.92rem;
  color: var(--text-color, #ccc);
  padding-left: 1em;
  position: relative;
}

.em-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* ── CTA button ──────────────────────────────────────────── */
.em-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 12px 28px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: filter .15s;
  margin-top: 6px;
}
.em-cta:hover, .em-cta:focus { filter: brightness(1.1); color: #fff; outline: none; }

/* ── Secondary contact link ──────────────────────────────── */
.em-contact-link {
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: underline;
  text-align: center;
  display: block;
  margin-top: 8px;
}
.em-contact-link:hover { color: var(--text-color, #ccc); }

/* ── Check list (bottom strip) ───────────────────────────── */
.em-checks {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.em-checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--primary);
}

.em-checks li span {
  color: var(--text-color, #ccc);
}

.em-check-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .em-box {
    padding: 28px 20px 24px;
    /* Ensure modal never exceeds the visible mobile viewport */
    max-height: calc(100svh - 98px);
    max-height: calc(100dvh - 98px);
    max-height: calc(100vh - 98px);
  }

  .em-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }

  .em-body {
    flex-direction: column;
    gap: 20px;
  }

  .em-photo-col {
    flex: unset;
    align-self: flex-start;
  }

  .em-photo {
    width: 110px;
    height: 140px;
  }

  .em-cta {
    width: 100%;
    justify-content: center;
  }
}
