/* ========================================
   Self-Assessment Quiz — Circle of Life
   ======================================== */

.sa-quiz-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 32px 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1a3a4a;
}

/* ---- Progress Bar ---- */
.sa-progress {
  margin-bottom: 32px;
}
.sa-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.sa-progress-label {
  font-size: 12px;
  color: #7a8a90;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.sa-progress-count {
  font-size: 13px;
  color: #1a3a4a;
  font-weight: 600;
}
.sa-progress-track {
  height: 6px;
  background: #e8eeef;
  border-radius: 3px;
  overflow: hidden;
}
.sa-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1a8a6e, #22b88a);
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* ---- Category Chip ---- */
.sa-category-chip {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #1a8a6e;
  background: rgba(26, 138, 110, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  font-weight: 500;
}

/* ---- Question ---- */
.sa-question-text {
  font-size: 22px;
  font-weight: 500;
  color: #1a3a4a;
  line-height: 1.3;
  margin-bottom: 8px;
}
.sa-question-sub {
  font-size: 14px;
  color: #7a8a90;
  margin-bottom: 32px;
  line-height: 1.5;
}

/* ---- Score Grid ---- */
.sa-score-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.sa-score-btn {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  border: 2px solid #e0e7e8;
  background: #fff;
  font-size: 18px;
  font-weight: 600;
  color: #1a3a4a;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sa-score-btn:hover {
  border-color: #1a8a6e;
  background: rgba(26, 138, 110, 0.04);
}
.sa-score-btn.sa-selected {
  border-color: #1a8a6e;
  background: #1a8a6e;
  color: #fff;
  box-shadow: 0 2px 12px rgba(26, 138, 110, 0.25);
}
.sa-score-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
}
.sa-score-labels span {
  font-size: 11px;
  color: #9aa8ad;
}

/* ---- Navigation Buttons ---- */
.sa-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.sa-btn-back {
  background: none;
  border: 1.5px solid #d0d8da;
  color: #5a6a70;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.sa-btn-back:hover {
  border-color: #1a3a4a;
  color: #1a3a4a;
}
.sa-btn-next {
  background: #1a8a6e;
  border: none;
  color: #fff;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  flex: 1;
  max-width: 200px;
  transition: all 0.15s;
}
.sa-btn-next:hover {
  background: #15755d;
}
.sa-btn-next:disabled {
  background: #c8d8d4;
  cursor: not-allowed;
}

/* ---- Contact Form ---- */
.sa-input-group {
  margin-bottom: 16px;
}
.sa-input-group label {
  display: block;
  font-size: 13px;
  color: #5a6a70;
  margin-bottom: 6px;
  font-weight: 500;
}
.sa-input-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d8e0e2;
  border-radius: 8px;
  font-size: 15px;
  color: #1a3a4a;
  outline: none;
  transition: border 0.15s;
  font-family: inherit;
  box-sizing: border-box;
}
.sa-input-group input:focus {
  border-color: #1a8a6e;
}
.sa-optional {
  color: #aab5b8;
  font-weight: 400;
}
.sa-error {
  color: #c0392b;
  font-size: 13px;
  margin-bottom: 12px;
}
.sa-privacy {
  font-size: 12px;
  color: #9aa8ad;
  margin-bottom: 24px;
}

/* ---- Results ---- */
.sa-results-cards {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.sa-result-card {
  flex: 1;
  background: #f6faf8;
  border-radius: 12px;
  padding: 20px;
}
.sa-result-card h3 {
  font-size: 14px;
  color: #1a8a6e;
  margin: 0 0 4px;
  font-weight: 500;
}
.sa-result-card p {
  font-size: 18px;
  color: #1a3a4a;
  font-weight: 600;
  margin: 0;
}
.sa-result-card.sa-weak {
  background: #fef7f0;
}
.sa-result-card.sa-weak h3 {
  color: #d4772c;
}

/* Score Bars */
.sa-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.sa-bar-label {
  font-size: 13px;
  color: #5a6a70;
  width: 130px;
  flex-shrink: 0;
  text-align: right;
}
.sa-bar-track {
  flex: 1;
  height: 8px;
  background: #e8eeef;
  border-radius: 4px;
  overflow: hidden;
}
.sa-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}
.sa-bar-fill.sa-low {
  background: #e8913a;
}
.sa-bar-fill.sa-mid {
  background: #1a8a6e;
}
.sa-bar-fill.sa-high {
  background: #1a3a4a;
}
.sa-bar-score {
  font-size: 13px;
  font-weight: 600;
  color: #1a3a4a;
  width: 24px;
}

/* CTA Card */
.sa-cta-card {
  background: #1a3a4a;
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  margin-top: 24px;
}
.sa-cta-card h3 {
  color: #fff;
  font-size: 17px;
  margin: 0 0 6px;
  font-weight: 500;
}
.sa-cta-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  margin: 0 0 16px;
}
.sa-cta-btn {
  display: inline-block;
  background: #1a8a6e;
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.sa-cta-btn:hover {
  background: #15755d;
  color: #fff;
  text-decoration: none;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
  .sa-quiz-wrap {
    padding: 20px 16px;
  }
  .sa-question-text {
    font-size: 19px;
  }
  .sa-score-grid {
    gap: 8px;
  }
  .sa-score-btn {
    font-size: 16px;
    border-radius: 10px;
  }
  .sa-bar-label {
    width: 100px;
    font-size: 12px;
  }
  .sa-results-cards {
    flex-direction: column;
  }
}
