/* KKC Club — Financial Planning Hub. Scoped to homepage hub section, calculator.html
   and financial-health-score.html. Reuses style.css design tokens (--gold, --accent,
   --surface, --border, --radius-*, .btn/.form-group/.commando-card etc.) — only new
   component classes live here, all namespaced .fh-*. */

/* ---------- Homepage Hub Section ---------- */
.fh-trust-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px;
  margin: 0 auto 48px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted);
}
.fh-trust-bar span::before { content: "✓ "; color: var(--accent); font-weight: 800; }

.fh-calc-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-bottom: 56px; }
.fh-calc-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 28px 24px; text-align: left; box-shadow: var(--shadow-md); transition: all var(--transition);
  display: flex; flex-direction: column;
}
.fh-calc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.fh-calc-card .icon {
  width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.fh-calc-card .icon svg { width: 26px; height: 26px; }
.fh-calc-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.fh-calc-card p { font-size: 0.9rem; margin-bottom: 16px; flex: 1; }
.fh-calc-card .fh-time-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; color: var(--text-soft);
  margin-bottom: 16px;
}
.fh-calc-card .btn { align-self: flex-start; }

.fh-why-grid { margin-bottom: 56px; }

.fh-steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 56px; }
.fh-step { text-align: center; padding: 20px; }
.fh-step .num {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--gradient-gold); color: #1a1305; font-weight: 800; font-family: var(--font-head);
  margin-bottom: 14px;
}
.fh-step h3 { font-size: 1rem; }

.fh-score-teaser {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; margin-bottom: 32px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  justify-content: center; text-align: center;
}
.fh-score-teaser-empty h3 { margin-bottom: 8px; }
.fh-score-teaser-empty p { margin-bottom: 18px; max-width: 480px; }

.fh-report-teaser { text-align: center; color: var(--text-soft); font-size: 0.92rem; margin-bottom: 32px; }

/* ---------- Stepper / Progress ---------- */
.fh-progress-bar { height: 6px; background: var(--bg-alt); border-radius: var(--radius-full); overflow: hidden; margin-bottom: 12px; }
.fh-progress-fill { height: 100%; background: var(--gradient-gold); border-radius: var(--radius-full); transition: width 0.3s ease; }
.fh-progress-label { font-size: 0.85rem; font-weight: 600; color: var(--text-soft); text-align: center; margin-bottom: 32px; }

/* ---------- Calculator shell ---------- */
.fh-calc-shell { max-width: 720px; margin: 0 auto; }
.fh-intro { text-align: center; }
.fh-intro h1 { margin: 10px 0 14px; }
.fh-intro p { max-width: 560px; margin: 0 auto 10px; font-size: 1.05rem; }
.fh-intro-privacy { font-size: 0.85rem; color: var(--text-soft); margin-bottom: 28px; }

.fh-step-form h2 { margin-bottom: 24px; text-align: center; }
.fh-field-grid { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: 20px; }
.fh-field { min-width: 0; }
.fh-field-hint { display: block; font-size: 0.78rem; color: var(--text-soft); margin-top: 6px; }
.fh-step-error { color: #DC2626; font-size: 0.85rem; text-align: center; margin: 4px 0 20px; }
.fh-resume-prompt .eyebrow { display: block; margin-bottom: 6px; }

/* Field label icons */
.fh-field label { display: flex; align-items: center; gap: 8px; }
.fh-field-icon {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.fh-field-icon svg { width: 15px; height: 15px; }
.fh-field-label-text { flex: 1; min-width: 0; }

/* Step heading icon */
.fh-step-form h2 { display: flex; align-items: center; justify-content: center; gap: 12px; }
.fh-step-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--gradient-gold); color: #1a1305;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-glow);
}
.fh-step-icon svg { width: 20px; height: 20px; }

.fh-step-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.fh-step-actions .btn { flex: 0 0 auto; }

/* Number field with ₹/% unit affixes */
.fh-number-wrap { position: relative; display: flex; align-items: center; }
.fh-number-wrap input {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: var(--bg-alt); transition: border-color var(--transition);
}
.fh-number-wrap input:focus { outline: none; border-color: var(--accent); }
.fh-unit-prefix { position: absolute; left: 14px; color: var(--text-soft); font-weight: 600; pointer-events: none; }
.fh-number-wrap:has(.fh-unit-prefix) input { padding-left: 30px; }
.fh-unit-suffix { position: absolute; right: 14px; color: var(--text-soft); font-weight: 600; pointer-events: none; font-size: 0.85rem; }

/* PIN lookup status line */
.fh-pin-status { font-size: 0.8rem; color: var(--text-soft); margin-top: 6px; min-height: 1.2em; }
.fh-pin-status.fh-pin-found { color: #16A34A; font-weight: 600; }

/* Radio-card inputs */
.fh-radio-card-group { display: flex; flex-wrap: wrap; gap: 10px; }
.fh-radio-card {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px;
  border: 1.5px solid var(--border); border-radius: var(--radius-full); cursor: pointer; font-size: 0.9rem;
  font-weight: 600; transition: all var(--transition); background: var(--bg-alt);
}
.fh-radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.fh-radio-card:hover { border-color: var(--accent); }
.fh-radio-card.selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* Checkbox group (goals etc.) */
.fh-checkbox-group { display: flex; flex-wrap: wrap; gap: 10px; }
.fh-checkbox-card {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px;
  border: 1.5px solid var(--border); border-radius: var(--radius-md); cursor: pointer; font-size: 0.88rem;
  font-weight: 600; transition: all var(--transition); background: var(--bg-alt);
}
.fh-checkbox-card input { position: absolute; opacity: 0; pointer-events: none; }
.fh-checkbox-card:hover { border-color: var(--accent); }
.fh-checkbox-card.selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* Sliders */
.fh-slider-group { display: flex; align-items: center; gap: 14px; }
.fh-slider {
  flex: 1; -webkit-appearance: none; appearance: none; height: 6px; border-radius: var(--radius-full);
  background: var(--bg-alt); outline: none;
}
.fh-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--gradient-gold);
  cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.fh-slider::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--gold); border: none; cursor: pointer;
}
.fh-slider-value { flex: 0 0 auto; min-width: 64px; text-align: right; font-weight: 700; color: var(--accent); font-size: 0.92rem; }

/* Review step */
.fh-review h2 { text-align: center; margin-bottom: 24px; }
.fh-review-list { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.fh-review-row {
  display: flex; justify-content: space-between; gap: 16px; padding: 13px 18px; font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.fh-review-row:last-child { border-bottom: none; }
.fh-review-row span { color: var(--text-soft); }
.fh-review-row strong { text-align: right; }
.fh-review-row-repeater strong { text-align: left; font-weight: 500; line-height: 1.6; }

/* Children/goals repeater (Child Planning calculator) */
.fh-field-repeater { grid-column: 1 / -1; }
.fh-repeater { display: grid; gap: 16px; margin-bottom: 14px; }
.fh-repeater-item {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px 18px;
}
.fh-repeater-item-nested { background: var(--surface); }
.fh-repeater-item-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px;
}
.fh-repeater-item-head strong { color: var(--accent); font-size: 0.92rem; }
.fh-repeater-nested { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--border); }
.fh-repeater-nested h4 { font-size: 0.85rem; color: var(--text-soft); margin-bottom: 12px; }
.fh-repeater-btn { margin-top: 4px; }

/* Advanced Assumptions (collapsible details/summary group, e.g. HLV) */
.fh-field-advanced { grid-column: 1 / -1; }
.fh-advanced-group {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 4px 18px;
}
.fh-advanced-group summary {
  cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 0.92rem; color: var(--accent);
  list-style: none;
}
.fh-advanced-group summary::-webkit-details-marker { display: none; }
.fh-advanced-group summary::before { content: "▸ "; }
.fh-advanced-group[open] summary::before { content: "▾ "; }
.fh-advanced-group .fh-field-grid { padding: 4px 0 16px; }

/* ---------- Results ---------- */
.fh-results { max-width: 760px; margin: 0 auto; }

.fh-results-hero {
  text-align: center; padding: 36px 24px; border-radius: var(--radius-lg); border: 1px solid var(--border);
  margin-bottom: 28px; position: relative; overflow: hidden;
}
.fh-status-bg-excellent { background: radial-gradient(circle at 50% 0%, rgba(0, 176, 80, 0.14), var(--surface) 70%); }
.fh-status-bg-good { background: radial-gradient(circle at 50% 0%, var(--accent-soft), var(--surface) 70%); }
.fh-status-bg-needs-improvement { background: radial-gradient(circle at 50% 0%, rgba(245, 166, 35, 0.14), var(--surface) 70%); }
.fh-status-bg-critical { background: radial-gradient(circle at 50% 0%, rgba(217, 83, 79, 0.14), var(--surface) 70%); }

.fh-status-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: var(--radius-full);
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em; margin-bottom: 16px;
}
.fh-status-excellent { background: rgba(0, 176, 80, 0.15); color: #00B050; }
.fh-status-good { background: var(--accent-soft); color: var(--accent); }
.fh-status-needs-improvement { background: rgba(245, 166, 35, 0.15); color: #F5A623; }
.fh-status-critical { background: rgba(217, 83, 79, 0.15); color: #D9534F; }

.fh-results-hero h2 { font-size: 1.1rem; color: var(--text-soft); font-weight: 600; margin-bottom: 4px; }
.fh-primary-value { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 6vw, 3.2rem); background: var(--gradient-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }

.fh-stat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 28px; }
.fh-stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px;
  display: flex; flex-direction: column; gap: 6px; transition: all var(--transition);
}
.fh-stat-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.fh-stat-icon {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 2px;
}
.fh-stat-icon svg { width: 17px; height: 17px; }
.fh-stat-label { font-size: 0.8rem; color: var(--text-soft); font-weight: 600; }
.fh-stat-value { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; }

.fh-compare { margin-bottom: 28px; }
.fh-compare-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-soft); margin-bottom: 10px; }
.fh-compare-bar { display: flex; height: 18px; border-radius: var(--radius-full); overflow: hidden; background: var(--bg-alt); }
.fh-compare-seg { transition: flex-basis 0.4s ease; }
.fh-compare-seg-0 { background: var(--gradient-gold); }
.fh-compare-seg-1 { background: rgba(217, 83, 79, 0.7); }
.fh-compare-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; font-size: 0.82rem; color: var(--text-soft); }
.fh-legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.fh-legend-dot-0 { background: var(--gold); }
.fh-legend-dot-1 { background: #D9534F; }

.fh-insight-card, .fh-action-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 22px 24px; margin-bottom: 20px;
}
.fh-insight-card h3, .fh-action-card h3 {
  display: flex; align-items: center; gap: 8px; font-size: 0.95rem; margin-bottom: 14px; color: var(--accent);
}
.fh-insight-card h3 svg, .fh-action-card h3 svg { width: 18px; height: 18px; flex-shrink: 0; }
.fh-insight-card ul, .fh-action-list { display: grid; gap: 12px; font-size: 0.92rem; }
.fh-insight-card li, .fh-action-item { display: flex; align-items: flex-start; gap: 12px; }
.fh-li-icon {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.fh-li-icon svg { width: 14px; height: 14px; }
.fh-li-icon-insight { background: var(--accent-soft); color: var(--accent); }
.fh-li-icon-action { background: rgba(0, 176, 80, 0.15); color: #00B050; }

/* Per-goal breakdown (multi-child/multi-goal calculator results) */
.fh-breakdown-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 22px 24px; margin-bottom: 20px;
}
.fh-breakdown-card h3 { font-size: 0.95rem; margin-bottom: 14px; color: var(--accent); }
.fh-breakdown-list { display: grid; gap: 10px; }
.fh-breakdown-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.88rem;
}
.fh-breakdown-row strong { display: block; }
.fh-breakdown-row > div:first-child span { color: var(--text-soft); font-size: 0.8rem; }
.fh-breakdown-figures { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }

/* Personalized Action Plan card (calculator results) + Improvement Timeline (results + dashboard) */
.fh-roadmap-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 22px 24px; margin-bottom: 20px;
}
.fh-roadmap-card h3 { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; margin-bottom: 14px; color: var(--accent); }
.fh-roadmap-card h3 svg { width: 18px; height: 18px; flex-shrink: 0; }
.fh-roadmap-card h4 { font-size: 0.88rem; color: var(--accent); margin: 18px 0 12px; }
.fh-roadmap-timeline { display: grid; gap: 10px; }
.fh-roadmap-bucket {
  display: flex; flex-direction: column; gap: 8px; padding: 12px 14px;
  background: var(--bg-alt); border-radius: var(--radius-md);
}
.fh-roadmap-bucket > strong { font-size: 0.82rem; color: var(--accent); }
.fh-roadmap-item { display: flex; align-items: flex-start; gap: 10px; }
.fh-roadmap-item strong { font-size: 0.86rem; display: block; }
.fh-roadmap-item span { font-size: 0.84rem; color: var(--text-soft); }
.fh-roadmap-priority {
  flex-shrink: 0; font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  padding: 3px 8px; border-radius: var(--radius-full); margin-top: 2px;
}
.fh-priority-critical { background: rgba(220, 38, 38, 0.15); color: #DC2626; }
.fh-priority-high { background: rgba(217, 119, 6, 0.15); color: #D97706; }
.fh-priority-medium { background: var(--accent-soft); color: var(--accent); }
.fh-priority-low { background: rgba(0, 176, 80, 0.15); color: #00B050; }
.fh-rec-domain { color: var(--accent); }

/* Financial Health radar chart (dashboard page) */
.fh-radar-wrap { text-align: center; margin: 8px 0 28px; }
.fh-radar-wrap h3 { margin-bottom: 14px; }
.fh-radar-chart { width: 100%; max-width: 340px; height: auto; }
.fh-radar-grid { fill: none; stroke: var(--border); stroke-width: 1; }
.fh-radar-axis { stroke: var(--border); stroke-width: 1; }
.fh-radar-data { fill: var(--accent-soft); stroke: var(--gold); stroke-width: 2; }
.fh-radar-label { font-size: 8px; fill: var(--text-soft); font-family: var(--font-body); }

/* Score gauge (reused inline on results + full dashboard) */
.fh-score-teaser-inline {
  display: flex; align-items: center; gap: 20px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 20px 24px; margin-bottom: 28px; flex-wrap: wrap;
}
.fh-gauge { position: relative; width: 90px; height: 90px; flex-shrink: 0; }
.fh-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.fh-gauge-track { fill: none; stroke: var(--bg-alt); stroke-width: 10; }
.fh-gauge-fill { fill: none; stroke: var(--gold); stroke-width: 10; stroke-linecap: round; transition: stroke-dasharray 0.6s ease; }
.fh-gauge-center {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.fh-gauge-value { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; }
.fh-gauge-max { font-size: 0.7rem; color: var(--text-soft); }
.fh-gauge-info { display: flex; flex-direction: column; gap: 4px; }
.fh-gauge-info strong { font-size: 1rem; }
.fh-gauge-grade { font-size: 0.85rem; color: var(--text-soft); }
.fh-view-full-score { font-size: 0.85rem; font-weight: 700; color: var(--accent); margin-top: 4px; }

/* Advisor match cards (extend .commando-card) */
.fh-advisor-section { margin-bottom: 28px; }
.fh-advisor-section h3 { margin-bottom: 16px; }
.fh-advisor-loading { color: var(--text-soft); font-size: 0.9rem; }
.fh-advisor-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.fh-advisor-card { position: relative; }
.fh-advisor-top { border-color: var(--accent); box-shadow: var(--shadow-glow); }
.fh-best-match-badge {
  position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--gradient-gold); color: #1a1305;
  font-size: 0.7rem; font-weight: 800; padding: 4px 12px; border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}
.fh-why-recommended { font-size: 0.78rem; color: var(--text-soft); margin-bottom: 12px; display: grid; gap: 4px; }

.fh-report-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* Smart CTAs, consent, badges, homepage journey nudges, related articles (Phase 4) */
.fh-smart-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.fh-consent-row {
  display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--text-soft);
  margin: 16px 0; cursor: pointer;
}
.fh-consent-row input { accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.fh-consent-row.has-error { color: #DC2626; }
.fh-badges-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 4px 0 20px; }
.fh-badge {
  background: var(--accent-soft); color: var(--accent); font-size: 0.78rem; font-weight: 700;
  padding: 6px 14px; border-radius: var(--radius-full);
}
.fh-continue-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius-md);
  padding: 14px 20px; margin-bottom: 20px; font-size: 0.9rem; font-weight: 600;
}
#fhRecentReports h3 { font-size: 1rem; margin-bottom: 12px; }
.fh-related-article {
  display: block; font-size: 0.85rem; color: var(--accent); font-weight: 600; margin-top: 8px;
  text-decoration: underline;
}
#fhRelatedArticles h4 { font-size: 0.88rem; color: var(--accent); margin: 18px 0 4px; }

/* ---------- Financial Health Score dashboard page ---------- */
.fh-score-dashboard { max-width: 820px; margin: 0 auto; text-align: center; }
.fh-score-dashboard .fh-gauge { width: 160px; height: 160px; margin: 0 auto 20px; }
.fh-score-dashboard .fh-gauge-value { font-size: 2.4rem; }
.fh-score-dashboard .fh-gauge-max { font-size: 0.9rem; }
.fh-category-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 32px 0; text-align: left; }
.fh-category-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; }
.fh-category-card .fh-cat-label { font-size: 0.85rem; font-weight: 700; margin-bottom: 8px; display: block; }
.fh-category-bar { height: 8px; background: var(--bg-alt); border-radius: var(--radius-full); overflow: hidden; margin-bottom: 6px; }
.fh-category-bar-fill { height: 100%; background: var(--gradient-gold); border-radius: var(--radius-full); }
.fh-category-card .fh-cat-value { font-size: 0.8rem; color: var(--text-soft); }
.fh-category-card.fh-cat-empty { opacity: 0.5; }
.fh-category-card.fh-cat-empty a { color: var(--accent); font-weight: 700; font-size: 0.82rem; }

/* Thank-You panel (shown after WhatsApp submit, reuses .form-success from style.css) */
#fhLeadSuccess.form-success { padding: 24px; }
#fhLeadSuccess h3 { margin-bottom: 8px; }
#fhLeadSuccess p { font-weight: 400; margin-bottom: 14px; }
.fh-thankyou-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Print-only elements: hidden on screen, shown only via @media print below */
.print-only { display: none; }
.fh-print-header { align-items: center; gap: 14px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid #D4AF37; }
.fh-print-header img { height: 40px; }
.fh-print-header strong { display: block; font-size: 1.1rem; }
.fh-print-header span { font-size: 0.8rem; color: #555; }
.fh-print-meta { margin-left: auto; font-size: 0.78rem; text-align: right; color: #555; }
.fh-print-footer { margin-top: 28px; padding-top: 14px; border-top: 1px solid #ccc; font-size: 0.72rem; color: #555; text-align: center; }

/* ---------- Print report ---------- */
@media print {
  @page { size: A4; margin: 18mm; }
  .site-header, .site-footer, .mobile-menu, .wa-float, .back-top, .no-print,
  .fh-report-actions, .fh-advisor-section .actions, .fh-smart-cta-row, #fhRelatedArticles { display: none !important; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .fh-results { max-width: 100%; }
  .fh-stat-card, .fh-insight-card, .fh-action-card, .fh-roadmap-card, .commando-card {
    border: 1px solid #ccc; box-shadow: none; page-break-inside: avoid;
  }
  h2, h3 { page-break-after: avoid; }
  .print-only { display: flex; }
  .fh-print-footer.print-only { display: block; }
  a[href]::after { content: ""; }
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .fh-field-grid { grid-template-columns: 1fr; }
  .fh-step-actions { flex-direction: column-reverse; }
  .fh-step-actions .btn { width: 100%; }
  .fh-score-teaser { flex-direction: column; text-align: center; }
  .fh-report-actions { flex-direction: column; }
  .fh-report-actions .btn { width: 100%; }
}

/* ---------- FIX_REQUEST_008: UX Enhancement additions ---------- */

/* International phone field */
.fh-tel-intl-wrap { display: flex; gap: 0; border-radius: var(--radius-sm); overflow: hidden; border: 1.5px solid var(--border); transition: border-color var(--transition); }
.fh-tel-intl-wrap:focus-within { border-color: var(--accent); }
.fh-country-code {
  flex: 0 0 auto; min-width: 90px; padding: 13px 10px; background: var(--bg-alt); color: var(--text);
  border: none; border-right: 1.5px solid var(--border); cursor: pointer; font-size: 0.88rem; font-weight: 600;
  outline: none; appearance: none; -webkit-appearance: none;
}
.fh-tel-intl-wrap input[type="tel"] {
  flex: 1; min-width: 0; padding: 13px 16px; background: var(--bg-alt); border: none; outline: none;
  color: var(--text); font-size: 1rem;
}
/* Override the generic form-group input border since we wrap it */
.fh-tel-intl-wrap input[type="tel"]:focus { outline: none; }

/* Inline field feedback (success / error) */
.fh-field-feedback {
  display: block; font-size: 0.8rem; margin-top: 6px; min-height: 1.2em; font-weight: 600;
  transition: opacity 0.2s;
}
.fh-field-success { color: #16A34A; }
.fh-field-success::before { content: ""; }
.fh-field-error { color: #DC2626; }
.fh-field-error::before { content: ""; }

/* Personalized PIN greeting */
.fh-pin-greeting {
  display: flex; align-items: flex-start; gap: 14px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.03));
  border: 1px solid var(--accent); border-radius: var(--radius-md);
  padding: 16px 18px; margin-top: 10px; font-size: 0.9rem; line-height: 1.6;
}
.fh-pin-greeting-emoji { font-size: 1.6rem; flex-shrink: 0; margin-top: 2px; }
.fh-pin-greeting > div { display: flex; flex-direction: column; gap: 4px; }
.fh-pin-greeting strong { font-size: 1.05rem; color: var(--accent); }
.fh-pin-greeting span { color: var(--text-soft); }
.fh-pin-tagline { font-style: italic; color: var(--text-muted); font-size: 0.82rem; }

/* Rich radio-card (risk profile) — extends existing .fh-radio-card */
.fh-rcr-group { display: grid !important; gap: 10px; grid-template-columns: 1fr; }
.fh-radio-card.fh-rcr {
  align-items: flex-start; padding: 14px 18px; border-radius: var(--radius-md);
  display: flex; gap: 14px;
}
.fh-rcr-icon { font-size: 1.5rem; flex-shrink: 0; line-height: 1; }
.fh-rcr-body { display: flex; flex-direction: column; gap: 3px; }
.fh-rcr-body strong { font-size: 0.95rem; }
.fh-rcr-desc { font-size: 0.82rem; color: var(--text-soft); font-weight: 400; line-height: 1.4; }
.fh-radio-card.fh-rcr.selected .fh-rcr-desc { color: var(--accent); opacity: 0.85; }

/* Pair advisor card joint badge */
.fh-pair-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(212, 175, 55, 0.12); border: 1px solid var(--accent);
  color: var(--accent); font-size: 0.72rem; font-weight: 700; padding: 3px 10px;
  border-radius: var(--radius-full); margin-bottom: 8px;
}

@media (min-width: 480px) {
  .fh-rcr-group { grid-template-columns: 1fr; }
}
