/* ============================================================
   Registration form + payment step + badge
   ============================================================ */
.form-wrap { max-width: 880px; margin: 0 auto; }

/* ---------- sections ---------- */
.fsec {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  padding: 26px 26px 22px;
  margin-bottom: 20px;
}
.fsec > h2 {
  display: flex; align-items: center; gap: 12px;
  font-size: 18px; font-weight: 600; margin-bottom: 20px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.fsec > h2 .n {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px;
  background: rgba(214, 81, 224, .16); border: 1px solid rgba(214, 81, 224, .38);
  color: var(--teal); font-size: 14px; font-weight: 700;
  display: grid; place-items: center;
}

/* ---------- fields ---------- */
.fld { display: block; margin-bottom: 16px; }
.fld > span {
  display: block; font-size: 12px; letter-spacing: .6px;
  color: #bcd0e8; font-weight: 500; margin-bottom: 7px;
}
.fld > span b { color: var(--teal); font-weight: 700; }
.fld input[type=text], .fld input:not([type]), .fld input[type=email],
.fld input[type=tel], .fld select, .fld textarea {
  width: 100%; padding: 12px 15px; border-radius: 12px;
  border: 1px solid var(--line); font-family: var(--font-body);
  font-size: 14.5px; color: var(--ink); resize: vertical;
}
.fld .fhint { display: block; font-size: 12px; color: #7d97b8; font-style: normal; margin-top: 6px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.frow .fld.sm { max-width: 140px; }
@media (max-width: 680px) { .frow { grid-template-columns: 1fr; } .frow .fld.sm { max-width: none; } }

/* Only flag empty required fields once the form has been submitted — most of
   these have no placeholder, so an :invalid rule alone would paint the whole
   form red before anyone has typed. */
#reg-form.submitted .fld input:invalid,
#reg-form.submitted .fld select:invalid,
#reg-form.submitted .fld textarea:invalid {
  border-color: #ff8fa8 !important;
}
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--teal) !important; }

/* ---------- radio / checkbox choices ---------- */
.choices { display: grid; gap: 8px; }
.choices.row { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
@media (max-width: 560px) { .choices.row { grid-auto-flow: row; } }

.choice {
  display: flex; align-items: center; gap: 11px;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 15px; cursor: pointer;
  background: rgba(6, 14, 38, .38);
  font-size: 14px; color: #cfe0f2; transition: .16s;
}
.choice:hover { border-color: rgba(214, 81, 224, .45); }
.choice input { accent-color: #d651e0; width: 17px; height: 17px; flex-shrink: 0; }
.choice span { flex: 1; }
.choice em {
  font-style: normal; font-size: 12.5px; font-weight: 600;
  color: var(--teal); white-space: nowrap;
}
.choice:has(input:checked) {
  border-color: var(--teal); background: rgba(214, 81, 224, .12); color: var(--ink);
}

.consent {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 11px 0; font-size: 14px; color: #cfe0f2; cursor: pointer; font-weight: 300;
}
.consent input { accent-color: #d651e0; width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.consent b { color: var(--teal); }

.fee-note {
  margin-top: 14px; padding: 12px 16px; border-radius: 12px;
  background: rgba(214, 81, 224, .1); border: 1px solid rgba(214, 81, 224, .3);
  font-size: 14px; color: #cfe0f2;
}
.fee-note b { color: var(--teal); font-weight: 700; }

/* ---------- submit ---------- */
.ferr {
  background: rgba(255, 143, 168, .12); border: 1px solid rgba(255, 143, 168, .45);
  color: #ffc9d5; border-radius: 12px; padding: 14px 18px; font-size: 14px; margin-bottom: 18px;
}
.fsubmit { text-align: center; padding: 6px 0 10px; }
.fsubmit .btn { min-width: 220px; justify-content: center; font-size: 15.5px; padding: 15px 30px; }
.fsubmit .btn:disabled { opacity: .6; cursor: wait; }
.fnote { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.fnote b { color: var(--teal); }

/* ---------- payment step ---------- */
.pay-card { text-align: center; padding: 40px 34px 34px; }
.pay-tick {
  width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%;
  background: rgba(214, 81, 224, .14); border: 1px solid rgba(214, 81, 224, .45);
  color: var(--teal); font-size: 30px; display: grid; place-items: center;
}
.pay-card h2 { font-size: 26px; font-weight: 600; }
.pay-ref { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.pay-ref b { color: var(--teal); font-family: var(--font-head); letter-spacing: 1px; }

.pay-amount {
  margin: 24px auto; max-width: 300px; padding: 16px;
  border-radius: 14px; background: rgba(6, 14, 38, .5); border: 1px solid var(--line);
}
.pay-amount span { display: block; font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.pay-amount b {
  font-family: var(--font-head); font-size: 34px; font-weight: 600;
  background: linear-gradient(120deg, var(--teal), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.pay-card h3 { font-size: 18px; font-weight: 600; margin-top: 8px; }
.pay-instr { color: var(--muted); font-size: 14px; font-weight: 300; margin: 8px auto 20px; max-width: 520px; }

.pay-box {
  display: flex; align-items: center; gap: 18px; text-align: left;
  border: 1px solid var(--glass-border); border-radius: 16px;
  background: rgba(6, 14, 38, .5); padding: 18px 20px; margin-bottom: 18px;
}
@media (max-width: 560px) { .pay-box { flex-direction: column; text-align: center; } }
.pay-bank {
  width: 82px; height: 58px; flex-shrink: 0; border-radius: 11px;
  background: #fff; display: grid; place-items: center; overflow: hidden; padding: 6px;
}
.pay-bank img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pay-logo-empty { color: #1b3a8a; font-family: var(--font-head); font-weight: 800; font-size: 20px; letter-spacing: 1px; }
.pay-bank-name { font-size: 12.5px; color: var(--muted); }
.pay-phone {
  display: block; font-family: var(--font-head); font-size: 24px; font-weight: 600;
  color: var(--ink); letter-spacing: .5px; margin: 2px 0 4px;
}
.pay-phone:hover { color: var(--teal); }
.pay-acct { font-size: 12.5px; color: var(--muted); }
.pay-box .btn { margin-left: auto; flex-shrink: 0; }
@media (max-width: 560px) { .pay-box .btn { margin: 0; } }

.pay-foot { font-size: 13px; color: var(--muted); font-weight: 300; }
.pay-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

@media print {
  .site-header, .site-footer, .page-hero, .pay-actions, .range { display: none !important; }
  body::before, body::after { display: none !important; }
  body { background: #fff !important; color: #111 !important; }
  .pay-card { border: 1px solid #ccc !important; background: #fff !important; box-shadow: none !important; }
  .pay-card h2, .pay-phone, .pay-amount b { color: #111 !important; -webkit-text-fill-color: #111 !important; }
}

/* ---------- abstract: choosing a template ---------- */
.type-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
@media (max-width: 720px) { .type-pick { grid-template-columns: 1fr; } }

.type-card {
  display: grid; gap: 8px; text-align: left; cursor: pointer;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius); backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow); padding: 26px 24px 22px;
  font-family: var(--font-body); color: var(--ink); transition: .2s;
}
.type-card:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: var(--shadow-lg); }
.type-ico {
  width: 52px; height: 52px; border-radius: 14px; font-size: 25px;
  border: 1px solid rgba(180, 225, 255, .3); color: #bfe6ff;
  display: grid; place-items: center; margin-bottom: 6px;
}
.type-card:hover .type-ico { border-color: var(--teal); color: var(--teal); }
.type-card b { font-family: var(--font-head); font-size: 19px; font-weight: 600; }
.type-card em { font-style: normal; font-size: 13.5px; color: var(--muted); font-weight: 300; }
.type-secs {
  font-size: 12px; color: #8fb4dd; border-top: 1px solid var(--line);
  padding-top: 12px; margin-top: 6px; line-height: 1.6;
}
.type-go {
  display: flex; align-items: center; gap: 8px; margin-top: 6px;
  font-size: 13px; font-weight: 600; color: var(--teal);
}

.reqs { padding: 24px 26px 20px; }
.reqs h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }

/* chosen-type bar */
.type-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: rgba(214, 81, 224, .1); border: 1px solid rgba(214, 81, 224, .32);
  border-radius: 14px; padding: 14px 20px; margin-bottom: 20px;
}
.type-kicker {
  display: block; font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted); font-weight: 600;
}
.type-bar b { font-family: var(--font-head); font-size: 17px; font-weight: 600; color: var(--teal); }
.type-bar button { margin-left: auto; }

.sec-hint { font-size: 13px; color: var(--muted); font-weight: 300; margin: -8px 0 14px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* live counters */
.fhint.over, .fhint .over { color: #ff8fa8 !important; }
.fhint.over span { color: #ff8fa8; font-weight: 700; }
.wordbar {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); background: rgba(6, 14, 38, .5);
  border-radius: 999px; padding: 9px 20px; margin-bottom: 18px;
  font-size: 13px; color: var(--muted);
}
.wordbar b { font-family: var(--font-head); font-size: 15px; color: #bfe6ff; font-weight: 600; }
.wordbar.near { border-color: rgba(255, 209, 102, .5); }
.wordbar.near b { color: #ffd166; }
.wordbar.over { border-color: rgba(255, 143, 168, .6); background: rgba(255, 143, 168, .1); }
.wordbar.over b { color: #ff8fa8; }

#abs-form.submitted .fld textarea:invalid, #abs-form.submitted .fld input:invalid {
  border-color: #ff8fa8 !important;
}
