/* Broker-style registration / lead capture flow */
:root {
  --reg-green: #1a3d2e;
  --reg-green-mid: #234a38;
  --reg-accent: #b8f028;
  --reg-accent-hover: #c8ff3d;
  --reg-form-bg: #ffffff;
  --reg-ink: #111111;
  --reg-muted: #6b7280;
  --reg-line: #e5e7eb;
  --reg-error: #dc2626;
}

.reg-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(300px, 42%) 1fr;
  background: var(--reg-form-bg);
}

.reg-side {
  position: relative;
  padding: 48px 40px 32px;
  background: linear-gradient(165deg, #1f4d38 0%, var(--reg-green) 45%, #0f2419 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.reg-side::after {
  content: '';
  position: absolute;
  inset: auto -20% -10% -20%;
  height: 45%;
  background: radial-gradient(ellipse at center, rgba(184,240,40,0.12), transparent 70%);
  pointer-events: none;
}

.reg-side-brand { margin-bottom: 40px; position: relative; z-index: 1; }
.reg-side-brand img { height: 32px; filter: brightness(0) invert(1); }

.reg-side h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
  max-width: 360px;
  position: relative;
  z-index: 1;
}

.reg-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.reg-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
}

.reg-benefits .rb-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--reg-accent);
  color: #111;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.reg-side-art {
  margin-top: auto;
  padding-top: 32px;
  position: relative;
  z-index: 1;
  opacity: 0.85;
}

.reg-main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 32px 48px;
  overflow-y: auto;
}

.reg-panel {
  width: 100%;
  max-width: 520px;
  color: var(--reg-ink);
}

.reg-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
}

.reg-step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--reg-line);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--reg-muted);
  background: #fff;
  flex-shrink: 0;
  transition: all 0.2s;
}

.reg-step-dot.active {
  background: var(--reg-accent);
  border-color: var(--reg-accent);
  color: #111;
}

.reg-step-dot.done {
  background: var(--reg-accent);
  border-color: var(--reg-accent);
  color: #111;
}

.reg-step-line {
  flex: 1;
  height: 2px;
  background: var(--reg-line);
  min-width: 24px;
}

.reg-step-line.done { background: var(--reg-accent); }

.reg-heading {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px;
  color: var(--reg-ink);
}

.reg-field { margin-bottom: 16px; }

.reg-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--reg-ink);
}

.reg-label .req { color: var(--reg-error); }

.reg-hint {
  font-size: 11px;
  color: var(--reg-muted);
  margin-top: 4px;
}

.reg-input,
.reg-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--reg-line);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--reg-ink);
  transition: border-color 0.15s;
}

.reg-input:focus,
.reg-select:focus {
  outline: none;
  border-color: #9ca3af;
  box-shadow: 0 0 0 3px rgba(184,240,40,0.25);
}

.reg-input.err { border-color: var(--reg-error); }

.reg-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.reg-account-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.reg-account-opt {
  border: 1px solid var(--reg-line);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  transition: all 0.15s;
}

.reg-account-opt:hover { border-color: #9ca3af; }

.reg-account-opt.selected {
  background: #111;
  color: #fff;
  border-color: #111;
}

.reg-account-opt input { display: none; }

.reg-legal {
  font-size: 11px;
  color: var(--reg-muted);
  line-height: 1.55;
  margin: 16px 0;
}

.reg-legal a { color: var(--reg-ink); font-weight: 600; }

.reg-btn {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  background: var(--reg-accent);
  color: #111;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 8px;
}

.reg-btn:hover { background: var(--reg-accent-hover); }
.reg-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.reg-btn-ghost {
  background: transparent;
  border: 1px solid var(--reg-line);
  color: var(--reg-ink);
  margin-top: 10px;
}

.reg-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.reg-btn-row .reg-btn { flex: 1; margin-top: 0; }

.reg-alert {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
  background: #fef2f2;
  color: var(--reg-error);
  border: 1px solid #fecaca;
}

.reg-alert.hidden { display: none; }

.reg-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 11px;
  color: var(--reg-muted);
}

.reg-success {
  text-align: center;
  padding: 40px 20px;
}

.reg-success-ico {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--reg-accent);
  display: grid;
  place-items: center;
  font-size: 28px;
  margin: 0 auto 20px;
}

.reg-success h3 { font-size: 22px; margin: 0 0 10px; }
.reg-success p { color: var(--reg-muted); margin: 0 0 20px; }

.reg-foot {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--reg-muted);
}

.reg-foot a { color: var(--reg-ink); font-weight: 600; }

.pw-wrap { position: relative; }
.pw-wrap .reg-input { padding-right: 52px; }
.pw-wrap .pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 12px;
  color: var(--reg-muted);
  cursor: pointer;
}

/* Landing embed — dark section, light form */
.invest-section {
  padding: 0 !important;
  background: #0a0a0a;
}

.invest-section .reg-layout {
  min-height: auto;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
}

.invest-section-wrap {
  padding: 48px 24px;
  max-width: 1148px;
  margin: 0 auto;
}

.invest-section-head {
  text-align: center;
  margin-bottom: 32px;
}

.invest-section-head h2 {
  font-size: clamp(26px, 4vw, 36px);
  margin: 0 0 10px;
}

.invest-section-head p {
  color: rgba(255,255,255,0.55);
  margin: 0;
}

@media (max-width: 900px) {
  .reg-layout { grid-template-columns: 1fr; }
  .reg-side { padding: 32px 24px; min-height: auto; }
  .reg-side-art { display: none; }
  .reg-main { padding: 28px 20px 36px; }
  .reg-row-2 { grid-template-columns: 1fr; }
}
