:root {
  --amarelo: #ECBD01;
  --preto: #000000;
  --branco: #FFFFFF;
  --cinza: #6b6b6b;
  --borda: #e3e3e3;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, Arial, sans-serif;
  color: var(--preto);
  background: #fafafa;
  line-height: 1.5;
}
header {
  background: var(--preto);
  text-align: center;
  padding: 18px 16px;
  border-bottom: 3px solid var(--amarelo);
}
header img { height: 104px; width: auto; }
main { max-width: 680px; margin: 0 auto; padding: 24px 16px 64px; }
h1 {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-weight: 600; font-size: 30px; margin: 24px 0 4px;
}
.sub { color: var(--cinza); margin: 0 0 24px; }
fieldset {
  border: 1px solid var(--borda); border-radius: 10px;
  background: var(--branco); padding: 16px 16px 8px; margin: 0 0 20px;
}
legend {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px; font-weight: 600; padding: 0 8px;
}
label { display: block; font-size: 13px; color: var(--cinza); margin: 10px 0 4px; }
input, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--borda);
  border-radius: 8px; font-size: 16px; font-family: inherit; background: var(--branco);
}
input:focus, select:focus { outline: 2px solid var(--amarelo); border-color: var(--amarelo); }
input.invalid, select.invalid { border-color: #c0392b; }
.opt { color: #999; font-weight: 400; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.erro-msg { display: block; color: #c0392b; font-size: 12px; margin-top: 4px; min-height: 1em; }
.progress { margin: 0 0 24px; }
.progress-bar { height: 6px; background: var(--borda); border-radius: 99px; overflow: hidden; }
.progress-bar > span { display: block; height: 100%; width: 0; background: var(--amarelo); transition: width .25s ease; }
.progress-text { display: block; font-size: 12px; color: var(--cinza); margin-top: 6px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > div { flex: 1 1 160px; }
button {
  width: 100%; padding: 14px; background: var(--amarelo); color: var(--preto);
  font-weight: 700; font-size: 16px; border: none; border-radius: 8px;
  cursor: pointer; margin-top: 8px;
}
button:disabled { opacity: .6; cursor: not-allowed; }
.msg { padding: 12px 14px; border-radius: 8px; margin: 16px 0; font-size: 14px; }
.msg.erro { background: #fdecea; color: #92231b; }
.msg.ok { background: #eafaf0; color: #1d7a46; }
.hidden { display: none; }
#sucesso { text-align: center; padding: 48px 16px; }
#sucesso h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 28px; }
