*  {
  box-sizing: border-box;
}

body  {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  
  background: #4f2675 url("../images/3main-bg.png") no-repeat fixed center;
  background-size: cover;
  color: #2d2140;
}

/* ========================= MAIN WRAPPER ========================== */ .quiz-wrapper  {
  min-height: 100vh;
  padding: 25px 15px;
}

.quiz-container  {
  max-width: 430px;
  margin: auto;
}

/* ========================= SCREEN ========================== */ .quiz-screen  {
  display: none;
  min-height: 780px;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  border: 1px solid #ddd2ed;
  background: linear-gradient( 180deg, rgba(255, 255, 255, 0.96), rgba(248, 243, 253, 0.98) ), url("images/chocolate-background.jpg") center/cover;
  box-shadow: 0 15px 50px rgba(80, 45, 110, 0.18);
}

.quiz-screen.active  {
  display: flex;
}

/* ========================= START SCREEN ========================== */ .start-screen  {
  flex-direction: column;
  justify-content: space-between;
  padding: 35px 25px 25px;
  text-align: center;
}

.logo-title  {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  line-height: 1;
  font-weight: 700;
  color: #6b3fa0;
  text-shadow: none;
}

.crown  {
  font-size: 35px;
  display: block;
  margin-bottom: 5px;
  color: #7b4bb3;
}

.start-subtitle  {
  font-size: 16px;
  line-height: 1.5;
  margin-top: 25px;
  color: #fff;
}

.ribbon  {
  position: relative;
  background: #eadcf7;
  color: #5b3285;
  font-weight: 700;
  padding: 10px 20px;
  margin: 30px auto;
  max-width: 290px;
  transform: rotate(-3deg);
  box-shadow: 0 5px 10px rgba(80, 45, 110, 0.12);
}

.ribbon:before, .ribbon:after  {
  content: "";
  position: absolute;
  top: 0;
  width: 35px;
  height: 100%;
  background: #5b3285;
  z-index: -1;
}

.ribbon:before  {
  left: -20px;
  clip-path: polygon(100% 0, 0 20%, 100% 50%, 0 80%, 100% 100%);
}

.ribbon:after  {
  right: -20px;
  clip-path: polygon(0 0, 100% 20%, 0 50%, 100% 80%, 0 100%);
}

.chocolate-stack  {
  width: 100%;
  height: 330px;
  object-fit: contain;
  margin: 10px auto 25px;
}

/* ========================= BUTTONS ========================== */ .btn-yellow  {
  background: linear-gradient(135deg, #8b5cc7, #663399);
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: 40px;
  padding: 13px 30px;
  min-width: 185px;
  font-size: 17px;
  box-shadow: 0 6px 15px rgba(102, 51, 153, 0.25);
}

.btn-yellow:hover  {
  background: linear-gradient(135deg, #986bd1, #703aa5);
  color: #fff;
  transform: translateY(-1px);
}

.btn-brown  {
  background: #4f2675;
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: 40px;
  padding: 13px 25px;
}

.btn-brown:hover  {
  background: #63328e;
  color: #fff;
}

.btn-outline-brown  {
  background: #ffffff;
  border: 1px solid #8b5cc7;
  color: #663399;
  font-weight: 600;
  border-radius: 30px;
  padding: 9px 20px;
}

.btn-outline-brown:hover  {
  background: #f3ebfa;
  color: #663399;
}

/* ========================= QUESTION SCREEN ========================== */ .question-screen  {
  flex-direction: column;
  padding: 20px 18px;
}

.quiz-header  {
  text-align: center;
}

.quiz-title  {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  line-height: 1;
  color: #7345a7;
}

.quiz-title .crown  {
  display: inline;
  font-size: 20px;
}

.question-count  {
  position: absolute;
  right: 20px;
  top: 45px;
  font-size: 13px;
  font-weight: 700;
}

/* Progress */ .progress-wrapper  {
  margin: 20px 10px 25px;
}

.progress  {
  height: 8px;
  background: #e4d9ef;
  border-radius: 20px;
}

.progress-bar  {
  background: linear-gradient(90deg, #9a6bd0, #663399);
  border-radius: 20px;
}

/* Question card */ .question-card  {
  background: linear-gradient(180deg, #ffffff, #6940a217);
  color: #30140f;
  border-radius: 25px;
  padding: 20px 15px;
  min-height: 570px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.chocolate-drip  {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 25px;
  background: #fff;
  border-radius: 25px 25px 0 0;
}

.chocolate-drip:after  {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 30px;
  background: #7544a5;
  clip-path: polygon( 0 0, 100% 0, 100% 45%, 90% 45%, 88% 80%, 82% 80%, 80% 45%, 65% 45%, 62% 95%, 57% 95%, 55% 45%, 40% 45%, 38% 75%, 33% 75%, 31% 45%, 15% 45%, 13% 70%, 8% 70%, 7% 45%, 0 45% );
}

.question-number  {
  display: inline-block;
  background: #6b3fa0;
  color: #fff;
  font-weight: 700;
  border-radius: 20px;
  padding: 5px 15px;
  margin-top: 10px;
  font-size: 14px;
}

.question-text  {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  margin: 12px auto 20px;
  max-width: 330px;
}

/* ========================= ANSWERS ========================== */ .answer-list  {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.answer-option  {
  position: relative;
}

.answer-option input  {
  position: absolute;
  opacity: 0;
}

.answer-label  {
  min-height: 55px;
  width: 100%;
  border: 2px solid #e0d5eb;
  border-radius: 30px;
  background: #f9f8f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 8px 15px;
  cursor: pointer;
  box-shadow: 0 3px 7px rgba(80, 45, 110, 0.07);
  transition: 0.2s;
}

.answer-label:hover  {
  border-color: #8b5cc7;
  background: #faf7fd;
}

.answer-option input:checked + .answer-label  {
  border: 2px solid #7b4bb3;
  background: #f3ebfa;
}

.radio-circle  {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1.5px solid #6940a2;
  border-radius: 50%;
  margin-right: 12px;
  position: relative;
}

.answer-option input:checked + .answer-label .radio-circle:after  {
  content: "";
  width: 10px;
  height: 10px;
  background: #7544a5;
  border-radius: 50%;
  position: absolute;
  top: 3.5px;
  left: 3px;
}

.answer-text  {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #63328e;
}

.answer-image  {
  width: 55px;
  height: 45px;
  object-fit: contain;
  margin-left: 8px;
}

/* ========================= QUESTION BUTTONS ========================== */ .question-buttons  {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.next-btn  {
  min-width: 125px;
  padding: 10px 20px;
}

/* ========================= FORM SCREEN ========================== */ .form-screen  {
  flex-direction: column;
  padding: 20px 18px;
}

.form-card  {
  background: #ffffff;
  color: #2d2140;
  border: 1px solid #e3d8ed;
  border-radius: 25px;
  padding: 35px 20px;
  box-shadow: 0 10px 25px rgba(80, 45, 110, 0.1);
}

.profile-icon  {
  width: 55px;
  height: 55px;
  background: #7544a5;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 25px;
}

.form-title  {
  font-weight: 700;
  text-align: center;
  font-size: 18px;
}

.form-subtitle  {
  text-align: center;
  font-size: 13px;
  margin-bottom: 10px;
}

.form-label  {
  font-size: 13px;
  font-weight: 600;
}

.form-control  {
  border-radius: 10px;
  border: 1px solid #d9cce7;
  min-height: 45px;
  background: #fff;
}

.form-control:focus  {
  border-color: #7b4bb3;
  box-shadow: 0 0 0 0.2rem rgba(123, 75, 179, 0.12);
}

.input-group-text  {
  background: #fff;
  border-color: #d9cce7;
  color: #8b6aa8;
}

.form-button  {
  width: 100%;
  margin-top: 5px;
}

/* ========================= THANK YOU ========================== */ .thankyou-screen  {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 30px;
  background: radial-gradient(circle at center, #ffffff 0%, #f3eafa 100%);
}

.thankyou-title  {
  font-family: "Playfair Display", serif;
  font-size: 55px;
  font-style: italic;
  color: #663399;
}

.thankyou-subtitle  {
  font-size: 16px;
  margin: 10px auto 25px;
  color: #4b3b58;
}

.thankyou-ribbon  {
  background: #eadcf7;
  color: #5b3285;
  padding: 12px 20px;
  font-size: 18px;
  font-weight: 700;
  transform: rotate(-2deg);
  display: inline-block;
  border: 1px solid #d7c2e8;
}

/* ========================= RESPONSIVE ========================== */ @media (max-width: 575px)  {
  .quiz-wrapper  {
    padding: 0;
  }

  .quiz-container  {
    max-width: 100%;
  }

  .quiz-screen  {
    min-height: 100vh;
    border-radius: 0;
    border: none;
  }

  .start-screen  {
    padding: 35px 20px 25px;
  }

  .logo-title  {
    font-size: 39px;
  }

  .question-card  {
    min-height: calc(100vh - 190px);
  }

  .question-text  {
    font-size: 18px;
  }

  .answer-label  {
    min-height: 53px;
  }

}

@media (min-width: 576px)  {
  .quiz-container  {
    max-width: 430px;
  }

}
/* ========================= CONSENT / OTP NOTE ========================== */
.otp-note  {
  font-size: 12px;
  color: #8b6aa8;
  margin-bottom: 12px;
}

.consent-label  {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #4b3b58;
  margin-bottom: 15px;
}

.consent-label input[type="checkbox"]  {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #7544a5;
}

.consent-label a  {
  color: #7544a5;
  font-weight: 600;
}

/* a question's Next stays dimmed until an option is picked */
.btn.next-btn:disabled  {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn:disabled  {
  opacity: 0.6;
  cursor: not-allowed;
}
