/* Vloerverwarming Calculator Plugin Styles */
.vvc-calculator-container {
    background: #f8fafc;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #1f2937;
    box-sizing: border-box;
    max-width: 100%;
    margin: 0 auto;
}

.vvc-calculator-container *, 
.vvc-calculator-container *::before, 
.vvc-calculator-container *::after {
    box-sizing: border-box;
}

/* Header */
.vvc-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.vvc-step-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.vvc-step-text {
    font-size: 0.875rem;
    color: #6b7280;
}

.vvc-progress-bar {
    width: 8rem;
    height: 0.5rem;
    background: #e5e7eb;
    border-radius: 0.25rem;
    overflow: hidden;
}

.vvc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 0.25rem;
    transition: width 0.3s ease;
    width: 25%;
}

.vvc-step-tabs {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0;
}

.vvc-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.25rem;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vvc-tab:hover {
    color: #374151;
    border-bottom-color: #d1d5db;
}

.vvc-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.vvc-tab.completed {
    color: #10b981;
    border-bottom-color: #10b981;
}

.vvc-tab-number {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: #e5e7eb;
    color: #6b7280;
}

.vvc-tab.active .vvc-tab-number {
    background: #3b82f6;
    color: white;
}

.vvc-tab.completed .vvc-tab-number {
    background: #10b981;
    color: white;
}

/* Content */
.vvc-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

@media (max-width: 1024px) {
    .vvc-content {
        grid-template-columns: 1fr;
    }
}

/* Form Panel */
.vvc-form-panel {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.vvc-step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.vvc-step p {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0 0 1.5rem 0;
}

.vvc-form-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.vvc-grid-2 { grid-template-columns: repeat(2, 1fr); }
.vvc-grid-3 { grid-template-columns: repeat(3, 1fr); }
.vvc-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .vvc-grid-2, .vvc-grid-3, .vvc-grid-4 {
        grid-template-columns: 1fr;
    }
}

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

.vvc-form-group label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.vvc-form-group input,
.vvc-form-group select {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

/* Switch styling */
.vvc-switch-group {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.vvc-switch-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 0;
}

.vvc-switch-label span:first-child {
    flex: 1;
}

.vvc-switch-label strong {
    font-size: 1.125rem;
    color: #111827;
}

.vvc-switch {
    position: relative;
    width: 3rem;
    height: 1.5rem;
    background: #d1d5db;
    border-radius: 0.75rem;
    transition: background-color 0.2s ease;
}

.vvc-switch::before {
    content: '';
    position: absolute;
    top: 0.125rem;
    left: 0.125rem;
    width: 1.25rem;
    height: 1.25rem;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

input[type="checkbox"]:checked + .vvc-switch {
    background: #3b82f6;
}

input[type="checkbox"]:checked + .vvc-switch::before {
    transform: translateX(1.5rem);
}

input[type="checkbox"] {
    display: none;
}

/* Info boxes */
.vvc-info-box {
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.vvc-info-blue {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.vvc-info-orange {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #c2410c;
}

.vvc-info-green {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.vvc-info-purple {
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    color: #7c2d12;
}

/* Cooling section */
.vvc-cooling-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e40af;
    margin: 1.5rem 0 1rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

/* Navigation */
.vvc-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.vvc-nav-buttons {
    display: flex;
    gap: 0.75rem;
}

.vvc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.vvc-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vvc-btn-primary {
    background: #3b82f6;
    color: white;
}

.vvc-btn-primary:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.vvc-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.vvc-btn-secondary:hover:not(:disabled) {
    background: #e5e7eb;
}

.vvc-btn-export {
    background: #10b981;
    color: white;
    width: 100%;
    justify-content: center;
}

.vvc-btn-export:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

/* Email Section */
.vvc-email-section {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.vvc-email-section h4 {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
}

.vvc-email-section .vvc-form-group {
    margin-bottom: 0.75rem;
}

.vvc-email-section .vvc-form-group:last-child {
    margin-bottom: 0;
}

.vvc-email-section input[type="email"],
.vvc-email-section input[type="text"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background: white;
}

.vvc-email-section input[type="email"]:focus,
.vvc-email-section input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* Results Panel */
.vvc-results-panel {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

#vvc-results {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.vvc-results-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 1.5rem 0;
}

.vvc-info-icon {
    color: #6b7280;
    cursor: help;
    font-size: 1rem;
}

.vvc-result-card {
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    color: white;
    margin-bottom: 1rem;
}

.vvc-heating {
    background: linear-gradient(135deg, #ea580c, #c2410c);
}

.vvc-cooling {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.vvc-result-header {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.vvc-result-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.vvc-result-total {
    font-size: 1.125rem;
}

.vvc-room-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.vvc-info-item {
    background: #f9fafb;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
}

.vvc-info-label {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.vvc-info-value {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .vvc-step-tabs {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .vvc-tab {
        font-size: 0.75rem;
    }
    
    .vvc-tab-title {
        display: none;
    }
    
    .vvc-content {
        padding: 1rem;
    }
    
    .vvc-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .vvc-nav-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .vvc-room-info {
        grid-template-columns: 1fr;
    }
}