/* Visual: uma tela por pergunta. As cores vêm do "tema" de cada cliente. */
:root {
  --cor: #8b2f3c;
  --cor-rgb: 139, 47, 60;
  --texto: #8b2f3c;
  --texto-rgb: 139, 47, 60;
  --fundo: #ffffff;
  --botao-texto: #ffffff;
  --fonte: "Lato";
}

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

html, body { height: 100%; }

body {
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--fonte), "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

#formulario { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

.imagem-fundo, .veu {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.imagem-fundo { background-size: cover; background-position: center; }
.veu { background: var(--fundo); }

.progresso {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(var(--texto-rgb), .15);
  z-index: 5;
}
.progresso div { height: 100%; width: 0; background: var(--cor); transition: width .6s ease-out; }

.topo { padding: 16px 12px 0; display: flex; }
.topo[data-posicao="centro"] { justify-content: center; }
.topo img { max-height: 48px; max-width: 180px; object-fit: contain; }

.palco {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 96px;
}

.tela { width: 100%; max-width: 590px; animation: entrar .45s ease both; }
.tela.voltando { animation-name: entrar-voltando; }

@keyframes entrar { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes entrar-voltando { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }

.titulo { font-size: 24px; line-height: 1.3; font-weight: 400; outline: none; overflow-wrap: anywhere; }
.titulo.destaque { font-size: 26px; }
.texto { margin-top: 12px; font-size: 15px; line-height: 1.5; opacity: .9; white-space: pre-line; }
.imagem { display: block; max-width: 100%; max-height: 360px; margin-top: 20px; border-radius: 8px; }
.dica { margin-top: 10px; font-size: 13px; opacity: .75; }

.opcoes { margin-top: 24px; display: flex; flex-direction: column; gap: 7px; max-width: 535px; }

.opcao {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--texto);
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: background .15s;
}
@media (hover: hover) { .opcao:hover { background: rgba(var(--texto-rgb), .1); } }
.opcao[aria-checked="true"] { background: rgba(var(--texto-rgb), .16); box-shadow: 0 0 0 1px var(--texto); }

.letra {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  background: rgba(var(--texto-rgb), .16);
}
.opcao[aria-checked="true"] .letra { background: var(--cor); color: var(--botao-texto); }

.campo {
  width: 100%;
  margin-top: 18px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--texto);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 22px;
  outline: none;
}
.campo:focus { border-bottom-width: 2px; padding-bottom: 7px; }
.campo::placeholder { color: rgba(var(--texto-rgb), .5); }
textarea.campo { min-height: 96px; resize: vertical; font-size: 18px; }

.erro { margin-top: 12px; font-size: 14px; font-weight: 700; }
.erro:empty { display: none; }

.botao {
  display: inline-block;
  margin-top: 20px;
  padding: 11px 18px;
  border: 1px solid var(--cor);
  border-radius: 7px;
  background: var(--cor);
  color: var(--botao-texto);
  font: inherit;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 0 6px rgba(0, 0, 0, .2);
  cursor: pointer;
}
.botao:hover { filter: brightness(.94); }
.botao:disabled { opacity: .7; cursor: progress; }

.opcao:focus-visible, .botao:focus-visible, .setas button:focus-visible {
  outline: 3px solid rgba(var(--texto-rgb), .6);
  outline-offset: 2px;
}

.setas { position: fixed; right: 8px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; }
.setas button {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--texto);
  font-size: 22px;
  cursor: pointer;
}
.setas button:disabled { opacity: .3; cursor: default; }

.aviso-prototipo {
  position: fixed;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 120px);
  padding: 6px 10px;
  border-radius: 6px;
  background: #ffe08a;
  color: #3d2e00;
  font: 12px/1.35 Arial, sans-serif;
  z-index: 10;
}

.falha-config {
  max-width: 640px;
  margin: 40px auto;
  padding: 20px;
  border: 2px solid #b00020;
  border-radius: 8px;
  background: #fff;
  color: #222;
  font: 15px/1.5 Arial, sans-serif;
}
.falha-config li { margin-left: 20px; margin-top: 6px; }

@media (max-width: 700px) {
  .palco { padding: 24px 20px 88px; }
  .titulo { font-size: 21px; }
  .titulo.destaque { font-size: 23px; }
  .setas { top: auto; bottom: 8px; transform: none; flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
  .tela { animation: none; }
  .progresso div { transition: none; }
}

/* 27/11: aviso de protótipo escondido a pedido do Gabriel */
.aviso-prototipo{display:none !important;}
