/* ============================================================
   registration.css — Exium Classes Registration Page
   Extends base.css + components.css design tokens
   ============================================================ */

/* ── Page hero ── */
.reg-hero {
  position: relative;
  z-index: 1;
  padding: 7rem 4rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.reg-hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 30%, rgba(74, 111, 199, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.reg-step-pill {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f07070;
  border: 1px solid rgba(240, 112, 112, 0.3);
  border-radius: 2px;
  padding: 0.25rem 0.65rem;
  display: inline-block;
  margin-bottom: 1.2rem;
  animation: fadeUp 0.5s ease both;
}

.reg-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  animation: fadeUp 0.6s 0.1s ease both;
}

.reg-hero h1 em {
  font-style: italic;
  color: var(--blue-light);
}

.reg-hero p {
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.75;
  max-width: 46ch;
  margin-top: 1rem;
  animation: fadeUp 0.6s 0.2s ease both;
}

/* ── Progress steps ── */
.reg-progress {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 4rem 2.5rem;
  animation: fadeUp 0.6s 0.25s ease both;
}

.reg-step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.reg-step.active {
  color: var(--white);
}

.reg-step.done {
  color: #5dba8a;
}

.reg-step__num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(200, 210, 232, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  flex-shrink: 0;
}

.reg-step.active .reg-step__num {
  background: var(--blue-acc);
  border-color: var(--blue-acc);
  color: var(--white);
}

.reg-step.done .reg-step__num {
  background: rgba(37, 168, 95, 0.2);
  border-color: rgba(37, 168, 95, 0.4);
  color: #5dba8a;
}

.reg-step__line {
  flex: 1;
  height: 1px;
  background: rgba(200, 210, 232, 0.15);
  margin: 0 0.75rem;
  min-width: 40px;
}

.reg-step.done + .reg-step__line {
  background: rgba(37, 168, 95, 0.3);
}

/* ── Main layout ── */
.reg-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 300px 1fr;
  margin: 0 4rem 5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.reg-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-acc) 0%, var(--red) 100%);
  z-index: 2;
}

/* ── Sidebar info ── */
.reg-sidebar {
  background: rgba(26, 45, 90, 0.55);
  border-right: 1px solid var(--line);
  padding: 2.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.reg-sidebar__section-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
  display: block;
}

.reg-sidebar__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.reg-sidebar p {
  font-size: 0.83rem;
  color: var(--text);
  line-height: 1.7;
}

/* Batch pills */
.batch-pills {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.batch-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.batch-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-acc);
  flex-shrink: 0;
}

/* Trust points */
.trust-points {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.trust-point {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.55;
}

.trust-point__icon {
  width: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  color: #5dba8a;
  font-style: normal;
}

/* ── Form panel ── */
.reg-form-panel {
  background: rgba(255, 255, 255, 0.02);
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
}

.reg-form-panel h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.reg-form-panel .reg-form-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ── Form grid ── */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group label .req {
  color: #f07070;
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(200, 210, 232, 0.15);
  border-radius: 4px;
  padding: 0.72rem 0.95rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(122, 141, 176, 0.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(74, 111, 199, 0.55);
  background: rgba(74, 111, 199, 0.05);
}

.form-group input.error,
.form-group select.error {
  border-color: rgba(204, 31, 31, 0.5);
}

.form-group select option {
  background: var(--navy-dark);
  color: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}

/* Radio group (mode / interest) */
.radio-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.radio-pill {
  flex: 1;
  min-width: 120px;
}

.radio-pill input[type="radio"] {
  display: none;
}

.radio-pill label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(200, 210, 232, 0.15);
  border-radius: 4px;
  font-size: 0.83rem;
  font-family: var(--font-sans);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  text-transform: none;
  letter-spacing: 0;
}

.radio-pill input[type="radio"]:checked + label {
  border-color: var(--blue-acc);
  background: rgba(74, 111, 199, 0.12);
  color: var(--white);
}

/* Field error message */
.field-error {
  font-size: 0.72rem;
  color: #f07070;
  margin-top: 0.2rem;
}

/* Submit button */
.reg-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.reg-submit {
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 4px;
  padding: 0.95rem 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reg-submit:hover  { background: var(--red-bright); transform: translateY(-2px); }
.reg-submit:active { transform: translateY(0); }
.reg-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.reg-submit-note {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Loading spinner inside button */
.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.reg-submit.loading .btn-spinner { display: block; }
.reg-submit.loading .btn-text    { display: none; }

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

/* Error banner */
.form-error-banner {
  background: rgba(204, 31, 31, 0.1);
  border: 1px solid rgba(204, 31, 31, 0.3);
  border-radius: 4px;
  padding: 0.85rem 1.1rem;
  font-size: 0.83rem;
  color: #f07070;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: none;
}

/* ── Pay page specific ── */
.pay-hero {
  position: relative;
  z-index: 1;
  padding: 7rem 4rem 2rem;
}

.pay-wrap {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 4rem 5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.pay-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-acc), var(--red));
  z-index: 2;
}

.pay-inner {
  padding: 2.5rem;
}

.pay-amount-box {
  background: rgba(74, 111, 199, 0.07);
  border: 1px solid rgba(74, 111, 199, 0.2);
  border-radius: 6px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.pay-amount {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--white);
}

.pay-amount-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.pay-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 4px;
  padding: 1rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.pay-btn:hover  { background: var(--red-bright); transform: translateY(-2px); }

.pay-skip-link {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  display: block;
  margin-top: 1.5rem;
  text-decoration: none;
  transition: color 0.2s;
}

.pay-skip-link:hover { color: var(--white); }

.pay-secure-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* ── Thank-you page ── */
.ty-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 5rem 2rem;
  text-align: center;
}

.ty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(37, 168, 95, 0.12);
  border: 1px solid rgba(37, 168, 95, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.5s ease both;
}

.ty-wrap h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  animation: fadeUp 0.6s 0.1s ease both;
}

.ty-wrap p {
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.75;
  max-width: 44ch;
  margin-bottom: 2rem;
  animation: fadeUp 0.6s 0.2s ease both;
}

.ty-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.6s 0.3s ease both;
}

.ty-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #25D366;
  color: var(--white);
  text-decoration: none;
  padding: 0.9rem 1.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}

.ty-wa-btn:hover { background: #1fbc5a; transform: translateY(-2px); }

.ty-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--white);
  text-decoration: none;
  padding: 0.9rem 1.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s;
}

.ty-secondary-btn:hover { background: rgba(255, 255, 255, 0.1); }

.ty-reg-id {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.3rem 0.75rem;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s 0.15s ease both;
  display: inline-block;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .reg-hero   { padding: 6rem 1.5rem 2rem; }
  .reg-progress { padding: 0 1.5rem 2rem; }

  .reg-wrap {
    grid-template-columns: 1fr;
    margin: 0 1.5rem 4rem;
  }

  .reg-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .reg-form-panel { padding: 2rem 1.5rem; }

  .form-grid-2 { grid-template-columns: 1fr; }

  .pay-hero { padding: 6rem 1.5rem 2rem; }
  .pay-wrap { margin: 0 1.5rem 4rem; max-width: 100%; }
}
