/* ==========================================================================
   VivreFR Core Components Stylesheet - Version 1.0.0
   Shared, Reusable Component UI Library
   ========================================================================== */

/* 1. Base Layout Section Cards */
.vf-card {
    background: var(--vf-surface);
    border: 1px solid var(--vf-line);
    border-radius: var(--vf-r-lg);
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--vf-shadow);
    transition: box-shadow 0.3s ease;
}

.vf-card:hover {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

.vf-card h2 {
    font-family: var(--vf-display);
    color: var(--vf-navy-deep);
    margin: 0 0 24px;
    font-size: 28px;
    font-weight: 600;
}

/* 2. Interactive Input Fields */
.vf-field {
    margin-bottom: 24px;
}

.vf-field:last-child {
    margin-bottom: 0;
}

.vf-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--vf-ink);
    font-size: 15px;
}

.vf-field select,
.vf-input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--vf-line-strong);
    border-radius: var(--vf-r-sm);
    background: var(--vf-surface);
    font-family: var(--vf-body);
    font-size: 15px;
    color: var(--vf-ink);
    transition: all 0.25s ease;
}

.vf-field select:focus,
.vf-input:focus {
    outline: none;
    border-color: var(--vf-navy);
    box-shadow: 0 0 0 3px rgba(28, 50, 129, 0.15);
}

.vf-field label input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--vf-navy);
}

/* 3. Radio Option Groups */
.vf-options {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.vf-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid var(--vf-line-strong);
    border-radius: var(--vf-r-sm);
    cursor: pointer;
    transition: all 0.25s ease;
    margin: 0;
    font-weight: 500;
    color: var(--vf-muted);
    background: var(--vf-surface);
}

.vf-options label:hover,
.vf-options label:has(input:checked) {
    border-color: var(--vf-navy);
    color: var(--vf-navy);
    background: rgba(28, 50, 129, 0.03);
}

.vf-options input[type="radio"] {
    accent-color: var(--vf-navy);
    margin: 0;
}

/* 4. Premium Call-to-Action Buttons */
.vf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 28px;
    font-family: var(--vf-body);
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--vf-r-sm);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.vf-btn--primary {
    background: var(--vf-navy);
    color: #ffffff !important;
}

.vf-btn--primary:hover {
    background: var(--vf-navy-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(28, 50, 129, 0.2);
}

.vf-btn--primary:active {
    transform: translateY(0);
}

/* 5. City Cost & Information Banners */
.vf-info-banner {
    background: var(--vf-surface);
    border: 1px solid var(--vf-line);
    border-radius: var(--vf-r-md);
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: var(--vf-shadow);
}

.vf-info-banner-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.vf-info-banner-title strong {
    font-family: var(--vf-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--vf-navy-deep);
}

.vf-info-banner p {
    font-size: 14px;
    color: var(--vf-muted);
    margin: 0;
}

/* Cost Level Badges */
.vf-info-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
}

.vf-badge-red { background: rgba(200, 50, 26, 0.08); color: var(--vf-red-ui); }
.vf-badge-orange { background: rgba(234, 88, 12, 0.08); color: var(--vf-orange-ui); }
.vf-badge-blue { background: rgba(28, 50, 129, 0.08); color: var(--vf-navy); }
.vf-badge-green { background: rgba(22, 163, 74, 0.08); color: var(--vf-green-ui); }

/* 6. Scorecard Result Summary Card */
.vf-scorecard-calc {
    background: linear-gradient(145deg, var(--vf-hero-panel-start) 0%, var(--vf-hero-panel-end) 100%);
    color: #ffffff;
    border-radius: var(--vf-r-lg);
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: var(--vf-shadow-hover);
}

.vf-scorecard-value {
    font-family: var(--vf-display);
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
}

.vf-scorecard-label {
    font-family: var(--vf-body);
    margin-top: 12px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
    opacity: 0.85;
}

.vf-scorecard-range {
    font-family: var(--vf-body);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 8px;
    font-weight: 500;
}

/* 7. Detailed Cost Breakdowns Tables */
.vf-cost-breakdown-calc {
    background: var(--vf-surface);
    border: 1px solid var(--vf-line);
    border-radius: var(--vf-r-lg);
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: var(--vf-shadow);
}

.vf-cost-row-calc {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--vf-line);
    transition: background-color 0.2s ease;
}

.vf-cost-row-calc:hover {
    background-color: rgba(28, 50, 129, 0.01);
}

.vf-cost-row-calc:last-child {
    border-bottom: none;
}

.vf-cost-row-calc span {
    font-weight: 500;
    color: var(--vf-muted);
}

.vf-row-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.vf-row-right strong {
    color: var(--vf-navy-deep);
    font-size: 18px;
    font-weight: 700;
}

.vf-pct {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--vf-navy) !important;
    background: rgba(28, 50, 129, 0.06);
    padding: 4px 10px;
    border-radius: 6px;
    min-width: 50px;
    text-align: center;
}

.vf-row-flex-start {
    align-items: flex-start !important;
    padding-top: 14px;
    padding-bottom: 14px;
}

.vf-label-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vf-row-subtext {
    font-size: 12px !important;
    color: var(--vf-muted) !important;
    font-weight: 400 !important;
    margin-top: 2px;
}

/* 8. Notice Cards & Recommendations */
.vf-rec-card {
    background: rgba(28, 50, 129, 0.03);
    border-radius: 0 var(--vf-r-md) var(--vf-r-md) 0;
    padding: 24px;
    border: 1px solid var(--vf-line);
    border-left: 4px solid var(--vf-navy);
    margin-bottom: 24px;
}

.vf-rec-card h3 {
    font-family: var(--vf-body);
    font-size: 18px;
    font-weight: 700;
    color: var(--vf-navy-deep);
    margin: 0 0 12px;
}

.vf-rec-card p {
    margin: 0;
    line-height: 1.65;
    color: var(--vf-muted);
    font-size: 15px;
}

/* Dynamic Colors (e.g. green for savings, red for debt) */
.vf-text-green {
    color: var(--vf-green-ui) !important; 
}

.vf-text-red {
    color: var(--vf-red-ui) !important;
}

/* 9. Footers & Authority Elements */
.vf-trust-footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--vf-line);
}

.vf-trust-disclaimer {
    font-size: 12px !important;
    line-height: 1.6 !important;
    color: var(--vf-muted) !important;
    margin-bottom: 12px;
    font-weight: 400;
}

.vf-trust-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 12px;
    color: var(--vf-muted);
}

.vf-trust-divider {
    color: var(--vf-line-strong);
}

/* 10. Responsive Breakpoints */
@media (max-width: 767px) {
    .vf-card {
        padding: 24px 20px;
    }

    .vf-options label {
        width: 100%;
    }

    .vf-scorecard-calc {
        padding: 32px 20px;
    }

    .vf-scorecard-value {
        font-size: 42px;
    }

    .vf-cost-row-calc {
        padding: 16px 20px;
    }
    
    .vf-row-right {
        gap: 12px;
    }
    
    .vf-trust-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .vf-trust-divider {
        display: none;
    }
}
