/**
 * Calculator Styles for Keiste Solar Report
 */

.ksrad-calculator-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ksrad-calculator-title {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
}

.ksrad-calculator-form {
    margin-bottom: 30px;
}

.ksrad-form-group {
    margin-bottom: 20px;
}

.ksrad-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.ksrad-form-group input[type="number"],
.ksrad-form-group select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s;
}

.ksrad-form-group input[type="number"]:focus,
.ksrad-form-group select:focus {
    outline: none;
    border-color: #2271b1;
}

.ksrad-help-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.ksrad-btn {
    padding: 14px 30px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ksrad-btn-primary {
    background: linear-gradient(135deg, #2271b1 0%, #1a5a8e 100%);
    color: #fff;
    width: 100%;
}

.ksrad-btn-primary:hover {
    background: linear-gradient(135deg, #1a5a8e 0%, #134870 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

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

.ksrad-results {
    margin-top: 40px;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.ksrad-results h3 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-size: 24px;
}

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

.ksrad-result-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.ksrad-result-card:hover {
    border-color: #2271b1;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ksrad-result-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.ksrad-result-value {
    font-size: 24px;
    font-weight: 700;
    color: #2271b1;
}

.ksrad-loading {
    text-align: center;
    padding: 40px;
}

.ksrad-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ksrad-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    margin-top: 20px;
}

.ksrad-lead-form-wrapper {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
}

.ksrad-lead-form-wrapper h3 {
    color: #333;
    margin-bottom: 10px;
}

.ksrad-lead-form-wrapper > p {
    color: #666;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ksrad-calculator-wrapper {
        padding: 20px;
    }
    
    .ksrad-calculator-title {
        font-size: 24px;
    }
    
    .ksrad-results-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .ksrad-result-value {
        font-size: 20px;
    }
    
    .ksrad-result-label {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .ksrad-results-grid {
        grid-template-columns: 1fr;
    }
}
