:root {
  color-scheme: light;
  --fundo: #e6ebe6;
  --tela: #fbfcfa;
  --tinta: #16211d;
  --apoio: #4a5a53;
  --linha: #8c9b93;
  --verde: #12463a;
  --verde-claro: #e3eee9;
  --botao: #17864c;
  --botao-escuro: #12703f;
  --erro: #a32a1e;
}

* { box-sizing: border-box; margin: 0; }

body {
  min-height: 100dvh;
  background: var(--tela);
  color: var(--tinta);
  font: 400 17px/1.45 "Figtree", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.tela { max-width: 480px; margin: 0 auto; padding: 28px 20px 36px; }

@media (min-width: 600px) {
  body { padding: 40px 16px; background: var(--fundo); }
  .tela { padding: 36px 32px 40px; border-radius: 24px; background: var(--tela); box-shadow: 0 24px 50px -30px rgba(18, 70, 58, .6); }
}

.icones { display: none; }
.icone { flex: none; width: 19px; height: 19px; fill: currentColor; }

.foto { display: block; width: 100%; height: 210px; margin-bottom: 24px; border-radius: 16px; object-fit: cover; object-position: center 12%; }

.marca { margin-bottom: 20px; color: var(--verde); font: 800 20px/1 "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -.01em; }

h1 { font: 800 32px/1.08 "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -.02em; text-wrap: balance; }
h2 { margin-top: 24px; font: 600 20px/1.2 "Bricolage Grotesque", system-ui, sans-serif; }
.sub { margin-top: 10px; color: var(--apoio); text-wrap: pretty; }

form { margin-top: 24px; }
fieldset { padding: 0; border: 0; }
.campo { margin-bottom: 18px; }
label.rotulo, legend { display: block; margin-bottom: 7px; padding: 0; font-weight: 700; }

input[type=text], input[type=tel], textarea, select {
  width: 100%;
  padding: 13px;
  border: 1.5px solid var(--linha);
  border-radius: 12px;
  background: #fff;
  color: var(--tinta);
  font: inherit;
}
textarea { min-height: 88px; resize: vertical; }
select { min-height: 52px; }

:focus-visible { outline: 3px solid var(--botao); outline-offset: 2px; }
[aria-invalid=true] { border-color: var(--erro) !important; }

.opcoes { display: flex; flex-wrap: wrap; gap: 8px; }
.opcao { position: relative; cursor: pointer; }
.opcao input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opcao span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1.5px solid var(--linha);
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
  transition: background-color .15s, color .15s, border-color .15s;
}
.opcao input:checked + span { border-color: var(--verde); background: var(--verde); color: #fff; font-weight: 700; }
.opcao input:focus-visible + span { outline: 3px solid var(--botao); outline-offset: 2px; }

.autoriza { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; font-size: 16px; cursor: pointer; }
.autoriza input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--verde); }

.erro { display: none; margin-top: 6px; color: var(--erro); font-size: 15px; font-weight: 700; }
.erro.ativo { display: block; }
.aviso-envio { margin: 14px 0 0; }

.botao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  padding: 14px;
  border: 1.5px solid var(--botao);
  border-radius: 12px;
  background: var(--botao);
  color: #fff;
  font: 700 18px/1.2 "Figtree", system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, transform .1s;
}
.botao:hover { background: var(--botao-escuro); }
.botao:active { transform: scale(.98); }
.botao[disabled] { opacity: .7; cursor: wait; }
.botao.linha { min-height: 48px; margin-top: 10px; border-color: var(--verde); background: transparent; color: var(--verde); font-size: 17px; }
.botao.linha:hover { background: var(--verde-claro); }
.botao .icone { width: 22px; height: 22px; }

.nota { margin-top: 16px; color: var(--apoio); font-size: 15px; text-wrap: pretty; }
.nota a { color: var(--verde); font-weight: 700; }

.pronto { display: block; width: 60px; height: 60px; margin-bottom: 12px; color: var(--verde); fill: currentColor; }
.resumo { margin-top: 22px; padding: 15px 16px; border-radius: 12px; background: var(--verde-claro); }
.resumo div { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; }
.resumo dt { color: var(--apoio); }
.resumo dd { font-weight: 700; text-align: right; overflow-wrap: anywhere; }
ol { margin-top: 12px; padding: 0; list-style: none; counter-reset: passo; }
ol li { position: relative; padding: 0 0 13px 37px; counter-increment: passo; text-wrap: pretty; }
ol li::before {
  content: counter(passo);
  position: absolute;
  top: -1px;
  left: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--verde);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
}
.prazo { margin: 6px 0 4px; color: var(--verde); font-weight: 700; text-wrap: pretty; }

.armadilha { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .botao:active { transform: none; }
}
