/* Education Savings Calculator Styles */

/* Import base calculator styles */
@import url('calculator-base.css');

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.6;
}

/* Calculator Card */
.calculator-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.calculator-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.calculator-header h2 {
    color: #1e40af;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.calculator-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8faff;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

.form-section h3 {
    color: #1e40af;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.input-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.input-label.required::after {
    content: " *";
    color: #e74c3c;
}

.input-field {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.input-field:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.help-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Calculate Button */
.calculate-section {
    text-align: center;
    margin: 2rem 0;
}

.calculate-btn {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

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

.btn-icon {
    font-size: 1.2rem;
}

/* Results Section */
.results-section {
    background: linear-gradient(135deg, #f8faff 0%, #eff6ff 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    border: 2px solid #e0f2fe;
}

.results-section h3 {
    color: #1e40af;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.result-card.primary {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.result-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 0.25rem;
}

.result-card.primary .result-value {
    color: #10b981;
}

.result-subtitle {
    font-size: 0.85rem;
    color: #666;
    opacity: 0.8;
}

/* Projection Section */
.projection-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.projection-section h4 {
    color: #1e40af;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.projection-chart {
    height: 300px;
    background: #f8faff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-style: italic;
}

/* Breakdown Section */
.breakdown-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.breakdown-section h4 {
    color: #1e40af;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.breakdown-table {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8faff;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

.breakdown-label {
    font-weight: 600;
    color: #333;
}

.breakdown-value {
    font-weight: 700;
    color: #1e40af;
    font-size: 1.1rem;
}

/* Strategies Section */
.strategies-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.strategies-section h4 {
    color: #1e40af;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.strategies-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.strategy-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8faff;
    border-radius: 8px;
    border-left: 3px solid #10b981;
}

.strategy-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.strategy-text {
    color: #333;
    line-height: 1.5;
}

/* Info Section */
.info-section {
    margin-top: 3rem;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3b82f6;
}

.info-card h3 {
    color: #1e40af;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.info-card h4 {
    color: #333;
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem 0;
}

.info-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.info-card ul, .info-card ol {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.info-card li {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .breakdown-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .strategy-item {
        flex-direction: column;
        text-align: center;
    }
}
