/* ================================
   GLOBAL RESET
================================ */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: transparent !important; /* Blends with parent page */
  color: #333;
}

/* ================================
   PAGE WRAPPER
================================ */

.quiz-wrapper {
  width: 100%;
  padding: 20px;
}

/* ================================
   QUIZ CARD + RESULTS CARD
================================ */

.quiz-card,
.result-box {
  background: #fff6cc;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  height: auto;
  min-height: auto;
  overflow: visible;
  position: relative;
}

/* ================================
   QUESTION COUNTER
================================ */

#question-counter {
  font-size: 14px;
  color: #666;
  margin-bottom: 18px;
}

/* ================================
   QUESTIONS
================================ */

.question {
  display: none;
}

.question.active {
  display: block;
  margin-bottom: 24px;
}

.question h2 {
  font-size: 22px;
  margin-bottom: 30px;
  line-height: 1.3;
}

/* ================================
   ANSWER OPTIONS (STRICT ONE PER LINE)
================================ */

/* Container for all options */
.options-container {
  display: block;
  width: 100%;
  margin: 20px 0;
}

/* Individual option wrapper */
.option-wrapper {
  display: block;
  width: 100%;
  margin-bottom: 12px;
}

/* Label styling with flex for radio + text alignment */
.option-label {
  display: flex !important;
  align-items: flex-start;
  background: #ffffff;
  border-radius: 10px;
  padding: 16px 20px;
  cursor: pointer;
  width: 100%;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.option-label:hover {
  background: #fff2b3;
  border-color: #d4a72c;
}

/* Fallback for labels without wrapper classes */
.question label {
  display: block !important;
  background: #ffffff;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
}

.question label:hover {
  background: #fff2b3;
  border-color: #d4a72c;
}

/* Radio button spacing */
.question input[type="radio"],
.option-label input[type="radio"] {
  margin-right: 15px;
  margin-top: 4px;
  flex-shrink: 0;
}

/* ================================
   BUTTONS (CENTERED)
================================ */

.next-btn,
.submit-btn,
#next-btn {
  display: block !important;
  background: #d4a72c;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 40px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin: 40px auto 10px auto !important;
  float: none !important;
  min-width: 180px;
  transition: background 0.2s ease;
}

.next-btn:hover,
.submit-btn:hover,
#next-btn:hover {
  background: #c19522;
}

/* ================================
   RESULTS TEXT STYLING
================================ */

.result-box h1 {
  font-size: 30px;
  margin-bottom: 24px;
}

.result-box h2,
.result-box h3 {
  font-size: 21px;
  margin-top: 32px;
  margin-bottom: 16px;
}

.result-box p {
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 18px;
}

.result-box ul {
  margin: 20px 0 26px 22px;
}

.result-box li {
  margin-bottom: 10px;
}

/* ================================
   SYSTEME FORM (FLOW NATURALLY)
================================ */

.form-center {
  width: 100%;
  margin: 50px auto 0;
  max-width: 720px;
}

.form-center iframe {
  width: 100% !important;
  border: none;
}

/* ================================
   MOBILE ADJUSTMENTS
================================ */

@media (max-width: 768px) {
  .quiz-card,
  .result-box {
    padding: 25px 20px;
  }

  .question h2 {
    font-size: 20px;
  }
  
  .question label,
  .option-label {
    padding: 14px 15px;
  }
}

/* ================================
   FORCE CONTENT TO FLOW FOR IFRAME
================================ */

.quiz-card,
.result-box,
.quiz-wrapper {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
