/* Join-flow enhancements (preview): enrollment-fee badge + Terms modal.
   Additive layer — does not modify the core join flow. */

/* ---- Enrollment-fee badge on plan cards ---- */
.join-plan .je-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #f1efe9;
  color: #2f2f2f;
  font-size: 0.74rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
}
.join-plan .je-badge strong { color: #0e0e0e; font-weight: 700; }
.join-plan.is-selected .je-badge { background: #fde7cf; color: #0e0e0e; }

/* ---- Terms & Conditions modal ---- */
.je-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 10, 10, 0.62);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.je-modal-overlay.open { display: flex; opacity: 1; }
.je-modal {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 760px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  transform: translateY(12px);
  transition: transform 0.2s ease;
}
.je-modal-overlay.open .je-modal { transform: none; }
.je-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid #ececec;
}
.je-modal-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: #0e0e0e;
}
.je-modal-close {
  flex: none;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f1efe9;
  color: #0e0e0e;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.je-modal-close:hover { background: #e7e2da; }
.je-modal-body { overflow-y: auto; padding: 6px 24px 22px; }
.je-modal-body h2 { font-size: 1.06rem; font-weight: 800; margin: 22px 0 8px; color: #0e0e0e; }
.je-modal-body h3 { font-size: 0.98rem; font-weight: 700; margin: 16px 0 6px; color: #0e0e0e; }
.je-modal-body p,
.je-modal-body li { color: #444; font-size: 0.92rem; line-height: 1.62; }
.je-modal-body ul, .je-modal-body ol { padding-left: 20px; }
.je-modal-loading { padding: 36px; text-align: center; color: #999; font-size: 0.88rem; }
.je-modal-foot { padding: 14px 24px; border-top: 1px solid #ececec; text-align: right; }
.je-modal-foot .je-modal-ok { cursor: pointer; }
body.je-modal-open { overflow: hidden; }

@media (max-width: 560px) {
  .je-modal-overlay { padding: 0; }
  .je-modal { max-width: none; max-height: 100vh; height: 100vh; border-radius: 0; }
}
