/* ==========================================================
   Variáveis de marca
   ========================================================== */
:root {
  --navy: #0B2545;
  --orange: #F7931E;
  --orange-hover: #E07F0A;
  --yellow: #FFC93C;
  --gray: #5A6B7D;
  --border: #DDE3EA;
  --tint: #FFF4E3;
  --error: #C62828;
  --radius: 12px;
  --anim: 250ms;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #FFFFFF;
  color: var(--navy);
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}

button, input, a { font-family: inherit; }

.container {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

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

/* ==========================================================
   Barra de progresso e topo
   ========================================================== */
.progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 5px;
  background: #EEF1F5;
  z-index: 10;
}
.progress__bar {
  width: 0;
  height: 100%;
  background: var(--orange);
  border-radius: 0 3px 3px 0;
  transition: width 400ms ease;
}

.topbar { padding-top: 28px; padding-bottom: 8px; }
.logo { display: block; height: 40px; width: auto; }

main { padding-top: 24px; padding-bottom: 48px; }

/* ==========================================================
   Telas e transição (fade + slide, 250ms)
   ========================================================== */
.screen[hidden] { display: none; }

.screen.enter-fwd  { animation: enter-fwd  var(--anim) ease-out both; }
.screen.enter-back { animation: enter-back var(--anim) ease-out both; }

@keyframes enter-fwd  { from { opacity: 0; transform: translateX(28px); }  to { opacity: 1; transform: none; } }
@keyframes enter-back { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .screen.enter-fwd, .screen.enter-back { animation: none; }
  .progress__bar { transition: none; }
}

h1, h2 { margin: 0; outline: none; }

/* ==========================================================
   Capa
   ========================================================== */
.cover__title {
  font-weight: 900;
  font-size: clamp(26px, 7.2vw, 36px);
  line-height: 1.18;
  color: var(--navy);
  padding-top: 14px;
  position: relative;
}
.cover__title::before {            /* detalhe amarelo */
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 48px; height: 5px;
  border-radius: 3px;
  background: var(--yellow);
}

.bullets {
  list-style: none;
  margin: 28px 0 32px;
  padding: 0;
  display: grid;
  gap: 14px;
}
.bullets li {
  white-space: nowrap;                         /* nunca quebra linha */
  font-size: clamp(13px, 4.7vw, 18px);         /* encolhe em telas estreitas */
  font-weight: 700;
  line-height: 1.3;
}

.cover__note {
  margin: 16px 0 0;
  font-style: italic;
  font-size: 14px;
  color: var(--gray);
}

/* ==========================================================
   Botões
   ========================================================== */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 14px 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--orange);
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms ease, transform 100ms ease, opacity 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--orange-hover); }
.btn:active { transform: scale(0.99); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:disabled:hover { background: var(--orange); }
.btn[hidden] { display: none; }

.btn:focus-visible,
.option:focus-visible,
.back:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.btn.is-loading { cursor: progress; opacity: 1; }
.btn.is-loading::after {
  content: "";
  width: 18px; height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 768px) {
  .btn { width: auto; min-width: 260px; display: inline-flex; }
  .step-form .btn, #submit-btn { min-width: 180px; }
}

.back {
  display: inline-block;
  margin: 0 0 20px -6px;
  padding: 6px;
  border: 0;
  background: none;
  color: var(--gray);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  border-radius: 6px;
}
.back:hover { color: var(--navy); }

/* ==========================================================
   Perguntas
   ========================================================== */
.step-count {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange-hover);
}

.question {
  font-weight: 900;
  font-size: clamp(24px, 6.4vw, 30px);
  line-height: 1.2;
  margin-bottom: 24px;
}

.field { margin-bottom: 20px; }

.field label:not(.sr-only) {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
}

input[type="text"],
input[type="tel"],
input[type="email"] {
  display: block;
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #FFFFFF;
  color: var(--navy);
  font-size: 17px;               /* >=16px evita zoom automático no iOS */
  font-weight: 400;
  text-align: left;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
input::placeholder { color: #98A5B3; }
input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(247, 147, 30, 0.18);
}
input[aria-invalid="true"] { border-color: var(--error); }
input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.15); }

.error {
  min-height: 0;
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--error);
}
.error:empty { display: none; }
.error--submit { margin: 16px 0 0; font-weight: 700; }
#submit-btn { margin-top: 16px; }

/* Opções de múltipla escolha */
.options { display: grid; gap: 12px; }

.option {
  position: relative;
  display: block;
  width: 100%;
  min-height: 58px;
  padding: 14px 52px 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #FFFFFF;
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
.option:hover { border-color: var(--orange); }
.option::after {                       /* marcador de seleção */
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  width: 22px; height: 22px;
  margin-top: -11px;
  border: 2px solid var(--border);
  border-radius: 50%;
  transition: all 150ms ease;
}
.option.is-selected {
  border-color: var(--orange);
  background: var(--tint);
}
.option.is-selected::after {
  border-color: var(--orange);
  background: var(--yellow) radial-gradient(circle, var(--orange) 0 35%, transparent 40%);
}

/* ==========================================================
   Agradecimento
   ========================================================== */
#thanks-title { margin-bottom: 10px; }
.thanks__text {
  margin: 0 0 8px;
  font-size: 18px;
}

.cal {
  width: 100%;
  margin: 0;
}
.cal[hidden] { display: none; }

.noscript { padding-top: 16px; padding-bottom: 16px; color: var(--error); }

/* ==========================================================
   Ajustes finos de largura
   ========================================================== */
@media (max-width: 380px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .option, input[type="text"], input[type="tel"], input[type="email"] { font-size: 16px; }
}

@media (min-width: 768px) {
  .topbar { padding-top: 40px; }
  main { padding-top: 40px; }
}
