/* Results Panel Styles */

.calculator-panel {
    display: none;
    padding: 32px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-top: 24px;
}

.calculator-panel.active {
    display: block;
}

/* Financing Results */
.financing-results {
    max-width: 1000px;
    margin: 0 auto;
}

.vehicle-summary {
    background: linear-gradient(135deg, #1C69D4 0%, #1557B8 100%);
    color: white;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.vehicle-summary h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.summary-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
}

.summary-details span {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

.trade-in-summary {
    background: #F3F4F6;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    border-left: 4px solid #10B981;
}

.trade-in-summary.negative {
    border-left-color: #EF4444;
}

.trade-in-summary h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.trade-in-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.equity-line {
    padding-top: 8px;
    border-top: 2px solid #E5E7EB;
    margin-top: 4px;
}

.apr-comparison {
    margin-bottom: 32px;
}

.apr-comparison h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.comparison-card {
    background: #F9FAFB;
    padding: 24px;
    border-radius: 12px;
    border: 2px solid #E5E7EB;
}

.comparison-card.dealer {
    border-color: #EF4444;
}

.comparison-card.target {
    border-color: #10B981;
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
}

.comparison-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--charcoal);
}

.apr-display {
    font-size: 28px;
    font-weight: 800;
    color: #1C69D4;
    margin-bottom: 8px;
}

.payment-display {
    font-size: 24px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 12px;
}

.total-display,
.interest-display {
    font-size: 14px;
    color: var(--grey);
    margin-bottom: 4px;
}

.savings-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

.savings-badge.positive {
    background: #D1FAE5;
    color: #065F46;
}

.savings-summary {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
}

.savings-summary h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
}

.savings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 20px;
}

.savings-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
}

.savings-item.highlight {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

.savings-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.savings-value {
    font-size: 32px;
    font-weight: 800;
}

.savings-note {
    font-size: 16px;
    line-height: 1.6;
}

/* True Cost Results */
.true-cost-results h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
    text-align: center;
}

.cost-breakdown-table {
    overflow-x: auto;
    margin-bottom: 32px;
}

.cost-breakdown-table table {
    width: 100%;
    border-collapse: collapse;
}

.cost-breakdown-table th,
.cost-breakdown-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}

.cost-breakdown-table th {
    background: #F3F4F6;
    font-weight: 700;
    font-size: 14px;
    color: var(--charcoal);
}

.cost-breakdown-table td {
    font-size: 14px;
}

.cost-breakdown-table .total-row {
    background: #FEF3C7;
    font-weight: 700;
}

.depreciation-section {
    background: #F9FAFB;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.depreciation-section h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.depreciation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.depreciation-item {
    background: white;
    padding: 16px;
    border-radius: 8px;
}

.depreciation-item.highlight {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
}

.depreciation-item .label {
    font-size: 14px;
    font-weight: 600;
    color: var(--grey);
    margin-bottom: 8px;
}

.depreciation-item .value {
    font-size: 24px;
    font-weight: 800;
    color: var(--charcoal);
}

.cost-insights {
    background: #EFF6FF;
    padding: 24px;
    border-radius: 12px;
}

.cost-insights h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cost-insights ul {
    list-style: none;
    padding: 0;
}

.cost-insights li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    line-height: 1.6;
}

.cost-insights li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: #1C69D4;
    font-weight: 700;
}

/* Lease vs Buy & New vs Used */
.comparison-grid-two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.comparison-card-large {
    background: #F9FAFB;
    padding: 24px;
    border-radius: 12px;
    border: 2px solid #E5E7EB;
}

.comparison-card-large h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.calculation-breakdown {
    background: white;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.calc-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #F3F4F6;
}

.calc-line.total {
    border-top: 2px solid #E5E7EB;
    border-bottom: none;
    padding-top: 12px;
    margin-top: 8px;
}

.calc-line.positive {
    color: #10B981;
}

.pros-cons,
.benefits {
    margin-top: 16px;
}

.pros-cons .pros,
.pros-cons .cons {
    margin-bottom: 12px;
}

.pros-cons ul,
.benefits ul {
    list-style: none;
    padding-left: 0;
    margin-top: 8px;
}

.pros-cons li,
.benefits li {
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
    font-size: 14px;
}

.pros-cons li:before,
.benefits li:before {
    content: '•';
    position: absolute;
    left: 0;
}

.recommendation-box {
    background: #EFF6FF;
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid #1C69D4;
}

.recommendation-box h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.recommendation-box p {
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Complete Analysis */
.complete-analysis-results {
    max-width: 900px;
    margin: 0 auto;
}

.deal-summary {
    background: linear-gradient(135deg, #1C69D4 0%, #1557B8 100%);
    color: white;
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.deal-summary h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.summary-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 16px;
    border-radius: 8px;
}

.summary-item.highlight {
    background: rgba(255, 255, 255, 0.25);
}

.summary-item .label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.9;
}

.summary-item .value {
    font-size: 24px;
    font-weight: 800;
}

.recommendations-section {
    margin-bottom: 32px;
}

.recommendations-section h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

.recommendation-card {
    display: flex;
    gap: 16px;
    background: #F9FAFB;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    border-left: 4px solid #1C69D4;
}

.rec-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.rec-content h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.rec-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--grey);
}

.next-steps {
    background: #EFF6FF;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.next-steps h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.next-steps ol {
    padding-left: 20px;
}

.next-steps li {
    padding: 8px 0;
    line-height: 1.6;
}

.playbook-cta-box {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
}

.playbook-cta-box h4 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.playbook-cta-box p {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.95;
}

.playbook-cta-box .cta-button {
    background: white;
    color: #059669;
}

.playbook-cta-box .cta-button:hover {
    background: #F3F4F6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .calculator-panel {
        padding: 20px;
    }

    .comparison-grid,
    .comparison-grid-two {
        grid-template-columns: 1fr;
    }

    .cost-breakdown-table {
        font-size: 12px;
    }

    .cost-breakdown-table th,
    .cost-breakdown-table td {
        padding: 8px;
    }
}
