*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --gold: #c9a84c;
  --text: #ffffff;
  --text-dim: #888888;
  --radius: 8px;
}

html, body { min-height: 100%; background: var(--bg); }
.hide { display: none !important; }

body {
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input, textarea { font-family: inherit; }
::selection { background: var(--gold); color: #0a0a0a; }

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

#screen-root {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 24px;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
  overflow-y: auto;
  opacity: 0;
  transform: translateX(24px);
  animation: screen-in 350ms ease forwards;
}
@keyframes screen-in {
  to { opacity: 1; transform: translateX(0); }
}
.screen.landing, .screen.confirmation, .screen.submitting { animation: fade-in 400ms ease forwards; }
@keyframes fade-in {
  from { opacity: 0; } to { opacity: 1; }
}

/* ---- landing ---- */
.landing-inner { text-align: center; }
.brand { font-size: 11px; letter-spacing: 0.2em; color: var(--text-dim); margin-bottom: 32px; }
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.headline { font-size: clamp(28px, 6vw, 42px); font-weight: 800; line-height: 1.25; margin-bottom: 20px; }
.subtitle { font-size: 15px; line-height: 1.6; color: var(--text-dim); max-width: 440px; margin: 0 auto 36px; }

.btn-gold {
  background: var(--gold); color: #0a0a0a; border: none; border-radius: var(--radius);
  font-size: 15px; font-weight: 700; padding: 16px 32px; cursor: pointer; transition: all 300ms ease;
}
.btn-gold:hover { background: #e0bd5c; transform: translateY(-1px); }
.btn-gold:active { transform: translateY(0); }
.btn-gold:disabled { opacity: 0.6; cursor: default; transform: none; }

/* ---- progress bar ---- */
.progress-wrap { padding: 20px 24px 0; max-width: 640px; margin: 0 auto; width: 100%; }
.progress-track { height: 3px; background: #1a1a1a; border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--gold); border-radius: 3px; transition: width 300ms ease; }
.progress-label { font-size: 11px; letter-spacing: 0.1em; color: var(--text-dim); margin-top: 8px; }

/* ---- question screen ---- */
.question-text { font-size: clamp(22px, 5.5vw, 32px); font-weight: 700; line-height: 1.3; margin-bottom: 32px; }

.options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.option {
  background: #141414; border: 1.5px solid #262626; color: var(--text); border-radius: var(--radius);
  padding: 16px 18px; font-size: 15px; text-align: left; cursor: pointer; transition: all 300ms ease;
}
.option:hover { border-color: #3a3a3a; }
.option-selected { border-color: var(--gold); background: rgba(201, 168, 76, 0.08); }

.field {
  background: #141414; border: 1.5px solid #262626; color: var(--text); border-radius: var(--radius);
  padding: 16px 18px; font-size: 16px; width: 100%; outline: none; margin-bottom: 24px;
  transition: border-color 300ms ease;
}
.field:focus { border-color: var(--gold); }
.field::placeholder { color: #555; }
.textarea { resize: vertical; min-height: 120px; line-height: 1.5; font-size: 15px; }

.field-error { color: #e0664c; font-size: 13px; margin-top: -16px; margin-bottom: 20px; }

.btn-continue { align-self: flex-start; margin-bottom: 20px; }

.btn-back {
  background: none; border: none; color: var(--text-dim); font-size: 13px; cursor: pointer;
  align-self: flex-start; padding: 8px 0; transition: color 300ms ease;
}
.btn-back:hover { color: var(--text); }

/* ---- submitting ---- */
.submitting { align-items: center; }
.spinner-gold {
  width: 32px; height: 32px; border: 3px solid rgba(201, 168, 76, 0.2);
  border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- confirmation ---- */
.confirmation { align-items: center; text-align: center; }
.confirmation-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(30px, 7vw, 44px); font-weight: 600; margin-bottom: 12px; }
.confirmation-sub { font-size: 15px; font-weight: 300; color: var(--text-dim); }

.submit-error-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #2a1414; border: 1px solid #e0664c55; color: #e0664c;
  padding: 10px 18px; border-radius: var(--radius); font-size: 13px;
}
