:root {
  --orange: #fd802e;
  --orange-dark: #e56a1a;
  --black: #1e1e1e;
  --bg: #f4f0ec;
  --white: #ffffff;
  --muted: #8a8580;
  --border: #e6e0d8;
  --whatsapp: #25d366;
  --whatsapp-dark: #1fb855;
  --radius: 14px;
}

* { box-sizing: border-box; }

.diag-body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
  padding: 48px 20px;
}

.diag-wrap {
  width: 100%;
  max-width: 640px;
}

.diag-logo {
  width: 150px;
  height: auto;
  display: block;
  margin: 0 auto 28px;
}

.diag-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
}

.diag-card[hidden] { display: none; }

.diag-card h1 {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
}

.diag-intro p {
  margin: 0 0 16px;
  color: var(--black);
  font-size: 15.5px;
  line-height: 1.6;
}

.diag-lista-check {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.diag-lista-check li {
  font-size: 15px;
  line-height: 1.5;
}

.diag-aviso {
  background: var(--bg);
  border-radius: 12px;
  padding: 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.btn-primario {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 100px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s ease;
}

.btn-primario:hover { background: var(--orange-dark); }

/* PROGRESS BAR */
.progress { margin-bottom: 32px; }

.progress-track {
  height: 6px;
  background: var(--bg);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 100px;
  width: 0%;
  transition: width 0.3s ease;
}

/* PERGUNTAS */
.pergunta-numero {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}

.pergunta-titulo {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 24px;
}

.pergunta-input {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  color: var(--black);
  background: var(--white);
  margin-bottom: 20px;
}

.pergunta-input:focus {
  outline: none;
  border-color: var(--orange);
}

.opcoes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.opcao {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  font-family: inherit;
  font-size: 15.5px;
  color: var(--black);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.opcao:hover { border-color: var(--orange); }

.opcao.selecionada {
  border-color: var(--orange);
  background: #fff4ec;
}

.opcao-marca {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--white);
}

.opcao.selecionada .opcao-marca {
  background: var(--orange);
  border-color: var(--orange);
}

.opcao-marca.redonda { border-radius: 50%; }

.pergunta-acoes {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.btn-voltar {
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
}

.btn-voltar:hover { color: var(--black); }

/* TELA FINAL */
#tela-final {
  text-align: center;
}

.diag-final-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: block;
}

#tela-final h1 { margin-bottom: 8px; }

.diag-final-texto {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 28px;
}

.btn-whats {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--whatsapp);
  color: var(--white);
  border-radius: 100px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn-whats:hover { background: var(--whatsapp-dark); }

@media (max-width: 600px) {
  .diag-body { padding: 28px 16px; }
  .diag-card { padding: 28px 22px; }
  .diag-card h1 { font-size: 22px; }
  .pergunta-titulo { font-size: 19px; }
}
