/* ===== Enroll + Checkout pages ===== */

.enroll-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
  margin-top: 34px;
}
@media (max-width: 900px) {
  .enroll-layout { grid-template-columns: 1fr; }
  .enroll-summary { order: -1; }
}

/* ---- Progress steps ---- */
.checkout-steps ol {
  list-style: none; display: flex; align-items: center; gap: 8px;
  padding: 0; margin: 0; flex-wrap: nowrap; max-width: 520px;
}
.cs-step { display: flex; align-items: center; gap: 10px; }
.cs-num {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 600; font-size: 0.85rem;
  border: 1px solid var(--border-strong); color: var(--text-faint);
  background: var(--surface-1); transition: all 0.25s;
}
.cs-label { font-family: var(--font-head); font-size: 0.85rem; color: var(--text-faint); white-space: nowrap; }
.cs-step.active .cs-num { background: var(--cyan); color: #05121a; border-color: var(--cyan); }
.cs-step.active .cs-label { color: #fff; }
.cs-step.done .cs-num { background: rgba(52,211,153,.15); color: var(--green); border-color: rgba(52,211,153,.5); }
.cs-step.done .cs-label { color: var(--text-dim); }
.cs-line { flex: 1 1 auto; height: 1px; background: var(--border); min-width: 18px; }
.cs-line.active { background: linear-gradient(90deg, var(--green), var(--cyan)); }
@media (max-width: 560px) {
  .cs-label { display: none; }
  .checkout-steps ol { gap: 6px; }
}

/* ---- Form section titles ---- */
.form-section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.05rem; margin-bottom: 18px; color: #fff;
}
.form-section-title svg { color: var(--cyan); flex: 0 0 auto; }
.req { color: #f87171; }
.opt { color: var(--text-faint); font-weight: 400; font-size: 0.82em; }
.field-hint { font-size: 0.8rem; color: var(--text-faint); margin-top: 8px; line-height: 1.5; }

/* ---- Searchable combobox ---- */
.combo { position: relative; }
.combo-input-wrap { position: relative; display: flex; align-items: center; }
.combo-ic {
  position: absolute; left: 14px; color: var(--text-faint);
  display: flex; pointer-events: none;
}
.combo-input-wrap input {
  width: 100%; background: var(--surface-1); border: 1px solid var(--border);
  border-radius: 10px; padding: 13px 42px 13px 42px; color: #fff;
  font-size: 0.95rem; font-family: var(--font-body);
}
.combo-input-wrap input:focus { outline: none; border-color: var(--cyan); }
.combo-caret {
  position: absolute; right: 12px; color: var(--text-faint);
  display: flex; transform: rotate(90deg); transition: transform 0.2s; cursor: pointer;
}
.combo.open .combo-caret { transform: rotate(-90deg); color: var(--cyan); }

.combo-list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: 12px; max-height: 320px; overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5); padding: 6px;
}
.combo-group-label {
  font-family: var(--font-head); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 12px 12px 6px; opacity: 0.85;
}
.combo-option {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 8px; cursor: pointer; transition: background 0.15s;
}
.combo-option:hover, .combo-option[aria-selected="true"] { background: rgba(34,211,238,0.08); }
.co-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.co-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.co-title { color: #fff; font-size: 0.92rem; font-weight: 500; }
.co-meta { color: var(--text-faint); font-size: 0.78rem; }
.co-price { color: var(--text-dim); font-family: var(--font-head); font-size: 0.85rem; font-weight: 600; flex: 0 0 auto; }
.combo-empty { padding: 22px 14px; text-align: center; color: var(--text-faint); font-size: 0.88rem; }

/* selected program card */
.prog-selected { margin-top: 14px; }
.ps-inner {
  border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 14px 16px; background: rgba(255,255,255,0.02);
}
.ps-badge {
  display: inline-block; font-family: var(--font-head); font-size: 0.72rem;
  font-weight: 600; padding: 4px 10px; border-radius: 6px; margin-bottom: 8px;
}
.ps-title { color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; margin-bottom: 4px; }
.ps-meta { color: var(--text-dim); font-size: 0.85rem; }
.ps-meta b { color: #fff; }

/* ---- Amount ---- */
.amount-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.amount-chip {
  font-family: var(--font-head); font-size: 0.85rem; font-weight: 500;
  padding: 10px 15px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border-strong); background: rgba(255,255,255,0.03);
  color: var(--text-dim); transition: all 0.2s; display: inline-flex; gap: 8px; align-items: center;
}
.amount-chip b { color: #fff; }
.amount-chip:hover { border-color: var(--cyan); color: #fff; }
.amount-chip.active { background: var(--cyan); color: #05121a; border-color: var(--cyan); }
.amount-chip.active b { color: #05121a; }

.amount-input { position: relative; display: flex; align-items: center; }
.amount-cur {
  position: absolute; left: 14px; color: var(--text-dim);
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
}
.amount-input input {
  width: 100%; background: var(--surface-1); border: 1px solid var(--border);
  border-radius: 10px; padding: 13px 14px 13px 32px; color: #fff;
  font-size: 1.15rem; font-family: var(--font-head); font-weight: 600;
}
.amount-input input:focus { outline: none; border-color: var(--cyan); }
/* hide number spinners */
.amount-input input::-webkit-outer-spin-button,
.amount-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amount-input input[type=number] { -moz-appearance: textfield; }

/* ---- Checkbox ---- */
.checkbox-field .checkbox {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer; margin-bottom: 0;
}
.checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox-box {
  width: 22px; height: 22px; border-radius: 6px; flex: 0 0 auto;
  border: 1px solid var(--border-strong); background: var(--surface-1);
  display: flex; align-items: center; justify-content: center;
  color: transparent; transition: all 0.2s; margin-top: 1px;
}
.checkbox input:checked + .checkbox-box { background: var(--cyan); border-color: var(--cyan); color: #05121a; }
.checkbox input:focus-visible + .checkbox-box { box-shadow: 0 0 0 3px rgba(34,211,238,0.3); }
.checkbox-text { font-size: 0.9rem; color: var(--text-dim); line-height: 1.55; }
.checkbox-text a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.checkbox-field.error .checkbox-box { border-color: #f87171; }
.checkbox-field.error .err-msg { display: block; }

/* ---- Order summary sidebar ---- */
.enroll-summary { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 900px) { .enroll-summary { position: static; } }
.summary-card { padding: 24px; }
.summary-empty { text-align: center; padding: 24px 8px; }
.summary-empty-ic {
  width: 60px; height: 60px; border-radius: 14px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04); color: var(--text-faint);
}
.summary-empty p { font-size: 0.9rem; color: var(--text-faint); }

.sum-prog { margin: 16px 0 18px; }
.sum-prog-title { color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; margin-bottom: 4px; }
.sum-prog-meta { color: var(--text-dim); font-size: 0.82rem; }
.sum-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; color: var(--text-dim); padding: 6px 0; }
.sum-row span:last-child { color: #fff; font-weight: 500; }
.sum-pay { color: var(--cyan) !important; }
.sum-bal span:last-child { color: var(--text-dim) !important; }
.sum-total { font-family: var(--font-head); }
.sum-total span { font-size: 1.15rem !important; color: #fff !important; font-weight: 700 !important; }

.trust-card { padding: 20px 22px; }
.trust-row { display: flex; align-items: center; gap: 12px; font-size: 0.88rem; color: var(--text-dim); padding: 8px 0; }
.trust-row svg { color: var(--green); flex: 0 0 auto; }
.edit-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--cyan); font-size: 0.88rem; font-family: var(--font-head); }
.edit-link svg { transform: rotate(180deg); }

.disclaimer-note { font-size: 0.8rem; color: var(--text-faint); margin-top: 28px; text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* ---- Checkout: billing recap + stripe placeholder ---- */
.billing-recap { display: flex; flex-direction: column; gap: 4px; }
.recap-row { display: flex; justify-content: space-between; gap: 16px; font-size: 0.88rem; padding: 7px 0; border-bottom: 1px solid var(--border); }
.recap-row:last-child { border-bottom: none; }
.recap-row span { color: var(--text-faint); flex: 0 0 auto; }
.recap-row b { color: #fff; font-weight: 500; text-align: right; word-break: break-word; }

.stripe-mount { }
.stripe-placeholder { }
.fake-input {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface-1); border: 1px dashed var(--border-strong);
  border-radius: 10px; padding: 13px 14px; color: var(--text-faint);
  font-family: var(--font-head); letter-spacing: 0.04em; font-size: 0.95rem;
}
.card-brands { color: var(--text-faint); }
.stripe-hint { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-faint); margin-top: 12px; }
.stripe-hint svg { color: var(--cyan); flex: 0 0 auto; }

.checkout-error { color: #f87171; font-size: 0.88rem; margin-top: 14px; }

.success-check {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(52,211,153,.15); color: var(--green);
}
.form-success { text-align: center; padding: 20px 0; }
