/* Pesquisas: copia fiel do formulario do Tally (tema escuro), medida a medida.
   Medidas tiradas do Tally publicado em 11/11/2026 (390 px e 1280 px). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/motor/inter-latin.woff2) format("woff2");
}
:root {
  --fundo: #1a1917;
  --texto: rgb(223, 223, 222);
  --texto-suave: rgba(223, 223, 222, 0.6);
  --destaque: rgb(121, 87, 255);
  --destaque-anel: rgba(152, 125, 255, 0.36);
  --campo: rgba(255, 255, 255, 0.055);
  --campo-sombra: rgba(0, 0, 0, 0.12) 0 1px 1px 0, rgba(210, 210, 210, 0.16) 0 0 0 1px, rgba(210, 210, 210, 0.08) 0 2px 5px 0;
  --erro: rgb(235, 87, 87);
  --raio: 8px;
  --topo: 51px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--fundo); }
body {
  color: var(--texto);
  font-family: Inter, "Inter Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.15;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
}
button, input, textarea { font: inherit; color: inherit; }

/* barra de progresso: um segmento por pagina, preenchidos ate a pagina atual */
.barra { position: fixed; top: 10px; left: 10px; right: 10px; display: flex; gap: 0; z-index: 5; border-radius: 2px; overflow: hidden; }
.barra span { flex: 1; height: 4px; border-radius: 0; background: rgba(223, 223, 222, 0.09); transition: background 0.2s; }
.barra span.cheio { background: rgba(223, 223, 222, 0.55); }

.form { max-width: 750px; margin: 0 auto; padding: var(--topo) 25px 80px; }
.pagina { display: none; }
.pagina.ativa { display: block; animation: entra 0.25s ease-out; }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.voltar {
  display: inline-flex; align-items: center; gap: 8.4px; height: 28px; padding: 0; margin: -1px 0 42px;
  background: none; border: 0; border-radius: 7px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--texto-suave);
}
.voltar:hover { color: var(--texto); }
.voltar svg { width: 14px; height: 14px; }

h1.titulo-form { font-size: 32px; font-weight: 800; line-height: 1.2; margin: 0; padding: 0 0 32px; overflow-wrap: break-word; }
.paragrafo { line-height: 1.5; margin: 0 0 16px; overflow-wrap: break-word; }
.paragrafo:empty { margin: 0; min-height: 16px; }
.paragrafo div { margin: 0; }
.paragrafo p { margin: 0 0 24px; }
.paragrafo p:last-child { margin-bottom: 0; }

.pergunta { position: relative; margin: 0 0 10px; }
.pergunta h3 { display: inline; font-size: 18px; font-weight: 600; line-height: 1.3; margin: 0; padding: 0 5px 0 0; overflow-wrap: break-word; }
.pergunta:empty { display: none; }
.obrigatorio {
  display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border-radius: 50%;
  background: rgba(223, 223, 222, 0.16); font-size: 11px; font-weight: 700; line-height: 1; vertical-align: 2px; position: relative; cursor: default;
}
.obrigatorio span.dica {
  display: none; position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: #37352f; color: var(--texto); font-size: 12px; font-weight: 500; padding: 4px 8px; border-radius: 6px;
}
.obrigatorio:hover span.dica { display: block; }

.bloco { margin: 0 0 10px; }
.campo {
  width: 100%; height: 36px; padding: 0 10px; border: 0; outline: 0; border-radius: var(--raio);
  background: var(--campo); box-shadow: var(--campo-sombra); font-size: 16px; transition: box-shadow 0.15s;
}
textarea.campo { height: auto; min-height: 92px; padding: 8px 10px; line-height: 1.4; resize: vertical; display: block; }
.campo:focus { box-shadow: var(--destaque-anel) 0 0 0 4px, rgba(210, 210, 210, 0.16) 0 0 0 1px; }
.campo::placeholder { color: rgba(223, 223, 222, 0.35); }
.erro .campo, .erro .opcao { box-shadow: rgba(235, 87, 87, 0.9) 0 0 0 1px; }
.msg-erro { color: var(--erro); font-size: 14px; margin: 6px 0 0; display: none; }
.erro .msg-erro { display: block; }

/* telefone com pais (formato internacional, como no Tally) */
.tel { position: relative; }
.tel .campo { padding-right: 58px; position: relative; background: transparent; }
.tel { border-radius: var(--raio); background: var(--campo); }
.tel .mascara {
  position: absolute; left: 0; top: 0; height: 36px; line-height: 36px; padding: 0 10px; font-size: 16px; pointer-events: none;
  white-space: pre; color: rgba(223, 223, 222, 0.3); display: none;
}
.tel .mascara i { font-style: normal; color: transparent; }
.tel.aberto .mascara { display: block; }
.tel .pais {
  position: absolute; right: 6px; top: 4px; height: 28px; display: none; align-items: center; gap: 6px; padding: 0 6px;
  background: none; border: 0; border-radius: 6px; cursor: pointer;
}
.tel.aberto .pais, .tel.com-valor .pais { display: inline-flex; }
.tel .pais .bandeira { font-size: 17px; line-height: 1; }
.tel .pais svg { width: 12px; height: 12px; opacity: 0.6; }
.tel .lista {
  display: none; position: absolute; left: 0; top: 42px; width: 185px; max-height: 400px; overflow-y: auto; z-index: 10;
  background: #252421; border-radius: var(--raio); box-shadow: var(--campo-sombra), rgba(0, 0, 0, 0.4) 0 8px 24px; padding: 4px;
}
.tel.lista-aberta .lista { display: block; }
.tel .lista button {
  display: flex; justify-content: space-between; width: 100%; height: 28px; padding: 0 10px; gap: 8px; align-items: center;
  background: none; border: 0; border-radius: 7px; cursor: pointer; font-size: 14px; text-align: left;
}
.tel .lista button:hover, .tel .lista button.marcado { background: rgba(223, 223, 222, 0.08); }
.tel .lista button span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* multipla escolha: caixa do tamanho do texto, com a letra (A, B, C...) */
.opcoes { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.opcao {
  display: inline-flex; align-items: center; min-height: 36px; padding: 9px 10px; max-width: 100%;
  background: var(--campo); box-shadow: var(--campo-sombra); border-radius: var(--raio); border: 0;
  cursor: pointer; text-align: left; font-size: 16px; line-height: 1.15; transition: box-shadow 0.12s, background 0.12s;
}
.opcao:hover { background: rgba(255, 255, 255, 0.08); }
.opcao .letra {
  flex: none; width: 18px; height: 18px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(223, 223, 222, 0.75); color: #1a1917; font-size: 11px; font-weight: 700;
}
.opcao .rotulo { padding: 0 0 0 10px; overflow-wrap: anywhere; }
.opcao.marcada { box-shadow: var(--destaque) 0 0 0 2px; background: rgba(121, 87, 255, 0.12); }
.opcao.marcada .letra { background: var(--destaque); color: #fff; }

.acoes { margin-top: 21px; }
.botao {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 13.5px; border: 0; border-radius: var(--raio);
  background: var(--destaque); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: filter 0.15s, box-shadow 0.15s;
}
.botao:hover { filter: brightness(1.08); }
.botao:focus-visible { outline: 0; box-shadow: var(--destaque-anel) 0 0 0 4px; }
.botao[disabled] { opacity: 0.6; cursor: default; }
.botao svg { width: 16px; height: 16px; }
.aviso-envio { color: var(--erro); font-size: 14px; margin-top: 10px; display: none; }

@media (min-width: 768px) {
  :root { --topo: 151px; }
  h1.titulo-form { font-size: 40px; padding-bottom: 40px; }
  .form { padding-left: 25px; padding-right: 25px; }
  input.campo { width: 320px; }
  .tel { width: 320px; }
  .tel input.campo { width: 100%; }
  /* no computador a barra vira segmentos separados, como no Tally */
  .barra { gap: 10px; overflow: visible; }
  .barra span { border-radius: 2px; }
}
