/* ═══════════════════════════════════════════════════════════════
   MINDFUL FINANCIAL™ — Diagnostic / Profit Health Score Styles
═══════════════════════════════════════════════════════════════ */

/* ─── HERO ──────────────────────────────────────────────────── */
.diag-hero {
  min-height: 52vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 140px 0 80px;
}

.diag-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(45, 59, 45, 0.65) 0%, transparent 50%),
    radial-gradient(circle at 85% 20%, rgba(200, 184, 154, 0.07) 0%, transparent 40%);
  pointer-events: none;
}

.diag-hero-content {
  position: relative;
  max-width: 720px;
}

.diag-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 20px;
}
.diag-hero-title em {
  font-style: italic;
  color: var(--tan-light);
}

.diag-hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  max-width: 580px;
  margin-bottom: 32px;
}

.diag-meta {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.diag-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.60);
}

.diag-meta span i {
  color: var(--tan);
}

/* ─── QUIZ WRAPPER ──────────────────────────────────────────── */
.diag-container {
  max-width: 760px;
}

/* ─── PROGRESS ──────────────────────────────────────────────── */
.diag-progress-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.diag-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.diag-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--dark-green), var(--tan));
  border-radius: 100px;
  transition: width 0.4s ease;
}

.diag-progress-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ─── STEP / QUESTION ───────────────────────────────────────── */
.diag-step {
  display: none;
  border: none;
  padding: 0;
  animation: fadeSlideIn 0.35s ease;
}

.diag-step.active {
  display: block;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-8px); }
  40%       { transform: translateX(8px); }
  60%       { transform: translateX(-6px); }
  80%       { transform: translateX(6px); }
}

.diag-step.shake { animation: shake 0.45s ease; }

.diag-step-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 18px;
  padding: 0;
  float: none;
}

.diag-step-category i {
  font-size: 0.85rem;
}

.diag-question {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--black);
  margin-bottom: 32px;
}

/* ─── OPTIONS ───────────────────────────────────────────────── */
.diag-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.diag-option {
  cursor: pointer;
}

.diag-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.diag-option-inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: all 0.25s ease;
  line-height: 1.5;
  position: relative;
}

.diag-option-inner::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  margin-top: 1px;
  transition: all 0.2s ease;
}

.diag-option:hover .diag-option-inner {
  border-color: var(--tan-light);
  background: var(--cream);
}

.diag-option input:checked + .diag-option-inner {
  border-color: var(--dark-green);
  background: rgba(45, 59, 45, 0.04);
  box-shadow: 0 0 0 3px rgba(45, 59, 45, 0.08);
}

.diag-option input:checked + .diag-option-inner::before {
  background: var(--dark-green);
  border-color: var(--dark-green);
  box-shadow: inset 0 0 0 3px var(--white);
}

.diag-option-inner strong {
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--text-body);
}

/* ─── NAVIGATION BUTTONS ────────────────────────────────────── */
.diag-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   RESULTS
═══════════════════════════════════════════════════════════════ */
.diag-results {
  animation: fadeSlideIn 0.5s ease;
}

.results-header {
  text-align: center;
  margin-bottom: 56px;
}

.results-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: var(--black);
  margin-bottom: 32px;
}

/* SVG score ring */
.results-score-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.score-ring {
  width: 160px;
  height: 160px;
  transform: rotate(-90deg);
}

.score-ring-bg {
  fill: none;
  stroke: var(--off-white);
  stroke-width: 10;
}

.score-ring-fill {
  fill: none;
  stroke: var(--dark-green);
  stroke-width: 10;
  stroke-linecap: round;
}

.score-number-wrap {
  position: absolute;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.score-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--black);
  line-height: 1;
}

.score-denom {
  font-size: 1rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.score-band {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.score-summary {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 620px;
  margin: 0 auto;
}

/* ─── DIMENSION BARS ────────────────────────────────────────── */
.dimension-bars {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  margin-bottom: 36px;
}

.dim-heading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 28px;
}

.dim-bar-row {
  margin-bottom: 22px;
}

.dim-bar-row:last-child { margin-bottom: 0; }

.dim-bar-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 8px;
}

.dim-bar-label i {
  color: var(--tan);
  width: 16px;
  text-align: center;
}

.dim-bar-label span {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.dim-bar-track {
  height: 8px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.dim-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 100px;
}

/* ─── INSIGHT CARDS ─────────────────────────────────────────── */
.results-insights {
  margin-bottom: 48px;
}

.insight-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 16px;
  transition: box-shadow var(--transition);
}
.insight-card:hover { box-shadow: var(--shadow-sm); }

.insight-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-left: 14px;
  border-left: 3px solid var(--tan);
}

.insight-card-header i { font-size: 1rem; }

.insight-card-header strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--black);
}

.insight-score {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  padding: 3px 10px;
  border-radius: 100px;
}

.insight-card > p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}

/* ─── RESULTS CTA ───────────────────────────────────────────── */
.results-cta {
  background: var(--dark-green);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  text-align: center;
  margin-bottom: 32px;
}

.results-cta h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 14px;
}

.results-cta p {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 32px;
}

.results-cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.results-cta .btn-ghost {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.results-cta .btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

.retake-btn {
  display: block;
  margin: 0 auto;
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .dimension-bars { padding: 28px 24px; }
  .results-cta    { padding: 36px 24px; }
  .insight-card   { padding: 22px 20px; }
  .diag-meta      { gap: 16px; }
}

@media (max-width: 480px) {
  .diag-option-inner { padding: 14px 16px; }
  .diag-nav { flex-direction: column-reverse; }
  .diag-nav .btn { width: 100%; justify-content: center; }
}
