/**
 * Warmtepomp Calculator Styles
 * Professional styling for WordPress integration
 */

.wpd-calculator-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

.wpd-calculator-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2em;
    font-weight: 600;
}

.wpd-calculator-intro {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.wpd-calculator-intro p {
    margin: 0;
    color: #555;
}

/* Progress Indicator */
.wpd-progress-container {
    margin-bottom: 30px;
}

.wpd-progress-bar {
    background: #e9ecef;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.wpd-progress-fill {
    background: linear-gradient(90deg, #3498db, #2ecc71);
    height: 100%;
    width: 20%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.wpd-step-indicators {
    display: flex;
    justify-content: space-between;
    margin: 0 -10px;
}

.wpd-step {
    flex: 1;
    text-align: center;
    padding: 0 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpd-step-number {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.wpd-step.active .wpd-step-number {
    background: #3498db;
    color: white;
    transform: scale(1.1);
}

.wpd-step.completed .wpd-step-number {
    background: #2ecc71;
    color: white;
}

.wpd-step-label {
    display: block;
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.wpd-step.active .wpd-step-label {
    color: #3498db;
    font-weight: 600;
}

/* Form Styling */
.wpd-form {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.wpd-step-content {
    display: none;
    padding: 30px;
}

.wpd-step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.wpd-step-content h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.4em;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.wpd-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.wpd-form-row .wpd-form-group {
    flex: 1;
}

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

.wpd-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2c3e50;
}

.wpd-form-group input,
.wpd-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: white;
}

.wpd-form-group input:focus,
.wpd-form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.wpd-form-group small {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 12px;
}

.wpd-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wpd-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 0;
}

.wpd-checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Navigation Buttons */
.wpd-navigation {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wpd-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.wpd-btn-primary {
    background: #3498db;
    color: white;
}

.wpd-btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.wpd-btn-secondary {
    background: #95a5a6;
    color: white;
}

.wpd-btn-secondary:hover {
    background: #7f8c8d;
}

.wpd-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Results Section */
.wpd-results {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 30px;
    overflow: hidden;
}

.wpd-results h3 {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    margin: 0;
    padding: 20px 30px;
    font-size: 1.3em;
}

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

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

.wpd-result-card:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.wpd-result-card h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.wpd-result-value {
    font-size: 2em;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 5px;
}

.wpd-result-unit {
    color: #6c757d;
    font-size: 0.9em;
}

.wpd-result-description {
    color: #555;
    font-size: 0.85em;
    margin-top: 10px;
    line-height: 1.4;
}

/* Contact Form */
.wpd-contact-section {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 30px;
}

.wpd-contact-section h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.wpd-contact-form .wpd-form-row {
    margin-bottom: 15px;
}

.wpd-contact-form .wpd-btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    margin-top: 10px;
}

/* Loading Indicator */
.wpd-loading {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.wpd-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .wpd-calculator-container {
        padding: 15px;
    }
    
    .wpd-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .wpd-step-indicators {
        flex-wrap: wrap;
    }
    
    .wpd-step {
        min-width: 80px;
        margin-bottom: 10px;
    }
    
    .wpd-step-label {
        font-size: 11px;
    }
    
    .wpd-results-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }
    
    .wpd-navigation {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
    }
    
    .wpd-navigation .wpd-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .wpd-calculator-title {
        font-size: 1.6em;
    }
    
    .wpd-step-content {
        padding: 20px;
    }
    
    .wpd-contact-section {
        padding: 20px;
    }
}

/* Error States */
.wpd-form-group.error input,
.wpd-form-group.error select {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

.wpd-error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.wpd-form-group.error .wpd-error-message {
    display: block;
}

/* Success Messages */
.wpd-success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.wpd-info-message {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
    padding: 12px 15px;
    border-radius: 6px;
    margin: 15px 0;
}

/* Tooltips */
.wpd-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    margin-left: 5px;
}

.wpd-tooltip::after {
    content: "ⓘ";
    color: #3498db;
    font-weight: bold;
}

.wpd-tooltip:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

/* Print Styles */
@media print {
    .wpd-navigation,
    .wpd-contact-section {
        display: none;
    }
    
    .wpd-calculator-container {
        box-shadow: none;
        max-width: none;
    }
    
    .wpd-results {
        break-inside: avoid;
    }
}