/**
 * Financial Health Assessment Styles
 * Follows BV brand identity with bv- prefix naming convention
 * Uses Wealth category colors (green) as primary
 *
 * @package Neve Child BV
 */

/* ==================== CSS VARIABLES ==================== */
:root {
    /* Primary Brand - Matches template-tools.php */
    --bv-primary: #0073aa;
    --bv-primary-dark: #005a87;
    --bv-accent: #00a4d6;

    /* Wealth Category Colors (for this financial tool) */
    --bv-wealth: #10b981;
    --bv-wealth-dark: #059669;

    /* Status Colors */
    --bv-success: #10b981;
    --bv-warning: #f59e0b;
    --bv-danger: #ef4444;

    /* Neutrals */
    --bv-white: #ffffff;
    --bv-gray-50: #f9fafb;
    --bv-gray-100: #f3f4f6;
    --bv-gray-200: #e5e7eb;
    --bv-gray-300: #d1d5db;
    --bv-gray-400: #9ca3af;
    --bv-gray-500: #6b7280;
    --bv-gray-600: #4b5563;
    --bv-gray-700: #374151;
    --bv-gray-800: #1f2937;
    --bv-gray-900: #111827;

    /* Shadows */
    --bv-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --bv-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --bv-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --bv-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --bv-shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Transitions */
    --bv-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Support - Neve Theme */
[data-neve-theme="dark"] {
    --bv-white: #1f2937;
    --bv-gray-50: #111827;
    --bv-gray-100: #1f2937;
    --bv-gray-200: #374151;
    --bv-gray-300: #4b5563;
    --bv-gray-400: #6b7280;
    --bv-gray-500: #9ca3af;
    --bv-gray-600: #d1d5db;
    --bv-gray-700: #e5e7eb;
    --bv-gray-800: #f3f4f6;
    --bv-gray-900: #f9fafb;
    --bv-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.4);
    --bv-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
    --bv-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
}

/* ==================== PAGE LAYOUT ==================== */
.bv-fha-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--bv-gray-800);
    background: var(--bv-white);
}

.bv-fha-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 640px) {
    .bv-fha-container {
        padding: 0 24px;
    }
}

@media (min-width: 1024px) {
    .bv-fha-container {
        padding: 0 48px;
    }
}

/* ==================== HERO SECTION ==================== */
.bv-fha-hero {
    position: relative;
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    overflow: hidden;
}

.bv-fha-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(at 20% 30%, rgba(16, 185, 129, 0.3) 0px, transparent 50%),
        radial-gradient(at 80% 20%, rgba(139, 92, 246, 0.2) 0px, transparent 50%),
        radial-gradient(at 40% 80%, rgba(0, 115, 170, 0.2) 0px, transparent 50%);
}

.bv-fha-hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: bvGridMove 30s linear infinite;
}

@keyframes bvGridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.bv-fha-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.bv-fha-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.bv-fha-hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    color: white !important;
    margin: 0 0 20px 0;
    letter-spacing: -0.02em;
}

.bv-fha-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* Progress Bar */
.bv-fha-progress-bar {
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    height: 8px;
    margin: 30px auto;
    max-width: 600px;
    overflow: hidden;
}

.bv-fha-progress-fill {
    background: linear-gradient(90deg, var(--bv-wealth), var(--bv-wealth-dark));
    height: 100%;
    border-radius: 20px;
    transition: width 0.5s ease;
    width: 0%;
}

/* Step Indicators */
.bv-fha-step-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.bv-fha-step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--bv-transition);
}

.bv-fha-step-dot.active {
    background: white;
    transform: scale(1.2);
}

.bv-fha-step-dot.completed {
    background: var(--bv-success);
}

/* ==================== MAIN CONTENT ==================== */
.bv-fha-main {
    padding: 60px 0;
}

/* ==================== CARD STYLES ==================== */
.bv-fha-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--bv-shadow-lg);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .bv-fha-card {
        padding: 32px;
    }
}

[data-neve-theme="dark"] .bv-fha-card {
    background: rgba(31, 41, 55, 0.95);
    border-color: var(--bv-gray-200);
}

.bv-fha-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bv-wealth), var(--bv-wealth-dark));
}

.bv-fha-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bv-gray-200);
}

.bv-fha-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--bv-wealth), var(--bv-wealth-dark));
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.bv-fha-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bv-gray-900);
    margin: 0;
}

@media (min-width: 768px) {
    .bv-fha-card-title {
        font-size: 1.5rem;
    }
}

.bv-fha-card-subtitle {
    font-size: 0.9rem;
    color: var(--bv-gray-600);
    margin: 4px 0 0 0;
}

/* ==================== FORM SECTIONS ==================== */
.bv-fha-form-section {
    display: none;
}

.bv-fha-form-section.active {
    display: block;
    animation: bvFadeIn 0.4s ease;
}

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

/* ==================== INPUT STYLES ==================== */
.bv-fha-input-group {
    margin-bottom: 20px;
}

.bv-fha-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--bv-gray-700);
}

.bv-fha-hint {
    font-size: 0.85rem;
    color: var(--bv-gray-500);
    margin: 0 0 8px 0;
}

.bv-fha-input-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .bv-fha-input-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.bv-fha-input-row-5 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .bv-fha-input-row-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bv-fha-input-row-5 {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Input Fields */
.bv-fha-page input[type="number"],
.bv-fha-page input[type="text"],
.bv-fha-page select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--bv-gray-200);
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--bv-transition);
    background: var(--bv-gray-50);
    color: var(--bv-gray-800);
}

.bv-fha-page input:focus,
.bv-fha-page select:focus {
    outline: none;
    border-color: var(--bv-wealth);
    background: var(--bv-white);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.bv-fha-input-with-icon {
    position: relative;
}

.bv-fha-input-with-icon input {
    padding-left: 48px;
}

.bv-fha-input-with-icon .bv-fha-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bv-gray-500);
    font-weight: 600;
}

/* Section Subtitle */
.bv-fha-section-subtitle {
    margin: 30px 0 20px;
    color: var(--bv-gray-700);
    font-size: 1.1rem;
    font-weight: 600;
}

/* ==================== BUTTONS ==================== */
.bv-fha-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--bv-transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bv-fha-btn-primary {
    background: linear-gradient(135deg, var(--bv-wealth), var(--bv-wealth-dark));
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.bv-fha-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.bv-fha-btn-secondary {
    background: var(--bv-gray-100);
    color: var(--bv-gray-700);
}

.bv-fha-btn-secondary:hover {
    background: var(--bv-gray-200);
}

.bv-fha-btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

@media (min-width: 480px) {
    .bv-fha-btn-group {
        flex-direction: row;
    }
}

.bv-fha-btn-group .bv-fha-btn {
    justify-content: center;
}

/* ==================== TOOLTIP ==================== */
.bv-fha-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    margin-left: 4px;
}

.bv-fha-tooltip .bv-fha-tooltip-text {
    visibility: hidden;
    width: 250px;
    background: var(--bv-gray-800);
    color: white;
    text-align: left;
    border-radius: 10px;
    padding: 12px 16px;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
    font-weight: normal;
    line-height: 1.5;
    box-shadow: var(--bv-shadow-lg);
}

.bv-fha-tooltip:hover .bv-fha-tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ==================== RESULTS CONTAINER ==================== */
.bv-fha-results-container {
    display: none;
}

.bv-fha-results-container.active {
    display: block;
}

/* ==================== SCORE CARD ==================== */
.bv-fha-score-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 24px;
    padding: 40px 24px;
    text-align: center;
    color: white;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.bv-fha-score-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(at 30% 40%, rgba(16, 185, 129, 0.3) 0px, transparent 50%),
        radial-gradient(at 70% 60%, rgba(139, 92, 246, 0.2) 0px, transparent 50%);
}

.bv-fha-score-card > * {
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .bv-fha-score-card {
        padding: 50px 40px;
    }
}

.bv-fha-score-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border: 4px solid rgba(255,255,255,0.3);
}

@media (min-width: 768px) {
    .bv-fha-score-circle {
        width: 180px;
        height: 180px;
    }
}

.bv-fha-score-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

@media (min-width: 768px) {
    .bv-fha-score-number {
        font-size: 4rem;
    }
}

.bv-fha-score-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 4px;
}

.bv-fha-score-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: white !important;
}

@media (min-width: 768px) {
    .bv-fha-score-title {
        font-size: 1.75rem;
    }
}

.bv-fha-score-description {
    opacity: 0.85;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==================== SECTION TITLE ==================== */
.bv-fha-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bv-gray-900);
    margin: 40px 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (min-width: 768px) {
    .bv-fha-section-title {
        font-size: 1.5rem;
    }
}

/* ==================== METRICS GRID ==================== */
.bv-fha-metrics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

@media (min-width: 640px) {
    .bv-fha-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bv-fha-metrics-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.bv-fha-metric-card {
    background: var(--bv-white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--bv-shadow-md);
    border: 1px solid var(--bv-gray-100);
    transition: var(--bv-transition);
}

.bv-fha-metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bv-shadow-xl);
}

[data-neve-theme="dark"] .bv-fha-metric-card {
    background: var(--bv-gray-100);
    border-color: var(--bv-gray-200);
}

.bv-fha-metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.bv-fha-metric-title {
    font-weight: 600;
    color: var(--bv-gray-700);
    font-size: 0.9rem;
}

.bv-fha-metric-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.bv-fha-badge-success {
    background: #d1fae5;
    color: #065f46;
}

.bv-fha-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.bv-fha-badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.bv-fha-metric-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--bv-gray-900);
    margin-bottom: 4px;
}

@media (min-width: 768px) {
    .bv-fha-metric-value {
        font-size: 2rem;
    }
}

.bv-fha-metric-benchmark {
    font-size: 0.85rem;
    color: var(--bv-gray-500);
}

.bv-fha-metric-bar {
    height: 6px;
    background: var(--bv-gray-200);
    border-radius: 3px;
    margin-top: 16px;
    overflow: hidden;
}

.bv-fha-metric-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease;
}

/* ==================== TABS ==================== */
.bv-fha-tabs {
    display: flex;
    gap: 4px;
    background: var(--bv-gray-100);
    padding: 4px;
    border-radius: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.bv-fha-tab-btn {
    flex: 1;
    min-width: 100px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--bv-transition);
    color: var(--bv-gray-500);
    font-size: 0.9rem;
}

.bv-fha-tab-btn.active {
    background: var(--bv-white);
    color: var(--bv-wealth);
    box-shadow: var(--bv-shadow);
}

.bv-fha-tab-content {
    display: none;
}

.bv-fha-tab-content.active {
    display: block;
}

/* ==================== FIRE STATS ==================== */
.bv-fha-fire-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .bv-fha-fire-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

.bv-fha-fire-stat {
    background: var(--bv-gray-50);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--bv-gray-100);
}

.bv-fha-fire-stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--bv-wealth);
}

@media (min-width: 768px) {
    .bv-fha-fire-stat-value {
        font-size: 1.5rem;
    }
}

.bv-fha-fire-stat-label {
    color: var(--bv-gray-600);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* ==================== PORTFOLIO CHART ==================== */
.bv-fha-portfolio-chart {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.bv-fha-donut-chart {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .bv-fha-donut-chart {
        width: 200px;
        height: 200px;
        margin: 0;
    }
}

.bv-fha-donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: var(--bv-white);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--bv-shadow);
}

@media (min-width: 640px) {
    .bv-fha-donut-center {
        width: 100px;
        height: 100px;
    }
}

.bv-fha-portfolio-legend {
    flex: 1;
    min-width: 200px;
}

.bv-fha-legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--bv-gray-100);
}

.bv-fha-legend-item:last-child {
    border-bottom: none;
}

.bv-fha-legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
}

.bv-fha-legend-label {
    flex: 1;
    color: var(--bv-gray-700);
}

.bv-fha-legend-value {
    font-weight: 700;
    color: var(--bv-gray-900);
}

/* ==================== STRESS TEST ==================== */
.bv-fha-stress-test {
    background: var(--bv-white);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--bv-shadow-md);
    margin-bottom: 40px;
    border: 1px solid var(--bv-gray-100);
}

@media (min-width: 768px) {
    .bv-fha-stress-test {
        padding: 32px;
    }
}

[data-neve-theme="dark"] .bv-fha-stress-test {
    background: var(--bv-gray-100);
    border-color: var(--bv-gray-200);
}

.bv-fha-stress-intro {
    margin-bottom: 20px;
    color: var(--bv-gray-600);
}

.bv-fha-scenario-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.bv-fha-scenario-btn {
    padding: 12px 18px;
    border: 2px solid var(--bv-gray-200);
    border-radius: 12px;
    background: var(--bv-white);
    cursor: pointer;
    font-weight: 600;
    transition: var(--bv-transition);
    font-size: 0.9rem;
    color: var(--bv-gray-700);
}

.bv-fha-scenario-btn:hover,
.bv-fha-scenario-btn.active {
    border-color: var(--bv-wealth);
    background: rgba(16, 185, 129, 0.05);
    color: var(--bv-wealth);
}

.bv-fha-scenario-result {
    background: var(--bv-gray-50);
    border-radius: 16px;
    padding: 24px;
}

.bv-fha-scenario-stat {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--bv-gray-200);
    flex-wrap: wrap;
    gap: 8px;
}

.bv-fha-scenario-stat:last-child {
    border-bottom: none;
}

/* ==================== RECOMMENDATIONS ==================== */
.bv-fha-recommendations {
    background: var(--bv-white);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--bv-shadow-md);
    border: 1px solid var(--bv-gray-100);
}

@media (min-width: 768px) {
    .bv-fha-recommendations {
        padding: 32px;
    }
}

[data-neve-theme="dark"] .bv-fha-recommendations {
    background: var(--bv-gray-100);
    border-color: var(--bv-gray-200);
}

.bv-fha-recommendation-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--bv-gray-100);
}

.bv-fha-recommendation-item:last-child {
    border-bottom: none;
}

.bv-fha-rec-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.bv-fha-rec-content h4 {
    font-weight: 700;
    margin: 0 0 6px 0;
    color: var(--bv-gray-900);
}

.bv-fha-rec-content p {
    font-size: 0.95rem;
    color: var(--bv-gray-600);
    margin: 0;
    line-height: 1.6;
}

.bv-fha-priority-high { background: #fee2e2; }
.bv-fha-priority-medium { background: #fef3c7; }
.bv-fha-priority-low { background: #d1fae5; }

/* ==================== ACTIONS ==================== */
.bv-fha-actions {
    text-align: center;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

@media (min-width: 480px) {
    .bv-fha-actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* ==================== ANIMATIONS ==================== */
.bv-fha-animate-in {
    animation: bvSlideUp 0.5s ease forwards;
}

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

/* ==================== PRINT STYLES ==================== */
@media print {
    .bv-fha-hero {
        background: #0f172a !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .bv-fha-btn,
    .bv-fha-scenario-buttons,
    .bv-fha-tabs,
    .bv-fha-actions,
    .bv-fha-step-indicators {
        display: none !important;
    }

    .bv-fha-card,
    .bv-fha-metric-card,
    .bv-fha-recommendations,
    .bv-fha-stress-test {
        box-shadow: none;
        border: 1px solid var(--bv-gray-300);
        break-inside: avoid;
    }

    .bv-fha-tab-content {
        display: block !important;
    }

    .bv-fha-score-card {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== REFERRALS SECTION ==================== */
.bv-fha-page .bv-referrals-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--bv-gray-200);
}
