/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --card: #111111;
  --card-border: #1e1e1e;
  --surface: #161616;
  --accent: #E94A22;
  --accent-hover: #d4401d;
  --accent-glow: rgba(233, 74, 34, 0.15);
  --text: #e5e7eb;
  --text-muted: #6b7280;
  --text-dim: #4b5563;
  --border: #222222;
  --input-bg: #0f0f0f;
  --input-border: #2a2a2a;
  --input-focus: #E94A22;
  --radius: 12px;
  --radius-sm: 8px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* === Layout === */
.container {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

/* === Header === */
.header {
  padding: 8px 0 28px;
  text-align: center;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* === Progress Bar === */
.progress-bar {
  display: flex;
  align-items: flex-start;
  padding: 0 4px;
  margin-bottom: 28px;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.step-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--input-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  transition: all 0.3s;
}

.step-label {
  font-size: 9px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.step-indicator.active .step-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.step-indicator.active .step-label {
  color: var(--accent);
  font-weight: 600;
}

.step-indicator.done .step-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
}

.step-indicator.done .step-label {
  color: var(--accent);
  font-weight: 600;
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--input-border);
  margin-top: 16px;
  transition: background 0.3s;
}

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

/* === Form Steps === */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Form Card === */
.form-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
}

.section-header {
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-body {
  padding: 20px 24px 24px;
}

/* === Fields === */
.field {
  margin-bottom: 16px;
}

.field:last-child {
  margin-bottom: 0;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.req {
  color: var(--accent);
}

input[type="text"],
input[type="date"],
textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

input[type="text"]:focus,
input[type="date"]:focus,
textarea:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-dim);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

/* === Radio Grid (Investment) === */
.radio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.radio-card {
  position: relative;
  cursor: pointer;
  margin-bottom: 0;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-card span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
  text-align: center;
}

.radio-card input[type="radio"]:checked + span {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.radio-card:hover span {
  border-color: #333;
  color: var(--text);
}

/* === Radio List (Options) === */
.radio-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 0;
}

.radio-option:hover {
  border-color: #333;
}

.radio-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--input-border);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.2s;
  position: relative;
}

.radio-option input[type="radio"]:checked {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--input-bg);
}

.radio-option input[type="radio"]:checked ~ span {
  color: #fff;
}

.radio-option span {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.inline-input {
  flex: 1;
  padding: 4px 8px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-bottom: 1px solid var(--input-border) !important;
  border-radius: 0 !important;
  font-size: 13px !important;
  color: var(--text) !important;
  min-width: 0;
}

.inline-input:focus {
  border-bottom-color: var(--accent) !important;
  box-shadow: none !important;
}

/* === Buttons === */
.btn-row {
  margin-top: 24px;
}

.btn-row-split {
  display: flex;
  gap: 12px;
}

.btn-next {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  width: 100%;
}

.btn-next:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-next:active {
  transform: scale(0.98);
}

.btn-next:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-back {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: transparent;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #9ca3af;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-back:hover {
  border-color: #444;
  color: var(--text);
}

/* === Footer === */
.footer {
  text-align: center;
  padding: 32px 0 16px;
}

.footer p {
  font-size: 12px;
  color: var(--text-dim);
}

/* === Success Overlay === */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 100;
  padding: 20px;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.success-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  max-width: 380px;
  width: 100%;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.overlay.active .success-card {
  transform: translateY(0);
}

.success-icon {
  margin-bottom: 20px;
}

.success-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.success-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.success-divider {
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 24px auto 0;
}

/* === Responsive === */
@media (max-width: 640px) {
  .container {
    padding: 16px 12px 32px;
  }

  .form-body {
    padding: 16px 20px 20px;
  }

  .section-header {
    padding: 20px 20px 16px;
  }

  .header {
    padding: 4px 0 20px;
  }

  .progress-bar {
    margin-bottom: 20px;
  }

  .step-circle {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }

  .step-line {
    margin-top: 14px;
  }

  .step-label {
    font-size: 8px;
  }
}
