/* Calculator Page Styles */

/* Calculator Card */
.calculator-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.calculator-header {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    padding: 2rem;
    color: white;
}

.calculator-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.calculator-header p {
    margin-bottom: 0;
    opacity: 0.8;
}

.calculator-body {
    padding: 2rem;
}

/* Results Card */
.results-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.results-header {
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
    padding: 2rem;
    color: white;
}

.results-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.results-header p {
    margin-bottom: 0;
    opacity: 0.8;
}

.results-body {
    padding: 2rem;
}

/* Results Summary */
.results-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-item {
    flex: 1;
    min-width: 150px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.result-item.highlight {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: white;
    border: none;
}

.result-item h3 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #64748b;
}

.result-item.highlight h3 {
    color: rgba(255, 255, 255, 0.8);
}

.result-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.result-item.highlight .result-value {
    color: white;
}

.result-item p {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0;
}

.result-item.highlight p {
    color: rgba(255, 255, 255, 0.8);
}

/* Chart Container */
.chart-container {
    height: 300px;
    margin-bottom: 1.5rem;
}

/* Results Disclaimer */
.results-disclaimer {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.75rem;
    color: #64748b;
    border-left: 3px solid #4361ee;
}

/* Range Slider */
.range-slider {
    margin-top: 0.5rem;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* How It Works Cards */
.how-it-works-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.how-it-works-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.how-it-works-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.how-it-works-card p {
    color: #64748b;
    margin-bottom: 0;
}

/* Comparison Table */
.comparison-table-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-table {
    margin-bottom: 0;
}

.comparison-table th {
    background: #f8fafc;
    color: #1e293b;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
    padding: 1rem;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #64748b;
}

.comparison-table tr.highlight {
    background: rgba(67, 97, 238, 0.05);
}

.comparison-table tr.highlight td {
    color: #1e293b;
    font-weight: 500;
}

/* Comparison Content */
.comparison-content {
    padding: 1.5rem;
}

.comparison-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.comparison-content p {
    color: #64748b;
    line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .calculator-card,
    .results-card {
        margin-bottom: 2rem;
    }
    
    .results-summary {
        flex-direction: column;
    }
    
    .result-item {
        width: 100%;
    }
    
    .chart-container {
        height: 250px;
    }
}

@media (max-width: 767.98px) {
    .calculator-header,
    .results-header,
    .calculator-body,
    .results-body {
        padding: 1.5rem;
    }
    
    .chart-container {
        height: 200px;
    }
    
    .comparison-table-container {
        overflow-x: auto;
    }
    
    .comparison-table {
        min-width: 600px;
    }
}