/* ======================================
   RIGHT ON FINANCE
   FIND MY FINANCIAL FIT
   ====================================== */

.fit-page {
  background: #f5f6f8;
  min-height: 80vh;
  padding: 60px 20px 75px;
}

/* INTRODUCTION */

.fit-intro {
  max-width: 750px;
  margin: 0 auto 35px;
  text-align: center;
}

.eyebrow {
  color: #a61e2d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.fit-intro h1 {
  color: #30343b;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.2;
  margin: 0 0 16px;
}

.fit-intro > p:last-child {
  color: #59616c;
  font-size: 17px;
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto;
}

/* MAIN QUESTIONNAIRE CARD */

.quiz-container {
  background: white;
  max-width: 760px;
  margin: 0 auto;
  padding: 38px;
  border: 1px solid #e1e4e8;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* PROGRESS BAR */

.quiz-progress {
  margin-bottom: 32px;
}

#progress-text {
  display: block;
  color: #a61e2d;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #e9ebef;
  border-radius: 20px;
  overflow: hidden;
}

.progress-fill {
  width: 25%;
  height: 100%;
  background: #a61e2d;
  border-radius: 20px;
  transition: width 0.3s ease;
}

/* QUESTION */

#question-title {
  font-size: 27px;
  line-height: 1.3;
  color: #30343b;
  margin: 0 0 12px;
}

.question-description {
  color: #59616c;
  font-size: 15px;
  margin: 0 0 28px;
}

/* ANSWER CHOICES */

.answer-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
}

.answer-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 19px;
  background: white;
  border: 2px solid #e1e4e8;
  border-radius: 11px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, background-color 0.2s;
}

.answer-option:hover {
  border-color: #a61e2d;
  background: #fff8f8;
}

.answer-option.selected {
  border-color: #a61e2d;
  background: #fff4f5;
}

.answer-option:focus-visible {
  outline: 3px solid #a61e2d;
  outline-offset: 3px;
}

.option-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: #f1f2f4;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
}

.option-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.option-text strong {
  color: #30343b;
  font-size: 16px;
}

.option-text small {
  color: #59616c;
  font-size: 13px;
  line-height: 1.5;
}

/* NAVIGATION BUTTONS */

.quiz-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 32px;
}

.back-button,
.next-button {
  border: none;
  border-radius: 7px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.back-button {
  background: #e9ebef;
  color: #30343b;
}

.back-button:hover {
  background: #dadde2;
}

.next-button {
  background: #a61e2d;
  color: white;
  margin-left: auto;
}

.next-button:hover:not(:disabled) {
  background: #851725;
}

.next-button:disabled {
  background: #c7cbd1;
  cursor: not-allowed;
}

/* RESULTS */

.quiz-result {
  background: #f9fafb;
  border: 1px solid #e1e4e8;
  border-radius: 12px;
  padding: 25px;
  margin-top: 25px;
}

.quiz-result h3 {
  color: #a61e2d;
  font-size: 23px;
}

.quiz-result p {
  color: #59616c;
}

.quiz-result a {
  color: #a61e2d;
  font-weight: 700;
}

/* PRIVACY NOTE */

.privacy-note {
  max-width: 650px;
  text-align: center;
  margin: 25px auto 0;
  color: #777e89;
  font-size: 13px;
  line-height: 1.6;
}

/* KEEP HIDDEN ELEMENTS HIDDEN */

[hidden] {
  display: none !important;
}

/* MOBILE DESIGN */

@media (max-width: 600px) {
  .fit-page {
    padding: 40px 15px 55px;
  }

  .fit-intro {
    margin-bottom: 28px;
  }

  .fit-intro h1 {
    font-size: 32px;
  }

  .fit-intro > p:last-child {
    font-size: 15px;
  }

  .quiz-container {
    padding: 24px 18px;
    border-radius: 12px;
  }

  #question-title {
    font-size: 23px;
  }

  .answer-option {
    padding: 14px;
    gap: 12px;
  }

  .option-icon {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }

  .option-text strong {
    font-size: 15px;
  }

  .back-button,
  .next-button {
    padding: 12px 18px;
    font-size: 14px;
  }
}
