/* Base */
body {
  font-family: var(--font-sans);
  color: var(--gray-9);
  background: var(--gray-0);
  line-height: var(--font-lineheight-3);
}

/* Reset Open Props normalize max-inline-size */
p, h1, h2, h3, h4, h5, h6 {
  max-inline-size: none;
}

.container {
  max-width: 800px;
  margin-inline: auto;
  padding-inline: var(--size-fluid-3);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--size-3) var(--size-6);
  border-radius: var(--radius-2);
  font-size: var(--font-size-3);
  font-weight: var(--font-weight-6);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary {
  background: var(--blue-7);
  color: var(--gray-0);
}

.btn-primary:hover {
  background: var(--blue-8);
}

.btn-answer {
  display: block;
  width: 100%;
  text-align: left;
  padding: var(--size-3) var(--size-4);
  margin-block-end: var(--size-2);
  background: var(--gray-1);
  border: 1px solid var(--gray-4);
  border-radius: var(--radius-2);
  font-size: var(--font-size-2);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-answer:hover {
  background: var(--blue-1);
  border-color: var(--blue-5);
}

/* Sections */
section {
  padding-block: var(--size-fluid-5);
}

/* Hero */
.hero {
  text-align: center;
  background: var(--blue-9);
  color: var(--gray-0);
  padding-block: var(--size-fluid-6);
}

.hero h1 {
  font-size: var(--font-size-fluid-3);
  font-weight: var(--font-weight-8);
  margin-block-end: var(--size-3);
  color: var(--gray-0);
}

.hero-subtext {
  font-size: var(--font-size-fluid-1);
  max-width: 600px;
  margin-inline: auto;
  margin-block-end: var(--size-5);
  opacity: 0.9;
}

/* Value Statement */
.value-statement {
  text-align: center;
}

.value-statement h2 {
  font-size: var(--font-size-fluid-2);
  margin-block-end: var(--size-3);
}

.value-statement p {
  max-width: 600px;
  margin-inline: auto;
  margin-block-end: var(--size-3);
}

/* Four Pillars */
.pillars {
  background: var(--gray-1);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--size-5);
  text-align: center;
}

.pillar-icon {
  font-size: var(--font-size-7);
  margin-block-end: var(--size-2);
}

.pillar h3 {
  font-size: var(--font-size-4);
  margin-block-end: var(--size-1);
}

/* Report */
.report {
  text-align: center;
}

.report h2 {
  font-size: var(--font-size-fluid-2);
  margin-block-end: var(--size-3);
}

.report p {
  max-width: 600px;
  margin-inline: auto;
  margin-block-end: var(--size-4);
}

.trust-bullets {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--size-2);
  align-items: center;
}

.trust-bullets li::before {
  content: "\2713 ";
  color: var(--green-7);
  font-weight: var(--font-weight-7);
}

/* Testimonials */
.testimonials {
  background: var(--gray-1);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--size-5);
}

.testimonial {
  background: var(--gray-0);
  padding: var(--size-4);
  border-radius: var(--radius-3);
  border: 1px solid var(--gray-3);
  margin: 0;
}

.testimonial p {
  font-style: italic;
  margin-block-end: var(--size-2);
}

.testimonial cite {
  font-size: var(--font-size-1);
  color: var(--gray-6);
}

/* Quiz Section */
.quiz-section {
  text-align: center;
  padding-block: var(--size-fluid-6);
  min-height: 100vh;
}

@media (max-width: 768px) {
  .quiz-section {
    padding-block-start: var(--size-5);
  }
}

.quiz-section h2 {
  font-size: var(--font-size-fluid-2);
  margin-block-end: var(--size-5);
}

#quiz-container {
  max-width: 500px;
  margin-inline: auto;
  text-align: center;
}

.quiz-question {
  text-align: left;
  font-size: var(--font-size-3);
  font-weight: var(--font-weight-6);
  margin-block-end: var(--size-4);
}

/* Result */
.result {
  text-align: center;
  padding: var(--size-5);
  border-radius: var(--radius-3);
}

.result h3 {
  font-size: var(--font-size-5);
  margin-block-end: var(--size-2);
}

.result-green {
  background: var(--green-1);
  border: 2px solid var(--green-5);
  color: var(--green-9);
}

.result-orange {
  background: var(--orange-1);
  border: 2px solid var(--orange-5);
  color: var(--orange-9);
}

.result-red {
  background: var(--red-1);
  border: 2px solid var(--red-5);
  color: var(--red-9);
}

/* Footer */
.site-footer {
  text-align: center;
  padding-block: var(--size-4);
  color: var(--gray-5);
  font-size: var(--font-size-1);
}

/* ===== Multi-step Quiz Styles ===== */

/* Hide all questions by default */
.quiz-question {
  display: none;
  border: none;
  margin: 0;
  padding: 0;
}

/* Show active question */
.quiz-question.active {
  display: block;
}

/* Progress indicator */
.quiz-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 var(--size-6) 0;
  gap: 0;
  flex-wrap: wrap;
}

.progress-step {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gray-3);
  color: var(--gray-7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-6);
  font-size: var(--font-size-0);
  position: relative;
  z-index: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.progress-step:hover {
  transform: scale(1.1);
}

.progress-line {
  width: 20px;
  height: 2px;
  background: var(--gray-3);
}

/* Active step styling */
.progress-step.active {
  background: var(--blue-6);
  color: white;
}

/* Completed steps (filled blue) */
.progress-step.completed {
  background: var(--blue-6);
  color: white;
}

/* Hover effect for active/completed steps (darker blue) */
.progress-step.active:hover,
.progress-step.completed:hover {
  background: var(--blue-7);
}

/* Mobile responsive progress indicator */
@media (max-width: 600px) {
  .progress-step {
    width: 24px;
    height: 24px;
    font-size: var(--font-size-00);
  }

  .progress-line {
    width: 12px;
  }
}

/* Question styling */
.quiz-question legend {
  font-size: var(--font-size-3);
  font-weight: var(--font-weight-6);
  margin-bottom: var(--size-6);
  color: var(--gray-9);
  text-align: center;
  width: 100%;
}

/* Answer options */
.quiz-answers {
  display: flex;
  flex-direction: column;
  gap: var(--size-3);
  margin-bottom: var(--size-6);
}

.answer-option {
  display: block;
  padding: var(--size-4);
  background: var(--gray-1);
  border: 2px solid var(--gray-3);
  border-radius: var(--radius-2);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.answer-option:hover {
  background: var(--gray-2);
  border-color: var(--blue-6);
}

.answer-option input[type="radio"] {
  display: none;
}

.answer-option input[type="radio"]:checked + .answer-label {
  font-weight: var(--font-weight-6);
}

.answer-option:has(input:checked) {
  background: var(--blue-6);
  border-color: var(--blue-6);
  color: white;
}

.answer-label {
  display: block;
  font-size: var(--font-size-2);
}

/* Navigation container */
.quiz-navigation {
  display: flex;
  gap: var(--size-3);
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* All buttons inside navigation share width equally */
.quiz-navigation .btn-primary {
  flex: 1;
}

/* Next button */
.btn-next {
  display: block;
  width: 100%;
  padding: var(--size-3) var(--size-6);
  background: var(--blue-6);
  color: white;
  border: none;
  border-radius: var(--radius-2);
  cursor: pointer;
  font-size: var(--font-size-2);
  font-weight: var(--font-weight-6);
  text-align: center;
  transition: background 0.2s ease;
}

/* Next button inside navigation (split width with other buttons) */
.quiz-navigation .btn-next {
  flex: 1;
  width: auto;
}

.btn-next:hover:not(:disabled) {
  background: var(--blue-7);
}

.btn-next:disabled {
  background: var(--gray-4);
  color: var(--gray-6);
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-primary:disabled {
  background: var(--gray-4);
  color: var(--gray-6);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Previous button */
.btn-prev {
  display: block;
  padding: var(--size-3) var(--size-6);
  background: var(--gray-2);
  color: var(--gray-8);
  border: 2px solid var(--gray-4);
  border-radius: var(--radius-2);
  cursor: pointer;
  font-size: var(--font-size-2);
  font-weight: var(--font-weight-6);
  text-align: center;
  transition: all 0.2s ease;
  flex: 1;
}

.btn-prev:hover {
  background: var(--gray-3);
  border-color: var(--gray-5);
}

/* Contact fields */
.contact-fields {
  display: flex;
  flex-direction: column;
  gap: var(--size-3);
  margin-bottom: var(--size-6);
}

.contact-fields input {
  padding: var(--size-3);
  border: 2px solid var(--gray-3);
  border-radius: var(--radius-2);
  font-size: var(--font-size-2);
}

.contact-fields input:focus {
  outline: none;
  border-color: var(--blue-6);
}

/* Area cards on results page */
.area-card {
  text-align: center;
  padding: var(--size-4);
  border-radius: var(--radius-3);
  border: 2px solid;
}

.area-card.result-green {
  background: var(--green-1);
  border-color: var(--green-5);
  color: var(--green-9);
}

.area-card.result-orange {
  background: var(--orange-1);
  border-color: var(--orange-5);
  color: var(--orange-9);
}

.area-card.result-red {
  background: var(--red-1);
  border-color: var(--red-5);
  color: var(--red-9);
}

/* Recommendations */
.recommendations-grid {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--size-4);
}

@media (min-width: 768px) {
  .recommendations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.recommendation-card {
  padding: var(--size-4);
  background: var(--gray-1);
  border-left: 4px solid var(--gray-5);
  border-radius: var(--radius-2);
}

.recommendation-card.priority-high {
  border-left-color: var(--red-6);
}

.recommendation-card.priority-medium {
  border-left-color: var(--orange-6);
}

.recommendation-card.priority-low {
  border-left-color: var(--blue-6);
}

.recommendation-header {
  display: flex;
  align-items: center;
  gap: var(--size-2);
  margin-block-end: var(--size-2);
  justify-content: center;
}

.recommendation-area {
  font-size: var(--font-size-0);
  color: var(--gray-6);
  font-weight: var(--font-weight-6);
  text-transform: uppercase;
}

.recommendation-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.recommendation-dot.priority-high {
  background: var(--red-6);
}

.recommendation-dot.priority-medium {
  background: var(--orange-6);
}

.recommendation-dot.priority-low {
  background: var(--blue-6);
}

.recommendation-priority {
  font-size: var(--font-size-0);
  color: var(--gray-6);
}

.recommendation-card h3 {
  font-size: var(--font-size-3);
  font-weight: var(--font-weight-7);
  margin: 0 0 var(--size-2) 0;
  color: var(--gray-9);
}

.recommendation-card p {
  font-size: var(--font-size-2);
  margin: 0;
  color: var(--gray-7);
  line-height: 1.5;
}
