@font-face {
  font-family: "BebasNeue";
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url("fonts/BebasNeue-Regular.eot");
  src: url("fonts/BebasNeue-Regular.otf") format("otf"),
    url("fonts/BebasNeue-Regular.ttf") format("truetype"),
    url("fonts/BebasNeue-Regular.woff") format("woff"),
    url("fonts/BebasNeue-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url("fonts/Roboto-Regular.eot");
  src: url("fonts/Roboto-Regular.otf") format("otf"),
    url("fonts/Roboto-Regular.ttf") format("truetype"),
    url("fonts/Roboto-Regular.woff") format("woff"),
    url("fonts/Roboto-Regular.woff2") format("woff2");
}
#mensagem {
  border: solid 2px #8800ff;
  background: #00ff99;
  padding: 10px 30px 10px;
  font-family: "BebasNeue";
  /* font-size: 3em; */
  font-size: 32px;
  border-radius: 90px;
  line-height: 1;
  margin-bottom: 10px;
  margin-top: 20px;
  color: #8800ff;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 0 15px 2px #8200ff;
  font-style: italic;
  letter-spacing: 1px;
  width: 325px;
  position: fixed;
  top: 20px;
  z-index: 99999;
  animation: fade-in-down 1s ease;
}
.font-bebas {
  font-family: "BebasNeue";
}

.font-regular {
  font-family: "Roboto";
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}

input,
textarea,
select {
  font-size: 16px;
}

body {
  font-family: "Roboto", serif;
  background-color: #8200ff;
  color: #333;
  line-height: 1.6;
  height: 100%;
}

.quiz-container {
  max-width: 500px;
  margin: 1rem auto;
  border-radius: 10px;
  overflow: hidden;
}

.quiz-header {
  text-align: left;
  padding: 1rem;
}

.quiz-header h1 {
  font-size: 72px;
  color: #fff;
  line-height: 1em;
  margin: 20px 0;
}

.quiz-image {
  width: 100%;
  border-radius: 20px;
}

/* Barra de Progresso DinÃƒÂ¢mica */
.progress-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.2rem auto;
  height: 50px;
  /* espaÃƒÂ§o para os cÃƒÂ­rculos e conectores */
  gap: 8px;
}

/* Linha de fundo e preenchimento */
.progress-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 10px;
  background-color: #fff;
  transform: translateY(-50%);
  z-index: 1;
  border-radius: 2.5px;
  overflow: hidden;
}

.progress-line-fill {
  height: 100%;
  width: 0%;
  background-color: #00ff99;
  transition: width 0.3s ease;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

/* CÃƒÂ­rculos (steps) */
/* .progress-bar .step {
  position: relative;
  z-index: 2;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #6f6b6b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  background-color: #fff;
  box-sizing: border-box;
} */
.progress-bar .step {
  flex: 0 0 50px;
  color: #8200ff;
  /* NÃƒÂ£o permita que cresÃƒÂ§a ou encolha; largura fixa de 50px */
  z-index: 2;
  font-size: 20px;
  font-family: "BebasNeue";
  width: 50px;
  /* Largura fixa */
  height: 50px;
  /* Altura fixa */
  border-radius: 50%;
  /* Garante formato circular */
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  box-sizing: border-box;
  margin: 0;
  /* Remova margens se houver */
}

.progress-bar .step.active {
  background-color: #00ff99;
  color: #8200ff;
}

/* Conectores entre os steps */
.progress-bar .connector {
  display: inline-block;
  width: 20px;
  /* ajuste conforme necessÃƒÂ¡rio */
  height: 5px;
  background-color: transparent;
  /* inicialmente transparente */
}

/* FormulÃƒÂ¡rio */
.quiz-form {
  padding: 1rem;
  text-align: center;
}

.quiz-fieldset {
  /* background-color: #e0e0e0; */
  padding: 15px 20px;
  /* border: 1px solid #ada8a8; */
  border: none;
  border-radius: 10px;
}

.contentTextFinal p {
  font-weight: 700;
}

/* Container para agrupar legend e labels */
legend {
  font-family: "BebasNeue";
  font-size: 32px;
  color: #fff;
  line-height: 1;
}

.response-text {
  font-family: "BebasNeue";
  font-size: 36px;
  color: #fff;
  line-height: 1;
  margin-top: 30px;
}

.fieldset-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.quiz-legend {
  padding: 0;
  width: 100%;
  text-align: left;
  font-weight: 700;
}

.labels-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 10px;
}

.labels-container label {
  text-align: left;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  font-size: 22px;
  color: #fff;
}

.labels-container input[type="radio"] {
  margin-right: 0.8rem;
  transform: scale(1.5);
  position: relative;
}

input[type="radio"]:checked {
  border-color: #00ff99;
}

input[type="radio"]:checked::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #00ff99;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.btn-next-prev {
  display: flex;
  flex-direction: row;
  gap: 5px;
}

/* BotÃƒÂ£o */
#prev-question {
  position: relative;
  z-index: 1001;
  width: 85px;
  background-color: #fff;
  color: #8200ff;
  border: 2px solid #9e7fbb;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 1rem;
  white-space: pre-line;
  /* display: flex !important; */
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#prev-question img {
  width: 20px;
  height: 20px;
}

#next-question,
.action-button {
  font-family: "BebasNeue";
  letter-spacing: 1px;
  font-style: italic;
  position: relative;
  z-index: 99;
  width: 100%;
  background-color: #00ff99;
  color: #8200ff;
  border: 1px solid #00ff99;
  font-size: 28px;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 1rem;
}

#next-question:disabled {
  background-color: #000;
  border: 1px solid #fff;
  color: #fff;
  opacity: 0.5;
  cursor: not-allowed;
}

.small-text {
  font-size: 0.8em;
  color: inherit;
}

.quiz-result {
  font-family: "BebasNeue";
  font-size: 1.5rem;
  text-align: center;
  font-size: 28px;
  color: #fff;
  line-height: 1em;
  margin: 20px 0;
}

/* AnimaÃ§Ã£o para o botÃ£o final (pulse) */
.animate-button {
  animation: pulse 0.8s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(19, 243, 159, 0.7);
    background-color: #00ff99;
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(19, 243, 159, 0);
    background-color: #00ff99;
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(19, 243, 159, 0);
    background-color: #00ff99;
  }
}

/* Overlay para loading */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  pointer-events: none;
}

/* Overlay final para dim background com animaÃƒÂ§ÃƒÂ£o de transparÃƒÂªncia pulsante */
.final-dim-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 900;
  pointer-events: none;
  animation: dimPulse 3s ease-in-out infinite;
}

@keyframes dimPulse {
  0% {
    background-color: rgba(0, 0, 0, 0.452);
  }

  50% {
    background-color: rgba(0, 0, 0, 0.9);
  }

  100% {
    background-color: rgba(0, 0, 0, 0.377);
  }
}

/* Responsividade */
@media (max-width: 600px) {
  .quiz-container {
    margin: 0.5rem;
  }
}
@media (min-width: 600px) {
  .progress-bar {
    width: 70%;
  }
}

/* Responsividade */
@media (max-width: 990px) {
  body {
    background-image: url("images/bg-calculadora.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    margin: 0;
  }

  .progress-bar .step {
    flex: 0 0 38px;
    color: #8200ff;
    z-index: 2;
    font-size: 20px;
    font-family: "BebasNeue";
    width: 45px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    box-sizing: border-box;
    margin: 0;
    line-height: 1 !important;
  }
}

/* Estilo do modal */
.modal {
  display: none;
  /* Escondido por padrÃ£o */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* Fundo escurecido */
  justify-content: center;
  align-items: center;
  opacity: 0;
  /* ComeÃ§a invisÃ­vel */
  transition: opacity 0.2s ease;
  /* TransiÃ§Ã£o de 0.5s */
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 999;
}

/* ConteÃºdo do modal */
.modal-content {
  position: relative;
  background-color: #8200ff;
  padding: 20px;
  border-radius: 25px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  transform: scale(0.8);
  /* ComeÃ§a menor */
  transition: transform 0.2s ease;
  /* TransiÃ§Ã£o de escala */
  border: 1px solid #8200ff;
  box-shadow: 0 0 15px 2px #8200ff;
  z-index: 999999;
}

/* Classe para exibir o modal */
.modal.show {
  display: flex;
  opacity: 1;
  /* Totalmente visÃ­vel */
}

.title-modal {
  font-family: "BebasNeue";
  font-size: 42px;
  color: #fff;
  margin-bottom: 20px;
  margin-top: 20px;
  line-height: 1em;
}

.modal.show .modal-content {
  transform: scale(1);
  /* Escala normal quando visÃ­vel */
}

.close-btn {
  position: absolute;
  right: 25px;
  line-height: 1;
  top: 20px;
  color: #fff !important;
  font-family: "BebasNeue";
  background: transparent;
  padding: 0;
  border: none;
  font-size: 22px;
  cursor: pointer;
  font-style: italic;
}

.form-field {
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: left;
  margin-bottom: 10px;
}
.btn-contato input {
  margin-bottom: 20px;
  margin-top: 10px;
  font-style: italic;
  opacity: 0.5;
}
.btn-contato input:not(:disabled) {
  animation: pulse 0.8s infinite;
  background: #25d366;
  color: #8200ff;
  opacity: 1;
  cursor: pointer;
}
.modal label {
  font-size: 18px;
  margin-bottom: 5px;
  font-style: italic;
  color: #fff;
  line-height: 1.2;
}

.modal input {
  height: 40px;
  border-radius: 10px;
  border: none;
  padding: 0 10px;
  font-size: 18px;
  border: 2px solid #ccc;
}

.btn-contato input {
  font-family: "BebasNeue";
  letter-spacing: 1px;
  font-style: italic;
  position: relative;
  z-index: 99;
  width: 100%;
  background-color: #00ff99;
  color: #8200ff;
  border: 1px solid #00ff99;
  font-size: 28px;
  /* padding: 0.75rem 1.5rem; */
  border-radius: 50px;
  /* cursor: pointer; */
  /* transition: background-color 0.3s; */
  /* margin-top: 1rem; */
  height: 50px !important;
}

.modal textarea {
  border: none;
  font-family: "Roboto";
  height: 100px;
  font-size: 18px;
  border-radius: 10px;
  padding: 15px 10px;
  border: 2px solid transparent;
}

.modal input:focus,
.modal textarea:focus {
  outline: none;
  border: 2px solid #00ff99;
}

.radius {
  border-radius: 50%;
}
@keyframes fade-in-down {
  0% {
    opacity: 0;
    transform: translateY(-20px) translateX(-50%);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateX(-50%);
  }
}