.container { min-height: 100%; display: grid; grid-template-rows: auto 1fr; align-content: start; }

.form-card { max-width: 820px; margin: 16px auto 40px; padding: 16px; border-radius: 16px; border: 1px solid var(--border); background: rgba(0,0,0,0.65); backdrop-filter: saturate(90%) blur(4px); display: grid; justify-items: center; }
.form-card > .header,
.form-card > form { max-width: var(--content-max, 720px); margin-left: auto; margin-right: auto; }

/* Ensure hidden attribute truly hides even if a component sets display */
[hidden] { display: none !important; }
:root {
  --bg-overlay: rgba(0,0,0,0.5);
  --bg-dim: rgba(0,0,0,0.6);
  --text: #e8eaed;
  --muted: #a1a7b3;
  --primary: #6ee7b7;
  --primary-700: #10b981;
  --error: #ef4444;
  --card: rgba(17, 24, 39, 0.75);
  --border: rgba(255,255,255,0.08);
  --content-max: 720px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji';
  color: var(--text);
  background: #0b0f14 url('./bg.jpg') center/cover no-repeat fixed;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  pointer-events: none;
}

.container {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
}

.form-card > .header { width: 100%; }
.header { padding: 24px 16px 8px; max-width: 820px; margin: 0 auto; text-align: center; }
.header h1 { margin: 0 0 6px; font-size: 24px; font-weight: 700; }
.subtitle { margin: 0 0 14px; color: var(--muted); font-size: 14px; }

.progress { height: 6px; background: rgba(255,255,255,0.1); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-700)); width: 0%; transition: width 240ms ease; }

form { max-width: 820px; margin: 12px auto 0; padding: 0; }
.step { background: transparent; border: 1px solid var(--border); border-radius: 14px; padding: 18px 18px 96px; display: none; animation: fadeIn 220ms ease; max-width: var(--content-max); margin-left: auto; margin-right: auto; }
.step.active { display: block; }
.question { font-size: 18px; font-weight: 600; margin-bottom: 14px; }
.hint { color: var(--muted); font-size: 13px; margin-top: 8px; }

input[type="number"], input[type="date"], textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0,0,0,0.65);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
}
input[type="tel"], input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0,0,0,0.65);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
}
input::placeholder, textarea::placeholder { color: #8f96a3; }

.options { display: grid; grid-template-columns: 1fr; gap: 10px; }
.options.column { grid-template-columns: 1fr; }

.option { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(0,0,0,0.5); }
.option:hover { border-color: rgba(255,255,255,0.18); }
.option input { margin-top: 2px; }
.option.multiline span { display: grid; gap: 4px; }
.option strong { font-weight: 600; }
.option em { color: var(--muted); font-style: normal; font-size: 13px; }

.other-input { margin-top: 8px; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.startdate { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.date-input { flex: 1; min-width: 220px; }

.controls { position: sticky; bottom: 0; display: flex; gap: 10px; justify-content: center; margin-top: 16px; padding: 10px 8px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0)); backdrop-filter: saturate(90%) blur(6px); z-index: 10; }
.btn { appearance: none; border: 1px solid var(--border); color: var(--text); background: rgba(255,255,255,0.06); padding: 10px 14px; border-radius: 10px; font-weight: 600; cursor: pointer; }
.btn:hover { background: rgba(255,255,255,0.1); }
.btn.primary { background: var(--primary-700); border-color: transparent; color: #082016; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.review { display: grid; gap: 8px; border: 1px dashed var(--border); border-radius: 10px; padding: 12px; background: rgba(0,0,0,0.5); }
.review .row { display: grid; grid-template-columns: 180px 1fr; gap: 8px; font-size: 14px; }
.review .label { color: var(--muted); }

.result { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg-dim); }
.result .card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; max-width: 520px; margin: 0 16px; text-align: center; }

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

@media (min-width: 720px) {
  .header h1 { font-size: 28px; }
  .step { padding: 22px; }
  .options { grid-template-columns: 1fr 1fr; }
  .options.column { grid-template-columns: 1fr; }
}


