/* CSPA Calculator Specific Styles */

.cspa-calculator {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.form-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.input-group input[type="date"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.input-group input[type="date"]:focus {
    outline: none;
    border-color: #3d8a59;
    box-shadow: 0 0 0 3px rgba(61, 138, 89, 0.1);
}

.input-group small {
    display: block;
    color: #7f8c8d;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    font-style: italic;
}

.professional-btn {
    background: linear-gradient(135deg, #3d8a59 0%, #2c6e42 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.professional-btn:hover {
    background: linear-gradient(135deg, #2c6e42 0%, #1e4d2e 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(61, 138, 89, 0.3);
}

.professional-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(61, 138, 89, 0.3);
}

.professional-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Results Section */
#cspaResult {
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
    min-height: 60px;
    display: none;
}

.result-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    color: #155724;
}

.result-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    color: #856404;
}

.result-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
    color: #721c24;
}

.result-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.result-details {
    margin-bottom: 1rem;
}

.result-details p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.result-breakdown {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.result-breakdown h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.result-breakdown ul {
    margin: 0;
    padding-left: 1.5rem;
}

.result-breakdown li {
    margin: 0.25rem 0;
    font-size: 0.95rem;
}

.formula-box {
    background: #f8f9fa;
    border: 2px solid #3d8a59;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.formula-box p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.formula-box strong {
    color: #3d8a59;
    font-size: 1.2rem;
}

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading .professional-btn {
    background: #bdc3c7;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cspa-calculator {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .form-title {
        font-size: 1.8rem;
    }
    
    .professional-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .cspa-calculator {
        padding: 0.75rem;
        margin: 0.25rem;
    }
    
    .form-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .input-group input[type="date"] {
        padding: 0.625rem;
        font-size: 0.95rem;
    }
    
    .professional-btn {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
}

/* Dark mode support */
[data-theme="dark"] .cspa-calculator {
    background-color: #2c3e50;
    color: #ecf0f1;
}

[data-theme="dark"] .form-title {
    color: #ecf0f1;
}

[data-theme="dark"] .input-group label {
    color: #bdc3c7;
}

[data-theme="dark"] .input-group input[type="date"] {
    background-color: #34495e;
    border-color: #4a6741;
    color: #ecf0f1;
}

[data-theme="dark"] .input-group input[type="date"]:focus {
    border-color: #52c371;
    box-shadow: 0 0 0 3px rgba(82, 195, 113, 0.2);
}

[data-theme="dark"] .input-group small {
    color: #95a5a6;
}

[data-theme="dark"] .formula-box {
    background: #34495e;
    border-color: #52c371;
    color: #ecf0f1;
}

[data-theme="dark"] .result-breakdown {
    background: rgba(52, 73, 94, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .result-breakdown h4 {
    color: #ecf0f1;
}