/* Core design system: colors, typography, base elements */
:root {
  --bg: #0b0c10;
  --bg-elev: #111317;
  --card: #161a21;
  --text: #e6edf3;
  --muted: #9aa7b5;
  --primary: #3b82f6;
  --primary-600: #2563eb;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --border: #243045;
  --ring: rgba(59,130,246,.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 800px at 80% -10%, rgba(59,130,246,.08), transparent 60%),
              radial-gradient(1000px 600px at -10% 120%, rgba(16,185,129,.07), transparent 60%),
              linear-gradient(180deg, #0b0c10 0%, #0b0c10 100%);
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
}

/* Card */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 6px 30px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.03);
}
.card-body { padding: 20px; }
.card-footer { padding: 16px 20px; border-top: 1px solid var(--border); }

/* Typography */
h1, h2, h3 { margin: 0 0 8px; line-height: 1.2; }
.muted { color: var(--muted); }
.title { font-size: 28px; font-weight: 700; letter-spacing: .2px; }
.section-title { font-size: 18px; font-weight: 600; }

/* Buttons */
.btn { 
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  padding: 12px 16px; border-radius: 12px; font-weight: 600; cursor: pointer;
  transition: transform .08s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:hover { border-color: #2f415e; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(180deg, var(--primary), var(--primary-600)); border-color: transparent; color: white; box-shadow: 0 8px 24px rgba(37,99,235,.35); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-danger { background: linear-gradient(180deg, var(--danger), #dc2626); border-color: transparent; color: white; }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }

/* Inputs */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.label { font-weight: 600; color: var(--muted); }
input, select, textarea, .input {
  background: #0f1320;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px; outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus, .input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }

/* Stepper */
.wizard { display: contents; }
.wizard-sidebar { position: sticky; top: 16px; height: fit-content; }
.steps { list-style: none; margin: 0; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.step-item { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.step-item.active { border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.step-index { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px; background: #0f1320; border: 1px solid var(--border); font-weight: 700; color: var(--muted); }
.step-item.active .step-index { background: var(--primary); color: white; border-color: transparent; }
.step-label { font-weight: 600; }

/* Panels */
.panel { display: none; }
.panel.active { display: block; animation: fadeIn .24s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px);} to { opacity:1; transform: none; } }

/* Question styles */
.question { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.helper { color: var(--muted); font-size: 14px; }
.options { display: grid; grid-template-columns: 1fr; gap: 10px; }
.option { border: 1px solid var(--border); background: #0f1320; border-radius: 12px; padding: 14px; cursor:pointer; transition: transform .06s ease, border-color .2s ease; }
.option:hover { transform: translateY(-1px); border-color: #2f415e; }

/* Summary accordion basic */
.accordion { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.accordion-item + .accordion-item { border-top: 1px solid var(--border); }
.accordion-button { width: 100%; text-align: left; background: #0f1320; color: var(--text); border: 0; padding: 14px; font-weight: 700; cursor: pointer; }
.accordion-body { padding: 14px; background: #0c101a; }

/* Utilities */
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.col { flex: 1; min-width: 240px; }
.spacer { height: 10px; }
.actions { display: flex; gap: 10px; justify-content: flex-end; }

/* Mobile */
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
}
