/* Funcionalmente — avaliação, uma pergunta por tela */
body {
  min-height: 100vh;
  min-height: 100svh;
}
.avaliar {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 110px var(--margem) 48px;
}
body[data-publico="prestadores"] {
  --cor: var(--sol);
  --cor-texto: var(--tinta);
}
body[data-publico="alunos"] {
  --cor: var(--brasa);
  --cor-texto: #fff;
}
.progresso {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  z-index: 30;
  background: var(--papel-2);
}
.progresso::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brasa);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  transition: transform 0.6s var(--saida);
}
#palco {
  width: min(100%, 720px);
}
#palco.sai {
  opacity: 0;
  transform: translateY(-18px);
  transition: opacity 0.2s, transform 0.22s;
}
#palco.sai-volta {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.2s, transform 0.22s;
}
#palco.entra {
  animation: entra 0.5s var(--saida);
}
#palco.entra-volta {
  animation: entra-volta 0.5s var(--saida);
}
@keyframes entra {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
}
@keyframes entra-volta {
  from {
    opacity: 0;
    transform: translateY(-26px);
  }
}
.tela h1,
.tela h2 {
  outline: none;
}
.tela h1 {
  font-size: clamp(34px, 5.6vw, 60px);
  margin-top: 16px;
}
.tela h2 {
  font-size: clamp(28px, 4.4vw, 46px);
  margin-top: 18px;
}
.tela-centro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.tela-centro > p {
  margin-top: 18px;
  max-width: 46ch;
  color: var(--suave);
}
.tela-centro .bt {
  margin-top: 30px;
}
.garantias {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  text-align: left;
  width: min(100%, 470px);
}
.garantias li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--linha);
}
.garantias svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--brasa);
  margin-top: 2px;
}
.aviso {
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--sol);
  color: var(--tinta) !important;
  font-size: 15px;
}
.tela-cab {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.contador {
  font-family: var(--titulo);
  font-weight: 800;
  font-size: 18px;
  color: var(--brasa);
}
.contador i {
  font-style: normal;
  color: var(--suave);
  font-weight: 600;
}
.tema {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--papel-2);
  font-size: 13px;
  font-weight: 700;
}
.campo {
  margin-top: 34px;
}

/* NPS 0 a 10 */
.nps {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 6px;
}
.nps button {
  aspect-ratio: 1;
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--linha);
  font-family: var(--titulo);
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.3s var(--mola), background 0.2s, color 0.2s;
}
.nps button:hover {
  transform: translateY(-3px);
}
.nps button.sel {
  transform: translateY(-3px) scale(1.06);
  color: #fff;
}
.nps .n-baixo.sel {
  background: #c94a2a;
}
.nps .n-meio.sel {
  background: #c9952a;
}
.nps .n-alto.sel {
  background: var(--musgo);
}
.nps-legenda {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 14px;
  color: var(--suave);
}

/* Estrelas 1 a 5 */
.estrelas {
  display: flex;
  gap: clamp(6px, 2vw, 14px);
}
.estrelas button {
  width: clamp(52px, 13vw, 76px);
  height: clamp(52px, 13vw, 76px);
  padding: 8px;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform 0.35s var(--mola);
}
.estrelas button:hover {
  transform: scale(1.1) rotate(-6deg);
}
.estrelas svg {
  width: 100%;
  height: 100%;
  fill: var(--papel-2);
  stroke: var(--tinta);
  stroke-width: 1.2;
  stroke-linejoin: round;
  transition: fill 0.2s;
}
.estrelas button.acesa svg {
  fill: var(--sol);
}
.estrela-rotulo {
  margin-top: 10px;
  font-weight: 700;
  font-size: 18px;
}

/* Opções */
.opcoes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}
.opcoes button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--linha);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.3s var(--mola);
}
.opcoes button:hover {
  transform: translateY(-2px);
}
.opcoes i {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--tinta);
  transition: box-shadow 0.2s;
}
.opcoes [role="checkbox"] i {
  border-radius: 7px;
}
.opcoes button.sel {
  box-shadow: inset 0 0 0 2px var(--brasa);
}
.opcoes button.sel i {
  box-shadow: inset 0 0 0 7px var(--brasa);
}
textarea {
  width: 100%;
  padding: 18px 20px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--linha);
  font-size: 18px;
  resize: vertical;
  min-height: 150px;
}
textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--brasa);
}
.dica {
  margin-top: 10px;
  font-size: 14px;
  color: var(--suave);
}
.tela-bts {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
}
.voltar {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--linha);
  cursor: pointer;
}
.voltar svg {
  width: 22px;
  margin: auto;
}
.bt:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

/* Fim */
.selo {
  width: 96px;
  height: 96px;
  color: var(--musgo);
}
.selo circle {
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: desenha 0.8s var(--saida) forwards;
}
.selo path {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: desenha 0.5s 0.6s var(--saida) forwards;
}
.fim-bts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.fim-bts .bt {
  margin: 0;
}

@media (max-width: 560px) {
  .nps {
    grid-template-columns: repeat(6, 1fr);
  }
  .tela h2 {
    text-align: center;
  }
  .tela-cab {
    justify-content: center;
    gap: 14px;
  }
  .estrelas {
    justify-content: center;
  }
  .estrela-rotulo {
    text-align: center;
  }
  .fim-bts {
    flex-direction: column;
    width: 100%;
  }
}
