.enrollment-modal[hidden] {
  display: none;
}

.payment-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.payment-benefits span {
  padding: 7px 10px;
  border: 1px solid #14133024;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.payment-note {
  margin: 0;
  color: #4f5278;
  font-size: 0.78rem;
  line-height: 1.5;
}

.enroll button.primary {
  border-radius: 999px;
}

@media (max-width: 759px) {
  .payment-benefits { justify-content: center; }
  .enroll button.primary { min-height: 56px; width: 100%; }
}

.enrollment-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: #030126cc;
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: calc(100svh - 40px);
  overflow: auto;
  padding: 44px;
  border-radius: 32px;
  box-shadow: 0 30px 90px #0008;
  transform: translateY(18px) scale(.98);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
}

.enrollment-modal.is-open .modal-card {
  transform: none;
  opacity: 1;
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:focus-visible {
  outline: 3px solid #00ccff70;
  outline-offset: 2px;
}

.modal-step {
  display: table;
  margin-bottom: 10px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #e8e7ff;
  color: var(--purple);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.modal-open {
  overflow: hidden;
}

@media (max-width: 759px) {
  .enrollment-modal {
    align-items: end;
    padding: 0;
  }

  .modal-card {
    width: 100%;
    max-height: 92svh;
    padding: 54px 20px 28px;
    border-radius: 28px 28px 0 0;
    transform: translateY(28px);
  }

  .modal-close {
    top: 12px;
    right: 16px;
    width: 46px;
    height: 46px;
  }

  .modal-step {
    margin-bottom: 8px;
  }
}
