/* ==========================================
   VivreFR Cost of Living Calculator - ALIGNED
   Version: 1.2.010
==========================================*/

#vf-col-calculator {
    max-width: 900px;
    margin: 0 auto;
    font-family: var(--vf-body);
    color: var(--vf-ink);
}

/* Sections */
.pp-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--vf-line);
}

.pp-section h2 {
    font-family: var(--vf-display);
    color: var(--vf-navy-deep);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 24px;
}

/* 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-navy-deep);
    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);
}

/* Radio Options */
.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);
}

/* Button */
#calculateButton {
    width: 100%;
    margin-top: 12px;
}

/* Results Section */
#vf-results {
    margin-top: 48px;
}

#vf-results h2 {
    font-family: var(--vf-display);
    font-size: 28px;
    margin-bottom: 24px;
    color: var(--vf-ink);
}

/* City Information Banner */
.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: 500;
    color: var(--vf-ink);
}

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

.vf-info-banner p strong {
    color: var(--vf-ink);
}

/* 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: #ea580c; }
.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: #16a34a; }

/* Main Scorecard */
.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: 600;
    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.8;
}

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

/* Breakdown Table */
.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);
}

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

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

/* Percentage Alignment Classes */
.vf-row-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

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

/* Utilities Breakdown Subtext Alignment */
.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;
}

/* Colors for Income Analysis */
.vf-text-green {
    color: #16a34a !important; 
}

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

/* Recommendation Card */
.vf-rec-card {
    background: rgba(28, 50, 129, 0.03);
    border-left: 4px solid var(--vf-navy);
    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);
}

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

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

/* Trust & Authority Footer Section */
.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);
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .pp-section {
        margin-top: 30px;
        padding-top: 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;
    }
}
