@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #f8f8f8;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  color: #333;
  box-sizing: border-box;
}

#quiz-section.hidden,
#form-section.hidden {
  display: none !important;
}

#quiz-section.active,
#form-section.active {
  display: block;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Estilos Específicos para o Quiz --- */
#quiz-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 620px;
}

#quiz-section .quiz-container {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  width: 95%;
  max-width: 620px;
  padding: 45px;
  text-align: center;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  animation: scaleIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes scaleIn {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.quiz-logo-img {
  width: 240px;
  margin-top: 80px;
  margin-bottom: 40px;
}

.quiz-progress-bar-container {
  width: 95%;
  max-width: 620px;
  height: 14px;
  background-color: rgb(249, 250, 251);
  border-radius: 30px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.quiz-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, rgb(223, 3, 3), rgb(158, 0, 0));
  border-radius: 30px;
  transition: width 0.5s ease-out;
}

.quiz-progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: bold;
  font-size: 10px;
  z-index: 1;
}

#quiz-section h1 {
  color: #2c3e50;
  margin-bottom: 35px;
  font-size: 26px;
  font-weight: 700;
  position: relative;
  letter-spacing: -0.5px;
}

#quiz-section h1::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  width: 60px;
  height: 4px;
  background-color: rgba(225, 29, 72, 0.95);
  border-radius: 2px;
}

#quiz-section .question-slide {
  display: none;
  animation: fadeInSlideUp 0.8s ease-out forwards;
}

#quiz-section .question-slide.active {
  display: block;
}

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

#quiz-section h2 {
  color: #444;
  margin-bottom: 30px;
  font-size: 20px;
  font-weight: 600;
}

#quiz-section .options {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#quiz-section .options label {
  background-color: #fdfdfd;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  font-size: 1.1em;
  color: #555;
  position: relative;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

#quiz-section .options label:hover {
  background-color: #f2f2f2;
  border-color: #d0d0d0;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

#quiz-section .options label i {
  margin-right: 18px;
  font-size: 1.7em;
  color: #333;
  transition: color 0.25s ease-in-out;
  min-width: 28px;
  text-align: center;
}

#quiz-section .options label:hover i {
  color: #555;
}

#quiz-section .options input[type="radio"] {
  display: none;
}

#quiz-section .options label span.radio-custom {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(225, 29, 72, 0.95);
  border-radius: 50%;
  margin-right: 18px;
  position: relative;
  top: 2px;
  transition: all 0.25s ease-in-out;
  flex-shrink: 0;
}

#quiz-section .options input[type="radio"]:checked + span.radio-custom {
  background-color: rgba(225, 29, 72, 0.95);
  border-color: rgba(225, 29, 72, 0.95);
  box-shadow: 0 0 0 5px rgba(255, 0, 0, 0.25);
}

#quiz-section .options input[type="radio"]:checked + span.radio-custom::after {
  content: "";
  width: 10px;
  height: 10px;
  background-color: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#quiz-section .options input[type="radio"]:checked ~ i,
#quiz-section .options input[type="radio"]:checked ~ .radio-label {
  color: rgba(225, 29, 72, 0.95);
  font-weight: 600;
}

#quiz-section button {
  background-color: rgba(225, 29, 72, 0.95);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 15px 32px;
  font-size: 1.2em;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 10px 0 rgba(182, 23, 58, 0.95);
  font-weight: 600;
  letter-spacing: 0.5px;
  outline: none;
}

#quiz-section button:hover {
  scale: 1.04;
}

@media (max-width: 480px) {
  #quiz-section .quiz-container {
    padding: 20px;
    border-radius: 12px;
  }

  .quiz-logo-img {
    margin-top: 30px;
  }

  #quiz-section h1 {
    font-size: 26px;
  }

  #quiz-section h2 {
    font-size: 18px;
  }

  #quiz-section .options {
    gap: 12px;
  }

  #quiz-section .options label {
    padding: 12px 15px;
    font-size: 16px;
  }

  #quiz-section .options label i {
    font-size: 18px;
    margin-right: 10px;
  }

  #quiz-section .options label span.radio-custom {
    width: 16px;
    height: 16px;
    margin-right: 10px;
  }

  #quiz-section button {
    padding: 10px 22px;
    font-size: 18px;
  }
}

/* --- Estilos Específicos para o Formulário --- */
#form-section .container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
}

#form-section main {
  /*display: flex;*/
  /*flex-direction: column;*/
  width: 600px;
  max-width: 100%;
  padding: 37px 10px 10px 10px;
}

#form-section .step {
  display: none;
}

#form-section .step.active {
  display: block;
  width: 100%;
  flex-direction: column;
  align-items: center;
}

#form-section .progress {
  height: 14px;
  width: 100%;
  background-color: rgb(249, 250, 251);
  border-radius: 30px;
  overflow: hidden;
}

#form-section .progress-bar {
  height: 100%;
  background: linear-gradient(to right, rgb(223, 3, 3), rgb(158, 0, 0));
  border-radius: 30px;
  width: 0%;
  transition: width 1s ease-in-out;
}

#form-section .progress-inter {
  width: 100%;
  margin-top: 25px;
  height: 23px;
  background-color: rgb(249, 250, 251);
  border: 2px solid #cecece;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}

#form-section .progress-bar-inter,
#form-section .progress-bar-bank {
  width: 0;
  height: 100%;
  background: linear-gradient(to right, rgb(223, 3, 3), rgb(158, 0, 0));
  background-color: rgb(17, 17, 17);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
}

#form-section .progress-bar-inter span,
#form-section .progress-bar-bank span {
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  position: relative;
  z-index: 1;
}

#form-section .header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  margin-bottom: 25px;
}

#form-section .header h1 {
  font-size: 27px;
  font-weight: 700;
  text-align: center;
  color: rgb(35, 34, 34);
  margin-top: 20px;
}

#form-section .header label {
  font-size: 18px;
  font-weight: 400;
  text-align: center;
  color: rgb(223, 3, 3);
  margin-top: 10px;
}

#form-section .header h2 {
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  color: rgb(35, 34, 34);
  margin-top: 25px;
}

#form-section .header p {
  font-size: 15px;
  font-weight: 400;
  text-align: center;
  color: rgb(35, 34, 34);
  margin-top: 10px;
}

#form-section .content-input {
  width: 100%;
  position: relative;
  margin-top: 15px;
  border: 1px solid rgb(229, 231, 235);
  display: flex;
  align-items: center;
  border-radius: 10px;
  padding: 18px 16px;
  box-shadow: -10px 18px 40px -21px rgb(226, 226, 226);
  transition: border-color 0.3s ease;
  background-color: rgb(249, 250, 251);
}

#form-section .content-input input {
  border: none;
  width: 100%;
  margin-left: 13px;
  background-color: transparent;
  font-size: 17px;
  font-weight: 400;
  color: rgb(0, 0, 0);
  outline: none;
}

#form-section .content-input:focus-within {
  border: 2px solid rgb(0, 0, 0);
}

#form-section .icon {
  color: rgb(0, 0, 0);
}

#form-section .select-wrapper {
  position: relative;
  width: 100%;
}

#form-section .select-wrapper .icon {
  position: absolute;
  top: 60%;
  left: 16px;
  transform: translateY(-48%);
  font-size: 27px;
  color: rgb(0, 0, 0);
  pointer-events: none;
}

#form-section #countrySelect,
#form-section #citySelect,
#form-section #parcelSelect {
  width: 100%;
  margin-top: 15px;
  border: 1px solid rgb(229, 231, 235);
  border-radius: 10px;
  padding: 18px 16px 18px 45px;
  box-shadow: -10px 18px 40px -21px rgb(226, 226, 226);
  transition: border-color 0.3s ease;
  background-color: rgb(249, 250, 251);
  appearance: none;
  font-size: 17px;
  font-weight: 400;
  color: rgb(0, 0, 0);
}

#form-section .error-message {
  display: none;
  position: absolute;
  align-items: center;
  top: 145%;
  left: 10%;
  z-index: 99;
  transform: translateY(-50%);
  color: #000;
  border: 1px solid rgb(206, 206, 206);
  background-color: #ffffff;
  padding: 15px 10px;
  font-size: 12px;
  border-radius: 5px;
  white-space: nowrap;
}

#form-section .error-message::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 10px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #ffffff;
}

#form-section .icon-atencion {
  font-size: 20px;
  color: rgb(255, 166, 0);
  margin-right: 10px;
}

#form-section .buttonMore {
  background-color: rgb(245, 245, 245);
  color: rgb(100, 100, 100);
  border: none;
  padding: 24px 32px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 0 #ccc;
  transform: translateY(4px);
  font-weight: 700;
  border-radius: 10px;
  display: none;
  font-size: 18px;
  cursor: pointer;
  margin-top: 20px;
  width: 100%;
  transition: 0.4s;
}

#form-section .buttonMore:hover {
  scale: 1.04;
}

#form-section .buttonNew {
  background-color: rgb(245, 245, 245);
  color: rgb(100, 100, 100);
  border: none;
  padding: 24px 32px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 0 #ccc;
  transform: translateY(4px);
  font-weight: 700;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  margin-top: 22px;
  width: 100%;
  transition: 0.4s;
}

#form-section .buttonNew:hover {
  scale: 1.04;
}

#form-section .button {
  border: none;
  background: rgba(225, 29, 72, 0.95);
  box-shadow: 0 8px 0 rgba(182, 23, 58, 0.95);
  transform: translateY(4px);
  color: rgb(255, 255, 255);
  border: none;
  padding: 24px 32px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  display: inline-block;
  font-size: 18px;
  cursor: pointer;
  margin-top: 20px;
  width: 100%;
  transition: 0.4s;
}

#form-section .button:hover {
  scale: 1.04;
}

#form-section .content-avaliacao {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  border-radius: 10px;
  margin-top: 25px;
  padding: 20px;
  border: 1px solid rgb(229, 231, 235);
}

#form-section .header-avaliacao {
  display: flex;
  flex-direction: row;
  width: 100%;
  align-items: center;
}

#form-section .avaliacao-img {
  height: 40px;
  object-fit: cover;
  border-radius: 9999px;
}

#form-section .avaliacao-texto {
  display: flex;
  margin-left: 10px;
  flex-direction: column;
}

#form-section .avaliacao-nome-pessoa {
  font-size: 17px;
  font-weight: 700;
  color: #000;
}

#form-section .avaliacao-local-pessoa {
  font-size: 12px;
  color: #000;
}

#form-section .info-avaliacao {
  width: 100%;
  color: #000;
  font-size: 15px;
  margin-top: 10px;
}

#form-section .estrelas-avaliacao {
  display: flex;
  flex-direction: row;
  margin-top: 18px;
  width: 100%;
}

#form-section .icon-star {
  margin-left: 3px;
  font-size: 17px;
  color: rgb(255, 208, 0);
}

#form-section .title-car {
  width: 100%;
  color: #000;
  text-align: center;
  font-size: 18px;
  margin-top: 20px;
}

#form-section .label-car {
  width: 100%;
  color: #000;
  text-align: center;
  font-size: 15px;
  margin-top: 15px;
  margin-bottom: 10px;
  font-weight: 300;
}

#form-section .content-assets {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
}

#form-section .gif {
  width: 180px;
}

#form-section .logo-img {
  width: 190px;
}

#form-section .box {
  display: flex;
  flex-direction: column;
}

#form-section .card1 {
  width: 100%;
  display: flex;
  flex-direction: row;
  margin-top: 12px;
  padding: 15px;
  border: 1px solid rgb(229, 231, 235);
  align-items: center;
  cursor: pointer;
  border-radius: 10px;
  box-shadow: 3px 3px 5px rgb(212, 212, 212);
  transition: border-color 0.3s ease;
  background-color: rgb(249, 250, 251);
}

#form-section .card1 nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  justify-content: center;
}

#form-section .card1 h1 {
  color: #000;
  font-size: 15px;
  font-weight: 500;
  width: 90%;
  display: -webkit-box;
  text-align: center;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

#form-section .card1 p {
  color: #030712;
  font-size: 13px;
  font-weight: 300;
  margin-top: 3px;
}

#form-section .image-card1 {
  width: 100px;
  height: 50px;
  object-fit: cover;
}

#form-section .card1.selected {
  border: 1px solid rgb(223, 3, 3);
}

#form-section .box2 {
  display: flex;
  flex-direction: row;
  width: 100%;
  margin-bottom: 12px;
  justify-content: space-between;
}

#form-section .card2 {
  width: 48%;
  display: flex;
  flex-direction: column;
  padding: 15px;
  border: 1px solid rgb(229, 231, 235);
  align-items: center;
  text-align: center;
  justify-content: space-between;
  cursor: pointer;
  border-radius: 10px;
  box-shadow: 3px 3px 5px rgb(212, 212, 212);
  transition: border-color 0.3s ease;
  background-color: rgb(249, 250, 251);
}

#form-section .card2 h1 {
  font-size: 80px;
}

#form-section .card2 p {
  color: #000;
  font-size: 15px;
  font-weight: 300;
}

#form-section .card3 {
  width: 48%;
  display: flex;
  flex-direction: column;
  padding: 15px;
  border: 1px solid rgb(229, 231, 235);
  align-items: center;
  text-align: center;
  justify-content: space-between;
  cursor: pointer;
  border-radius: 10px;
  box-shadow: 3px 3px 5px rgb(212, 212, 212);
  transition: border-color 0.3s ease;
  background-color: rgb(249, 250, 251);
}

#form-section .card3 p {
  color: #000;
  font-size: 15px;
  font-weight: 400;
}

#form-section .card3 label {
  color: #000;
  font-size: 13px;
  font-weight: 300;
  margin-top: 10px;
}

#form-section .logo-img2 {
  width: 120px;
}

#form-section .card3.selected {
  border: 1px solid rgb(223, 3, 3);
}

#form-section footer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px;
  margin-top: 50px;
  background-color: #2b2b2b;
}

#form-section .content-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 750px;
}

#form-section .content-footer text {
  font-size: 14px;
  color: #f1f1f1;
}

#form-section .content-footer div {
  display: block;
  margin-top: 7px;
}

#form-section .content-footer a:hover {
  text-decoration: underline;
  color: #f1f1f1;
}

@media only screen and (max-width: 1080px) {
  #form-section .content-footer text {
    font-size: 12px;
  }
}

#form-section .link {
  font-size: 14px;
  color: #b0aeae;
  margin-top: 10px;
  text-decoration: none;
  transition: 0.2s;
}

@media only screen and (max-width: 1080px) {
  #form-section .link {
    font-size: 12px;
  }
}