* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.resource-calculator-pro {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.calc-header {
    text-align: center;
    margin-bottom: 0;
    padding: 40px 30px;
    background: #106ebe;
    color: white;
}

.calc-header h2 {
    margin: 0 0 8px 0;
    font-size: 32px;
    font-weight: 700;
    color: white;
}

.calc-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
    color: white;
}

/* Główny layout */
#resource-calc-pro-form {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 0;
    background: #f5f5f5;
}

/* Lewa kolumna - suwaki */
.left-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: #e0e0e0;
    padding: 1px;
}

/* Prawa kolumna */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Slider Groups */
.calc-slider-group {
    background: white;
    padding: 24px;
}

.slider-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.calc-slider-group label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.icon {
    font-size: 18px;
}

.slider-value {
    font-size: 16px;
    font-weight: 700;
    color: #106ebe;
}

/* Suwak */
.custom-slider {
    width: 100%;
    height: 4px;
    outline: none;
    -webkit-appearance: none;
    background: #ddd;
    margin: 12px 0;
    cursor: pointer;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #106ebe;
    cursor: pointer;
}

.custom-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #106ebe;
    cursor: pointer;
    border: none;
}

.slider-info {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #999;
    margin-top: 4px;
}

.price-display {
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    color: #106ebe;
    margin-top: 8px;
}

/* Toggle Switch */
.backup-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.switch {
    position: relative;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: 0.3s;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.switch input:checked + .switch-slider {
    background-color: #106ebe;
}

.switch input:checked + .switch-slider:before {
    transform: translateX(24px);
}

.toggle-label {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

/* Podsumowanie */
.calc-summary {
    padding: 30px;
    background: #106ebe;
    color: white;
}

.summary-card {
    background: transparent;
    padding: 0;
    color: white;
}

.summary-card h3 {
    margin: 0 0 16px 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.9;
    color: white;
}

.total-price {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-align: center;
}

.price-breakdown {
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 16px;
    margin-top: 16px;
    color: white;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: white;
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-item span {
    color: white;
}

.breakdown-item span:first-child {
    opacity: 0.9;
}

.breakdown-item span:last-child {
    font-weight: 600;
}

/* Formularz */
.contact-form-section {
    background: white;
    padding: 30px;
}

.contact-form-section h3 {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #333;
    font-weight: 700;
}

.form-row {
    margin-bottom: 16px;
}

.form-group {
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #555;
    font-size: 13px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #106ebe;
}

.submit-button {
    width: 100%;
    padding: 14px;
    background: #106ebe;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.submit-button:hover {
    background: #0d5aa1;
}

.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.button-icon {
    font-size: 16px;
}

#calc-message {
    margin-top: 16px;
}

.message {
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 13px;
}

.message.success {
    background: #d4edda;
    color: #155724;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
}

.calc-divider {
    display: none;
}

/* Responsywność */
@media (max-width: 1000px) {
    #resource-calc-pro-form {
        grid-template-columns: 1fr;
    }

    .calc-summary {
        order: 1;
    }

    .left-column {
        order: 2;
    }

    .contact-form-section {
        order: 3;
    }
}

@media (max-width: 768px) {
    .left-column {
        grid-template-columns: 1fr;
    }

    .resource-calculator-pro {
        margin: 20px 10px;
    }

    .calc-header {
        padding: 30px 20px;
    }

    .calc-header h2 {
        font-size: 26px;
    }

    .calc-slider-group {
        padding: 20px;
    }

    .total-price {
        font-size: 40px;
    }

    .calc-summary,
    .contact-form-section {
        padding: 24px 20px;
    }
}

