:root {
  --marca: #1f3a5f;
  --fundo: #f4f5f7;
  --cartao: #ffffff;
  --texto: #1b1f24;
  --suave: #5c6570;
  --linha: #dde1e6;
  --ok: #1e7a3c;
  --ok-fundo: #e5f4ea;
  --aviso: #9a6200;
  --aviso-fundo: #fdf3dc;
  --erro: #b3261e;
  --erro-fundo: #fbe9e7;
  --raio: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--fundo);
  color: var(--texto);
  font-size: 16px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}
.topo {
  background: var(--marca);
  color: #fff;
  padding: 22px 18px 26px;
  padding-top: max(22px, env(safe-area-inset-top));
}
.topo .marca { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; font-weight: 600; }
.topo h1 { margin: 6px 0 4px; font-size: 24px; line-height: 1.2; }
.topo .sub { opacity: .85; font-size: 14px; }
.conteudo { max-width: 560px; margin: -12px auto 0; padding: 0 14px 40px; }
.cartao {
  background: var(--cartao);
  border-radius: var(--raio);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  padding: 18px;
  margin-bottom: 14px;
}
.etapa { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.etapa strong { font-size: 18px; }
.etapa span { color: var(--suave); font-size: 13px; white-space: nowrap; }
.progresso { height: 4px; background: var(--linha); border-radius: 4px; margin-bottom: 16px; overflow: hidden; }
.progresso i { display: block; height: 100%; background: var(--marca); transition: width .3s; }
p { margin: 0 0 12px; }
.suave { color: var(--suave); font-size: 14px; }
label.campo { display: block; margin-bottom: 14px; }
label.campo > span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input[type=text], input[type=tel], input[type=password], input[type=month], input[type=search], select {
  width: 100%;
  font: inherit;
  font-size: 17px;
  padding: 12px 13px;
  border: 1.5px solid var(--linha);
  border-radius: 10px;
  background: #fff;
  color: var(--texto);
}
input:focus, select:focus { outline: none; border-color: var(--marca); box-shadow: 0 0 0 3px color-mix(in srgb, var(--marca) 18%, transparent); }
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  font: inherit; font-weight: 700; font-size: 17px;
  padding: 14px 16px;
  border: 0; border-radius: 12px;
  background: var(--marca); color: #fff;
  cursor: pointer; text-decoration: none;
}
.botao:disabled { opacity: .45; cursor: not-allowed; }
.botao.sec { background: #fff; color: var(--marca); border: 1.5px solid var(--marca); }
.botao.peq { width: auto; font-size: 14px; padding: 8px 12px; border-radius: 9px; }
.botao.zap { background: #1f9e55; }
.linha-botoes { display: flex; gap: 10px; }
.linha-botoes > * { flex: 1; }
.msg { border-radius: 10px; padding: 11px 13px; font-size: 14px; margin-bottom: 12px; }
.msg.erro { background: var(--erro-fundo); color: var(--erro); }
.msg.ok { background: var(--ok-fundo); color: var(--ok); }
.msg.aviso { background: var(--aviso-fundo); color: var(--aviso); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--linha); border-radius: 10px; margin-bottom: 12px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--marca); }
.escondido { display: none !important; }
.rodape { text-align: center; color: var(--suave); font-size: 13px; margin-top: 18px; }
.rodape a { color: inherit; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
