/* ─── Variáveis (cores do sistema) ───────────────── */
:root {
  --navy:       #0d1b2a;
  --navy2:      #1a3a6e;
  --blue:       #3b82f6;
  --blue-light: #eff6ff;
  --text:       #1e293b;
  --muted:      #64748b;
  --border:     #e2e8f0;
  --bg:         #f8fafc;
  --white:      #ffffff;
}

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

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

/* ─── Barra de progresso ─────────────────────────── */
.progress-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--border);
  z-index: 100;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--navy), var(--blue));
  transition: width 0.45s ease;
  width: 0%;
}

/* ─── Container ──────────────────────────────────── */
.container {
  max-width: 620px;
  margin: 0 auto;
  padding: 72px 24px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ─── Steps ──────────────────────────────────────── */
.step { display: none; }

.step.active {
  display: block;
  animation: fadeUp 0.4s ease;
}

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

@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-5px); }
  80%      { transform: translateX(5px); }
}

/* ─── Tipografia estilo markdown ─────────────────── */
.badge {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.step h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 14px;
  /* markdown: simula heading com underline sutil */
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}

.step h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 6px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.step p { color: var(--muted); font-size: 1rem; margin-bottom: 6px; }

.hint  { font-size: 0.875rem !important; color: var(--muted) !important; margin-bottom: 20px !important; }
.meta  { font-size: 0.83rem; color: var(--muted); }

.step-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
}

.required { color: var(--blue); font-size: 0.8em; }

/* ─── Inputs ─────────────────────────────────────── */
.input-group { margin: 16px 0 24px; }

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.input-group input::placeholder,
.input-group textarea::placeholder { color: #94a3b8; }

/* ─── Opções em lista (radio rows) ───────────────── */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 28px;
}

.option-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  background: var(--white);
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}

.option-row:hover { border-color: var(--blue); background: var(--blue-light); }

.option-row input[type="radio"] {
  accent-color: var(--blue);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  cursor: pointer;
}

.option-row:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--navy2);
  font-weight: 600;
}

/* ─── Opções em grid (cards) ─────────────────────── */
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0 16px;
}

.option-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  background: var(--white);
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}

.option-card input[type="radio"] { display: none; }

.option-card:hover        { border-color: var(--blue); background: var(--blue-light); }
.option-card:has(input:checked) { border-color: var(--blue); background: var(--blue-light); }

.option-icon  { font-size: 1.6rem; }
.option-title { font-size: 0.88rem; font-weight: 700; color: var(--navy); }
.option-desc  { font-size: 0.75rem; color: var(--muted); line-height: 1.4; }

/* ─── Botão principal ────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  margin-top: 8px;
}

.btn-primary:hover {
  background: var(--navy2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13,27,42,0.22);
}

.btn-primary:active { transform: translateY(0); }

/* ─── Tela de resultado ──────────────────────────── */
.result-emoji {
  font-size: 3.5rem;
  margin-bottom: 12px;
  line-height: 1;
}

/* markdown blockquote style para o CTA */
.result-quote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--navy);
  background: var(--white);
  border-radius: 0 10px 10px 0;
  font-size: 1rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.75;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ─── Responsivo ─────────────────────────────────── */
@media (max-width: 520px) {
  .options-grid { grid-template-columns: 1fr; }
  .step h1 { font-size: 1.5rem; }
  .step h2 { font-size: 1.2rem; }
  .container { padding: 56px 18px 80px; }
}
