* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: #f6f1ea; color: #222; }
main { max-width: 440px; margin: 0 auto; padding: 20px 16px 40px; }
header h1 { margin: 0 0 16px; font-size: 19px; color: #b3261e; }
.topo { font-weight: 700; }
form, .fim, .aviso { background: #fff; border-radius: 14px; padding: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.tipos { display: flex; gap: 8px; margin-bottom: 12px; }
.tipos label { flex: 1; }
.tipos input { position: absolute; opacity: 0; }
.tipos span { display: block; text-align: center; padding: 10px; border: 2px solid #ddd; border-radius: 10px; font-weight: 600; cursor: pointer; }
.tipos input:checked + span { border-color: #b3261e; color: #b3261e; background: #fdf2f1; }
.tipos input:focus-visible + span { outline: 2px solid #222; }
.campo { display: block; font-size: 14px; margin-bottom: 10px; }
.campo input { display: block; width: 100%; margin-top: 4px; padding: 12px; font-size: 17px; border: 1px solid #ccc; border-radius: 10px; }
.linha { display: flex; gap: 10px; } .linha .campo { flex: 1; }
.salvar { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 4px 0 12px; }
button, .botao { display: block; width: 100%; padding: 14px; font-size: 18px; font-weight: 700; border: 0; border-radius: 12px;
  background: #1e8e3e; color: #fff; text-align: center; text-decoration: none; cursor: pointer; }
button:disabled { background: #9bbfa5; cursor: wait; }
.erro { color: #b3261e; font-weight: 600; }
.rodape { font-size: 12px; color: #666; text-align: center; margin: 12px 0 0; }
.fim p { font-size: 18px; font-weight: 600; margin-top: 0; }
.tds iframe { width: 100%; min-height: 420px; border: 0; }
