/* ==========================================================================
   Registration + Member Dashboard
   ========================================================================== */
.member-page {
  --m-brand: var(--brand, #0f6e8c);
  --m-brand-2: var(--brand-2, #19a7a1);
  --m-ink: #10233a;
  --m-muted: #6b7a90;
  --m-line: #e4eaf2;
  --m-soft: #f3f7fb;
  padding: 64px 0 96px;
  background: linear-gradient(180deg, var(--m-soft) 0%, #fff 420px);
  color: var(--m-ink);
  font-family: 'Inter', system-ui, sans-serif;
}
.member-page h1, .member-page h2, .member-page h3 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; }
.member-muted { color: var(--m-muted); }
.member-link { color: var(--m-brand); font-weight: 600; text-decoration: none; }
.member-link:hover { text-decoration: underline; }

.member-page-head { max-width: 640px; margin: 0 auto 32px; }
.member-kicker {
  display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px;
  background: rgba(15, 110, 140, .1); color: var(--m-brand); font-weight: 600; font-size: .85rem;
}
.member-title { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; margin: 14px 0 8px; }
.member-lead { color: var(--m-muted); margin: 0; }

.member-card {
  background: #fff; border: 1px solid var(--m-line); border-radius: 20px;
  padding: clamp(22px, 3vw, 40px); box-shadow: 0 18px 40px -24px rgba(16, 35, 58, .25);
}
.member-card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 20px; }

/* Brand buttons fallback (theme style.css may already define these) */
.member-page .btn-brand {
  background: linear-gradient(135deg, var(--m-brand), var(--m-brand-2)); border: 0; color: #fff; font-weight: 600;
}
.member-page .btn-brand:hover { filter: brightness(1.07); color: #fff; }

/* Top 3-step indicator */
.reg-steps { display: flex; justify-content: center; gap: 0; margin: 0 auto 36px; max-width: 560px; padding: 0; }
.reg-step { flex: 1; position: relative; text-align: center; }
.reg-step::before {
  content: ''; position: absolute; top: 19px; left: -50%; width: 100%; height: 3px; background: var(--m-line); z-index: 0;
}
.reg-step:first-child::before { display: none; }
.reg-step.is-done::before, .reg-step.is-active::before { background: var(--m-brand); }
.reg-step-dot {
  position: relative; z-index: 1; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 2px solid var(--m-line); color: var(--m-muted); font-weight: 700;
}
.reg-step.is-active .reg-step-dot { border-color: var(--m-brand); color: var(--m-brand); box-shadow: 0 0 0 6px rgba(15, 110, 140, .12); }
.reg-step.is-done .reg-step-dot { background: var(--m-brand); border-color: var(--m-brand); color: #fff; }
.reg-step-label { display: block; margin-top: 8px; font-size: .85rem; font-weight: 600; color: var(--m-muted); }
.reg-step.is-active .reg-step-label, .reg-step.is-done .reg-step-label { color: var(--m-ink); }

/* CF7 form styling */
.asas-reg-form .wpcf7-form p { margin-bottom: 18px; }
.asas-reg-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.asas-reg-form .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.asas-reg-form input[type=text], .asas-reg-form input[type=email], .asas-reg-form input[type=tel],
.asas-reg-form input[type=number], .asas-reg-form input[type=date], .asas-reg-form select, .asas-reg-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #d5deea; border-radius: 12px; background: #fbfdff;
  font-size: .95rem; transition: border-color .15s, box-shadow .15s;
}
.asas-reg-form input:focus, .asas-reg-form select:focus, .asas-reg-form textarea:focus {
  outline: 0; border-color: var(--m-brand); box-shadow: 0 0 0 4px rgba(15, 110, 140, .12); background: #fff;
}
.asas-reg-form .wpcf7-not-valid { border-color: #dc3545 !important; }
.asas-reg-form .wpcf7-not-valid-tip { font-size: .82rem; margin-top: 4px; color: #dc3545; }
.asas-reg-form .wpcf7-list-item { margin: 0 16px 0 0; }
.asas-reg-form .wpcf7-list-item label { display: inline-flex; gap: 8px; font-weight: 500; }
.asas-reg-form .wpcf7-response-output { border-radius: 12px; margin: 20px 0 0 !important; padding: 12px 16px !important; }
.asas-reg-form .wpcf7-spinner { vertical-align: middle; }
.asas-reg-form fieldset.cf7-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.asas-reg-form fieldset.cf7-step > legend { font-size: 1.2rem; font-weight: 700; margin-bottom: 18px; font-family: 'Plus Jakarta Sans', sans-serif; }
.asas-reg-form .row > [class*=col] > p { margin-bottom: 0; }

.cf7-progress { margin-bottom: 28px; }
.cf7-progress-steps { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 12px; padding: 0; }
.cf7-progress-steps li { display: flex; align-items: center; gap: 8px; color: var(--m-muted); font-size: .88rem; font-weight: 600; }
.cf7-progress-steps .n {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--m-soft); border: 1px solid var(--m-line); font-size: .8rem;
}
.cf7-progress-steps li.is-active { color: var(--m-ink); }
.cf7-progress-steps li.is-active .n { background: var(--m-brand); border-color: var(--m-brand); color: #fff; }
.cf7-progress-steps li.is-done .n { background: rgba(15, 110, 140, .12); color: var(--m-brand); border-color: transparent; }
.cf7-progress-bar { height: 6px; background: var(--m-soft); border-radius: 999px; overflow: hidden; }
.cf7-progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--m-brand), var(--m-brand-2)); transition: width .3s; }
.cf7-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--m-line); }
.cf7-nav > p { margin: 0 !important; display: flex; align-items: center; }
.member-page .cf7-nav .btn, .member-page .cf7-nav .wpcf7-submit {
  font-size: 1rem; line-height: 1.5; padding: .6rem 1.6rem; border-radius: 999px; cursor: pointer;
}
.member-page .cf7-nav .cf7-prev { background: #fff !important; color: var(--m-ink) !important; border: 1px solid #cfd8e3 !important; }
.member-page .cf7-nav .cf7-prev:hover { background: var(--m-soft) !important; }
.member-page .cf7-nav .wpcf7-submit, .member-page .cf7-nav .cf7-next {
  background: linear-gradient(135deg, var(--m-brand), var(--m-brand-2)); border: 0; color: #fff; font-weight: 600;
}
@media (max-width: 575.98px) { .cf7-progress-steps .t { display: none; } }

/* Payment */
.summary-list { margin: 0; }
.summary-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--m-line); }
.summary-list > div:last-child { border-bottom: 0; }
.summary-list dt { font-weight: 500; color: var(--m-muted); }
.summary-list dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
@media (max-width: 575.98px) {
  .summary-list > div { flex-direction: column; gap: 2px; }
  .summary-list dd { text-align: left; }
}
.summary-total {
  display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding: 16px 18px;
  border-radius: 14px; background: linear-gradient(135deg, var(--m-brand), var(--m-brand-2)); color: #fff;
}
.summary-total strong { font-size: 1.35rem; }
.payment-form .btn-check {
  position: absolute !important; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.payment-form .pay-method {
  display: flex !important; padding-left: 16px; margin: 0; width: 100%; box-shadow: none; outline: 0; flex-direction: column; gap: 2px; height: 100%; padding: 14px 16px; border: 2px solid var(--m-line);
  border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s;
}
.payment-form .pay-method:hover { border-color: rgba(15, 110, 140, .4); }
.btn-check:checked + .payment-form .btn-check {
  position: absolute !important; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.pay-method { border-color: var(--m-brand); background: rgba(15, 110, 140, .06); }
.btn-check:focus-visible + .payment-form .btn-check {
  position: absolute !important; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.pay-method { box-shadow: 0 0 0 4px rgba(15, 110, 140, .2); }
.pay-method-name { font-weight: 700; }
.pay-method-acc { font-family: ui-monospace, monospace; font-size: .95rem; color: var(--m-ink); }
.pay-method-note { font-size: .8rem; color: var(--m-muted); }
.payment-form .form-control { padding: 12px 14px; border-radius: 12px; }
.member-success-icon { font-size: 3rem; color: #198754; line-height: 1; margin-bottom: 12px; }

/* Dashboard */
.dash-hero {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px;
  padding: 28px 32px; border-radius: 22px; margin-bottom: 20px; color: #fff;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.18), transparent 40%), linear-gradient(135deg, var(--m-brand), var(--m-brand-2));
}
.dash-avatar {
  display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.6); font-weight: 700; font-size: 1.3rem;
}
.dash-hello { opacity: .85; font-size: .9rem; }
.dash-name { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 800; }
.dash-badge { font-size: .85rem; padding: 8px 14px; }
.dash-stats { margin-bottom: 24px; }
.dash-stat {
  height: 100%; display: flex; flex-direction: column; gap: 4px; padding: 18px 20px;
  background: #fff; border: 1px solid var(--m-line); border-radius: 16px;
}
.dash-stat i { font-size: 1.3rem; color: var(--m-brand); }
.dash-stat-label { font-size: .8rem; color: var(--m-muted); font-weight: 500; }
.dash-stat-value { font-size: 1.05rem; }
.member-login form p { margin-bottom: 14px; }
.member-login label { display: block; font-weight: 600; margin-bottom: 6px; }
.member-login input[type=text], .member-login input[type=password] {
  width: 100%; padding: 12px 14px; border: 1px solid #d5deea; border-radius: 12px;
}
.member-login .login-remember label { display: inline-flex; gap: 8px; font-weight: 500; }
.member-login input[type=submit] {
  width: 100%; padding: 12px; border: 0; border-radius: 999px; color: #fff; font-weight: 600;
  background: linear-gradient(135deg, var(--m-brand), var(--m-brand-2));
}
