/* Fontes locais */
/* poppins-regular - latin */
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-v22-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* poppins-600 - latin */
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-v22-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* poppins-700 - latin */
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-v22-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.oculto {
  display: none;
}

.barra-progresso {
  height: 8px;
  width: 100%;
  background-color: #1e3a5a;
  border-radius: 10px;
  overflow: hidden;
}

.preenchimento-barra {
  height: 100%;
  background-color: #247CFF;
  transition: width 0.3s ease;
}

.container-quiz {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.etapa-quiz {
  animation: fadeIn 0.3s ease-in-out;
}

.etapa-quiz h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.etapa-quiz label {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  color: #0e1f2f;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.etapa-quiz label:hover {
  background-color: #f0f4f8;
}

.etapa-quiz input[type="radio"] {
  margin-right: 0.75rem;
  accent-color: #247CFF;
  width: 18px;
  height: 18px;
}

.etapa-quiz input[type="text"],
.etapa-quiz input[type="email"],
.etapa-quiz input[type="tel"],
.etapa-quiz input[type="number"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background-color: #ffffff;
  color: #0e1f2f;
  box-sizing: border-box;
  margin-bottom: 1rem;
}

.descricao-quiz {
  font-size: 0.95rem;
  color: #d0d3d6;
  margin-bottom: 1rem;
}

.seletores-data {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.seletores-data select {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background-color: #ffffff;
  color: #0e1f2f;
  min-width: 100px;
}

.rodape-quiz:has(#btnVoltar[style*="display: none"]) {
  justify-content: flex-end;
}

.rodape-quiz {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 600px;
}

button {
  background-color: #247CFF;
  color: white;
  border: none;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: 500;
}

button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: auto;
}

button:hover {
  background-color: #1a6de0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.etapa-quiz fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}


@media (max-width: 768px) {
  .container-quiz {
    padding: 2rem 1rem;
  }

  .etapa-quiz h2 {
    font-size: 1.25rem;
  }

  .seletores-data {
    flex-direction: column;
  }
}

#preload-feedback {
  text-align: center;
}

.caixa-feedback {
  transition: all 0.4s ease-in-out;
}

#imagemPreload {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: opacity 0.5s ease-in-out;
  opacity: 1;
  max-width: 400px;
}

#imagemPreload.fade-out {
  opacity: 0;
}

#textoPreload {
  font-size: 1.1rem;
  color: #d0d3d6;
  animation: fadeIn 0.6s ease-in-out;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 4px solid #ffffff33;
  border-top: 4px solid #ffffff;
  border-radius: 50%;
  margin: 2rem auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.progresso-preload {
  width: 100%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 1.5rem;
}

#preenchimentoProgressoPreload {
  height: 100%;
  background-color: #247CFF;
  width: 0%;
  transition: width 0.4s ease;
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
  border: none;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  width: 100%;
  margin-top: 1.5rem;
  transition: background-color 0.3s ease;
}

.btn-whatsapp:hover {
  background-color: #1ebe5d;
}

.evolucao-container {
  margin-top: 2rem;
  text-align: center;
  width: 100%;
}

.evolucao-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #d0d3d6;
  margin-bottom: 0.5rem;
  padding: 0 4px;
}

.evolucao-barra {
  height: 12px;
  width: 100%;
  border-radius: 10px;
  background: linear-gradient(to right, #ffffff10, #247CFF);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(36, 124, 255, 0.2);
  animation: carregarBarra 2s ease-in-out forwards;
}

@keyframes carregarBarra {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.evolucao-legenda {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #ccc;
}

#final label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}