:root {
  --bg: #0f172a;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --input: #1f2937;
  --primary: #0ea5e9;
  --danger-bg: #fee2e2;
  --danger: #991b1b;
  --border: #374151;
}

* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--text); 
  font: 16px/1.5 system-ui, sans-serif;
}
.container { max-width: 880px; margin: 40px auto; padding: 0 16px; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px;
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
  width:100%;
}
h1 { margin: 0 0 8px; font-size: 28px; }
.muted { color: var(--muted); margin-top: 0; }

.field { display: block; margin: 16px 0; }
.field > span, legend { display: block; margin-bottom: 8px; font-weight: 600; }

select {
  width: 100%; border: 1px solid var(--border); background: var(--input); color: var(--text);
  border-radius: 12px; padding: 10px 12px; outline: none;
}
select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,165,233,.25); }

.radio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 10px; }
.radio-tile {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: 12px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--input); cursor: pointer; user-select: none; transition: .15s ease;
}
.radio-tile:hover { border-color: var(--primary); }
.radio-tile input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.radio-tile input:checked + span { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 8px; padding: 2px 6px; }

.btn-primary {
  width: 100%; padding: 12px 14px; border: none; border-radius: 12px;
  background: var(--primary); color: #fff; font-weight: 600; cursor: pointer;
}
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.errors { background: var(--danger-bg); color: var(--danger); border: 1px solid #fecaca;
  padding: 12px; border-radius: 10px; margin-bottom: 12px; }
.hidden { display: none; }
