/* Register & Pay (Stripe) — Agentic AI + Claude only */

.course-stripe-enroll {
  margin-bottom: 12px;
}

.cse-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink3, #7a8194);
  margin-bottom: 12px;
}

.course-enroll-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cse-submit {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: var(--mar, #0a4d68);
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  width: 100%;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.cse-submit:hover:not(:disabled) {
  background: var(--marD, #083d52);
}

.cse-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.cse-note {
  font-size: 0.68rem;
  color: var(--ink3, #7a8194);
  margin: 8px 0 10px;
  line-height: 1.45;
}

.course-enroll-err {
  font-size: 0.75rem;
  color: var(--marM, #991b1b);
  background: #fef2f2;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 10px;
}

.cse-toggle-enquire,
.cse-toggle-pay {
  display: block;
  width: 100%;
  margin: 10px 0 4px;
  padding: 0;
  border: none;
  background: none;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mar, #0a4d68);
  text-align: center;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cse-toggle-pay {
  margin: 0 0 12px;
  text-align: left;
}

/* Payment waiting / result modal (course page stays put; Stripe opens in popup) */
html.nx-pay-modal-open,
html.nx-pay-modal-open body {
  overflow: hidden;
}

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

.nx-pay-modal[hidden] {
  display: none !important;
}

.nx-pay-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 17, 23, 0.52);
}

.nx-pay-modal__panel {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px 24px 22px;
  text-align: center;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
}

.nx-pay-modal__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 700;
}

.nx-pay-modal__icon--wait {
  background: #e8f2f6;
  color: transparent;
  border: 3px solid #c5d5de;
  border-top-color: #0a4d68;
  animation: nx-pay-spin 0.8s linear infinite;
}

.nx-pay-modal__icon--ok {
  background: #ecfdf5;
  color: #047857;
}

.nx-pay-modal__icon--warn {
  background: #fff7ed;
  color: #c2410c;
}

.nx-pay-modal__icon--error {
  background: #fef2f2;
  color: #b91c1c;
}

.nx-pay-modal__title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 300;
  font-size: 1.45rem;
  color: #0d1117;
  margin: 0 0 10px;
}

.nx-pay-modal__body {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #7a8194;
  margin: 0 0 18px;
}

.nx-pay-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.nx-pay-modal__btn {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px 16px;
  border: 1.5px solid #c5d5de;
  background: #fff;
  color: #0a4d68;
  cursor: pointer;
}

.nx-pay-modal__btn--primary {
  background: #0a4d68;
  border-color: #0a4d68;
  color: #fff;
}

@keyframes nx-pay-spin {
  to {
    transform: rotate(360deg);
  }
}
