:root {
  --marca: #c00000;
  --marca-forte: #a30000;
  --tinta: #141414;
  --apagado: #5c5c5c;
  --borda: #d6d6d6;
  --fundo: #f5f5f5;
  --superficie: #ffffff;
  --erro: #b00020;
  --sucesso: #1a7f37;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fundo);
  color: var(--tinta);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.topo {
  background: var(--superficie);
  border-bottom: 4px solid var(--marca);
  display: flex;
  justify-content: center;
  padding: 14px 16px;
}
.topo img { height: auto; max-width: 180px; }

main { margin: 0 auto; max-width: 640px; padding: 20px 16px 48px; }

.cartao {
  background: var(--superficie);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 24px 20px;
}
.oculto { display: none; }

h1 { font-size: 1.4rem; margin: 0 0 8px; }
.apoio { color: var(--apagado); margin: 0 0 20px; }

.campo { border: 0; margin: 0 0 18px; padding: 0; }
label, legend { display: block; font-weight: 600; margin-bottom: 6px; }
legend { padding: 0; }
.obr { color: var(--marca); }
.dica { color: var(--apagado); font-weight: 400; }

input[type="text"], input[type="email"], input[type="tel"], select {
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-radius: 8px;
  color: var(--tinta);
  font: inherit;
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}
input:focus-visible, select:focus-visible, button:focus-visible, .notas label:focus-within {
  outline: 3px solid rgba(192, 0, 0, 0.35);
  outline-offset: 1px;
}
[aria-invalid="true"] { border-color: var(--erro) !important; }

.opcoes label {
  align-items: flex-start;
  border: 1px solid var(--borda);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  font-weight: 400;
  gap: 10px;
  margin-bottom: 8px;
  padding: 10px 12px;
}
.opcoes label:has(input:checked) { background: #fff4f4; border-color: var(--marca); }
.opcoes input, .aceite input { accent-color: var(--marca); flex: none; height: 20px; margin: 2px 0 0; width: 20px; }

.escala { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.ponta { color: var(--apagado); font-size: 0.85rem; }
.notas { display: flex; gap: 8px; }
.notas label {
  align-items: center;
  border: 1px solid var(--borda);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  font-weight: 600;
  height: 46px;
  justify-content: center;
  margin: 0;
  width: 46px;
}
.notas input { opacity: 0; position: absolute; pointer-events: none; }
.notas label:has(input:checked) { background: var(--marca); border-color: var(--marca); color: #fff; }

.aceite label { display: flex; font-weight: 400; gap: 10px; }

.erro { color: var(--erro); font-size: 0.9rem; margin: 4px 0 0; min-height: 0; }
.erro:empty { display: none; }
.erro.geral { font-weight: 600; margin-bottom: 12px; }

button {
  background: var(--marca);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 50px;
  padding: 12px 16px;
  width: 100%;
}
button:hover:not(:disabled) { background: var(--marca-forte); }
button:disabled { cursor: wait; opacity: 0.6; }

.privacidade { color: var(--apagado); font-size: 0.8rem; margin: 16px 0 0; }
.privacidade a { color: inherit; }

.selo {
  align-items: center;
  background: var(--sucesso);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 2rem;
  height: 56px;
  justify-content: center;
  margin-bottom: 12px;
  width: 56px;
}

/* o selo do reCAPTCHA fica no canto e cobre o botão no celular; o aviso no rodapé substitui */
.grecaptcha-badge { visibility: hidden; }

@media (max-width: 420px) {
  .notas label { height: 42px; width: 42px; }
  .ponta { flex-basis: 100%; }
}
