/* Estilos gerais */
:root {
  /* Cores base (tons escuros e verdes FinanZap) */
  --bg1: #0b1720;
  --bg2: #0f2537;
  --card: #142435;
  --text: #eaf0ff;
  --muted: #92a6c5;
  --stroke: rgba(255,255,255,0.12);
  --shadow: rgba(0,0,0,0.4);
  --primary: #54d16a;
  --primary2: #7be38b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(84,209,106,0.15), transparent 60%),
    radial-gradient(900px 500px at 80% 20%, rgba(123,227,139,0.12), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  overflow-x: hidden;
}

.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 14px;
}

/* Cabeçalho */
.top {
  width: 100%;
  max-width: 980px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brandLogo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brandText {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brandText span {
  font-size: 12px;
  color: var(--muted);
}
.secure {
  font-size: 12px;
  color: var(--muted);
}

/* Cartão central */
.card {
  width: 100%;
  max-width: 980px;
  background: linear-gradient(180deg, rgba(20,36,53,0.96), rgba(20,36,53,0.86));
  border: 1px solid var(--stroke);
  box-shadow: 0 20px 80px var(--shadow);
  border-radius: 18px;
  overflow: hidden;
}

/* Barra de progresso */
.progressWrap {
  padding: 16px 18px;
  border-bottom: 1px solid var(--stroke);
}
.progressBar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  transition: width 0.25s ease;
}
.progressText {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

/* Secções (etapas) */
.step {
  display: none;
  padding: 22px 18px;
  text-align: center;
}
.step.active {
  display: block;
}
.step h1 {
  font-size: 28px;
  margin-bottom: 12px;
}
.step h2 {
  font-size: 22px;
  margin-bottom: 12px;
}
.step p {
  margin-bottom: 16px;
}
.highlight {
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted {
  color: var(--muted);
}
.tiny {
  font-size: 12px;
}

/* Imagem principal */
.hero {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 20px auto;
  display: block;
}

/* Botões gerais */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 10px;
}
.btn.primary {
  border-color: rgba(84,209,106,0.5);
  background: linear-gradient(135deg, rgba(84,209,106,0.25), rgba(123,227,139,0.2));
}
.btn.primary:hover {
  filter: brightness(1.05);
}
.btn:disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* Opções de resposta */
.options {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.options.multi {
  margin-bottom: 10px;
}
.opt,
.opt-multi {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: transform 0.05s ease, border-color 0.2s ease, background 0.2s ease;
}
.opt:hover,
.opt-multi:hover {
  border-color: rgba(84,209,106,0.55);
  background: rgba(84,209,106,0.08);
}
.opt:active,
.opt-multi:active {
  transform: scale(0.99);
}
/* Estado selecionado para multiseleção */
.opt-multi.selected {
  border-color: rgba(84,209,106,0.9);
  background: rgba(84,209,106,0.18);
}

/* Formulário */
.form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.form input {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.02);
  color: var(--text);
  outline: none;
}
.form input:focus {
  border-color: rgba(84,209,106,0.55);
}

/* Resultado e ações */
.resultBox {
  margin-top: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  padding: 16px;
  text-align: left;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  justify-content: center;
}

/* Carregamento */
.loadingBars {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.loadItem span {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 4px;
  display: block;
}
.loadBar {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.loadProg {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  transition: width 0.6s ease;
}

@media (min-width: 768px) {
  .hero {
    max-width: 500px;
  }
}

/* =========================================================
   ✅ ÚNICA ADIÇÃO: ANIMAÇÃO PULSAR (classe .pulse)
   (não altera mais nada do layout)
========================================================= */
@keyframes pulseAttention {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(84,209,106,0.60);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 18px 6px rgba(84,209,106,0.35);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(84,209,106,0.60);
  }
}

.btn.pulse {
  animation: pulseAttention 1.5s infinite;
}
