/* ============================================
   ENERGIE-BERATER PRO - Modern Form Styles
   Premium Energy Consulting Calculator
   ============================================ */

/* CSS Variables */
:root {
    --eb-primary: #1E3A8A;
    --eb-primary-light: #3B82F6;
    --eb-primary-dark: #1E40AF;
    --eb-primary-pale: #DBEAFE;
    --eb-secondary: #0F172A;
    --eb-accent: #06B6D4;
    --eb-success: #10B981;
    --eb-success-light: #D1FAE5;
    --eb-warning: #F59E0B;
    --eb-gray-50: #F8FAFC;
    --eb-gray-100: #F1F5F9;
    --eb-gray-200: #E2E8F0;
    --eb-gray-300: #CBD5E1;
    --eb-gray-400: #94A3B8;
    --eb-gray-500: #64748B;
    --eb-gray-600: #475569;
    --eb-gray-700: #334155;
    --eb-gray-800: #1E293B;
    --eb-gray-900: #0F172A;
    --eb-radius-sm: 6px;
    --eb-radius-md: 10px;
    --eb-radius-lg: 16px;
    --eb-radius-xl: 24px;
    --eb-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --eb-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --eb-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --eb-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --eb-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Container */
.sb-calculator-wrapper {
    max-width: 880px;
    margin: 0 auto;
    padding: 2.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--eb-gray-800);
    background: linear-gradient(180deg, var(--eb-gray-50) 0%, #ffffff 100%);
    border-radius: var(--eb-radius-xl);
    box-shadow: var(--eb-shadow-xl);
}

/* Progress Steps - Modern Pill Design */
.sb-progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 1rem 1.5rem;
    background: var(--eb-gray-100);
    border-radius: var(--eb-radius-xl);
    gap: 0.5rem;
    position: relative;
}

.sb-progress-steps::before {
    display: none;
}

.sb-step {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--eb-radius-lg);
    transition: var(--eb-transition);
    background: transparent;
}

.sb-step:first-child {
    padding-left: 1rem;
}

.sb-step-number {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--eb-gray-300);
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.875rem;
    background: white;
    color: var(--eb-gray-400);
    transition: var(--eb-transition);
}

.sb-step.active {
    background: white;
    box-shadow: var(--eb-shadow-md);
}

.sb-step.active .sb-step-number {
    background: linear-gradient(135deg, var(--eb-primary) 0%, var(--eb-primary-light) 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.35);
}

.sb-step.completed .sb-step-number {
    background: var(--eb-success);
    border-color: var(--eb-success);
    color: white;
}

.sb-step.completed .sb-step-number::after {
    content: '✓';
    font-size: 0.75rem;
}

.sb-step-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--eb-gray-500);
    transition: var(--eb-transition);
}

.sb-step.active .sb-step-label {
    color: var(--eb-primary);
    font-weight: 600;
}

.sb-step.completed .sb-step-label {
    color: var(--eb-success);
}

/* Form Content */
.sb-step-content {
    margin-bottom: 2rem;
}

.sb-step-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--eb-secondary);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.sb-subtitle {
    font-size: 1.1rem;
    color: var(--eb-gray-500);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Options Grid - Card Design */
.sb-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.sb-options-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.sb-options-grid-5 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.sb-options-grid-6 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.sb-option {
    background: white;
    border: 2px solid var(--eb-gray-200);
    border-radius: var(--eb-radius-lg);
    padding: 1.75rem 1.25rem;
    cursor: pointer;
    transition: var(--eb-transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
    position: relative;
    overflow: hidden;
}

.sb-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--eb-primary) 0%, var(--eb-accent) 100%);
    transform: scaleX(0);
    transition: var(--eb-transition);
}

.sb-option:hover {
    border-color: var(--eb-primary-light);
    transform: translateY(-4px);
    box-shadow: var(--eb-shadow-lg);
}

.sb-option:hover::before {
    transform: scaleX(1);
}

.sb-option.active {
    background: var(--eb-primary-pale);
    border-color: var(--eb-primary);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

.sb-option.active::before {
    transform: scaleX(1);
}

.sb-option-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--eb-primary);
    background: var(--eb-primary-pale);
    border-radius: var(--eb-radius-md);
    transition: var(--eb-transition);
}

.sb-option:hover .sb-option-icon,
.sb-option.active .sb-option-icon {
    background: var(--eb-primary);
    color: white;
}

.sb-option-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.sb-option-label {
    font-weight: 600;
    color: var(--eb-gray-700);
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.4;
}

.sb-option.active .sb-option-label {
    color: var(--eb-primary-dark);
}

/* Navigation Buttons */
.sb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--eb-radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--eb-transition);
    border: none;
    text-decoration: none;
    gap: 0.5rem;
}

.sb-btn-back {
    color: var(--eb-gray-600);
    background: var(--eb-gray-100);
    padding: 0.875rem 1.5rem;
    border-radius: var(--eb-radius-md);
    border: 1px solid var(--eb-gray-200);
}

.sb-btn-back:hover {
    background: var(--eb-gray-200);
    color: var(--eb-gray-800);
    border-color: var(--eb-gray-300);
}

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

/* Results Card - Premium Gradient Design */
.sb-results-card {
    background: linear-gradient(145deg, var(--eb-secondary) 0%, var(--eb-primary-dark) 50%, var(--eb-primary) 100%);
    border-radius: var(--eb-radius-xl);
    padding: 2.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.sb-results-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.sb-results-title {
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.savings-text {
    color: var(--eb-accent);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sb-savings-breakdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 2rem;
    position: relative;
}

.sb-savings-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sb-savings-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

/* Eco Impact Section */
.sb-eco-impact {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 -2.5rem -2.5rem;
    padding: 2rem 2.5rem;
    border-radius: 0 0 var(--eb-radius-xl) var(--eb-radius-xl);
}

.sb-eco-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    background: rgba(6, 182, 212, 0.2);
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--eb-radius-md);
}

.sb-eco-impact p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Contact Form - Clean Card Design */
.sb-contact-section {
    margin-top: 2.5rem;
    background: white;
    border-radius: var(--eb-radius-xl);
    padding: 2.5rem;
    box-shadow: var(--eb-shadow-lg);
    border: 1px solid var(--eb-gray-100);
}

.sb-contact-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--eb-secondary);
}

.sb-contact-section .sb-subtitle {
    margin-bottom: 2rem;
    font-size: 1rem;
}

.sb-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.sb-form-field {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--eb-gray-200);
    border-radius: var(--eb-radius-md);
    font-size: 1rem;
    transition: var(--eb-transition);
    background: var(--eb-gray-50);
    color: var(--eb-gray-800);
}

.sb-form-field::placeholder {
    color: var(--eb-gray-400);
}

.sb-form-field:hover {
    border-color: var(--eb-gray-300);
}

.sb-form-field:focus {
    outline: none;
    border-color: var(--eb-primary);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
    background: white;
}

.sb-form-note {
    font-size: 0.8rem;
    color: var(--eb-gray-500);
    margin-bottom: 1.5rem;
}

.sb-submit-btn {
    width: 100%;
    padding: 1.125rem 2rem;
    background: linear-gradient(135deg, var(--eb-primary) 0%, var(--eb-primary-light) 100%);
    color: white;
    border: none;
    border-radius: var(--eb-radius-md);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--eb-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.35);
}

.sb-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--eb-primary-dark) 0%, var(--eb-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

.sb-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Messages */
.sb-success-message,
.sb-error-message,
.sb-info-message {
    padding: 2.5rem;
    border-radius: var(--eb-radius-lg);
    text-align: center;
    max-width: 620px;
    margin: 0 auto;
}

.sb-success-message {
    background: var(--eb-success-light);
    border: 2px solid var(--eb-success);
    color: #065F46;
}

.sb-success-message h2 {
    color: #065F46;
}

.sb-error-message {
    color: #DC2626;
    background: #FEF2F2;
    border: 2px solid #FECACA;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: var(--eb-radius-md);
}

.sb-info-message {
    background: var(--eb-primary-pale);
    border: 2px solid var(--eb-primary-light);
    color: var(--eb-gray-800);
}

.sb-info-message h2 {
    color: var(--eb-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.sb-info-message p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--eb-gray-600);
}

/* Benefits List */
.sb-benefits {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
}

.sb-benefits li {
    position: relative;
    padding-left: 2.25rem;
    margin-bottom: 1rem;
    color: var(--eb-gray-700);
    font-size: 1rem;
    line-height: 1.6;
}

.sb-benefits li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    background: linear-gradient(135deg, var(--eb-primary) 0%, var(--eb-accent) 100%);
    border-radius: 50%;
}

.sb-benefits li::after {
    content: '✓';
    position: absolute;
    left: 0.25rem;
    top: 0.25rem;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
}

.sb-disclaimer {
    font-size: 0.85rem;
    color: var(--eb-gray-500);
    margin-top: 1.5rem;
    text-align: center;
    font-style: italic;
    padding: 1rem;
    background: var(--eb-gray-50);
    border-radius: var(--eb-radius-md);
}

/* Reset Button */
.sb-btn-reset {
    background: linear-gradient(135deg, var(--eb-primary) 0%, var(--eb-primary-light) 100%);
    color: white;
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.3);
}

.sb-btn-reset:hover {
    background: linear-gradient(135deg, var(--eb-primary-dark) 0%, var(--eb-primary) 100%);
    transform: translateY(-2px);
}

/* Form Navigation Container */
.sb-form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--eb-gray-200);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sb-calculator-wrapper {
        padding: 1.5rem;
        border-radius: var(--eb-radius-lg);
        margin: 1rem;
    }

    .sb-progress-steps {
        flex-wrap: wrap;
        padding: 0.75rem;
        gap: 0.25rem;
    }

    .sb-step {
        padding: 0.375rem 0.5rem;
    }

    .sb-step-label {
        display: none;
    }

    .sb-step-number {
        width: 2rem;
        height: 2rem;
        font-size: 0.75rem;
    }

    .sb-step-content h2 {
        font-size: 1.5rem;
    }

    .sb-subtitle {
        font-size: 1rem;
    }

    .sb-options-grid,
    .sb-options-grid-2 {
        grid-template-columns: 1fr;
    }

    .sb-savings-breakdown {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .sb-form-grid {
        grid-template-columns: 1fr;
    }

    .savings-text {
        font-size: 1.75rem;
    }

    .sb-results-card {
        padding: 1.75rem;
    }

    .sb-eco-impact {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin: 0 -1.75rem -1.75rem;
        padding: 1.5rem 1.75rem;
    }

    .sb-contact-section {
        padding: 1.75rem;
    }

    .sb-submit-btn,
    .sb-btn-back,
    .sb-btn-reset {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

    .sb-benefits li {
        font-size: 0.9rem;
        padding-left: 2rem;
    }

    .sb-benefits li::before {
        width: 1rem;
        height: 1rem;
    }

    .sb-benefits li::after {
        left: 0.2rem;
        font-size: 0.6rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.sb-step-content {
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sb-results-card {
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading Spinner */
.sb-loading-spinner {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Checkbox/Radio Custom Styles */
.sb-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.sb-checkbox-wrapper input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--eb-primary);
    cursor: pointer;
    margin-top: 0.125rem;
}

.sb-checkbox-label {
    font-size: 0.9rem;
    color: var(--eb-gray-600);
    line-height: 1.5;
}

.sb-checkbox-label a {
    color: var(--eb-primary);
    text-decoration: underline;
}

.sb-checkbox-label a:hover {
    color: var(--eb-primary-dark);
}
