/* Website Cost Calculator Styles */
.wpwc-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.wpwc-calculator {
    flex: 1;
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e1e5e9;
}

.wpwc-right-image {
    flex: 0 0 350px;
    margin-top: 20px;
}

.wpwc-right-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.wpwc-calculator h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: 600;
    border-left: 4px solid #3498db;
    padding-left: 12px;
}

/* Range Slider Styles */
.wpwc-calculator input[type="range"] {
    width: 100%;
    height: 8px;
    margin: 15px 0;
    background: #ecf0f1;
    border-radius: 10px;
    outline: none;
    -webkit-appearance: none;
}

.wpwc-calculator input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.wpwc-calculator input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.wpwc-calculator p {
    color: #7f8c8d;
    margin: 5px 0;
    font-size: 0.95em;
}

/* Toggle Switches Container */
.switches {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.switches label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.switches label:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

/* Toggle Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-switch {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider-switch:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider-switch {
    background-color: #27ae60;
}

input:checked + .slider-switch:before {
    transform: translateX(26px);
}

/* Two Column Layout */
.flex-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.flex-2-col > div {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

/* Total Display */
.total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    margin: 30px 0;
    font-size: 1.4em;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.total-value {
    font-size: 1.6em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Form Styles */
#wpwc-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

#wpwc-form input {
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
}

#wpwc-form input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

#wpwc-form input::placeholder {
    color: #a0a0a0;
}

#wpwc-form button {
    padding: 18px 30px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#wpwc-form button:hover {
    background: linear-gradient(135deg, #219653, #27ae60);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(39, 174, 96, 0.3);
}

#wpwc-form button:active {
    transform: translateY(-1px);
}

/* Response Messages */
#wpwc-response {
    margin-top: 20px;
}

.wpwc-success {
    padding: 15px 20px;
    background: #d4edda;
    color: #155724;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    font-weight: 500;
}

.wpwc-error {
    padding: 15px 20px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    font-weight: 500;
}

/* Loading State */
.wpwc-loading {
    padding: 15px 20px;
    background: #d1ecf1;
    color: #0c5460;
    border-radius: 8px;
    border: 1px solid #bee5eb;
    text-align: center;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .wpwc-wrapper {
        gap: 30px;
        padding: 15px;
    }
    
    .wpwc-right-image {
        flex: 0 0 300px;
    }
}

@media (max-width: 768px) {
    .wpwc-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .wpwc-calculator {
        padding: 25px;
    }
    
    .wpwc-right-image {
        flex: none;
        width: 100%;
        text-align: center;
        order: -1;
    }
    
    .flex-2-col {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .switches {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .total {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }
    
    .total-value {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .wpwc-wrapper {
        padding: 10px;
    }
    
    .wpwc-calculator {
        padding: 20px 15px;
    }
    
    .wpwc-calculator h3 {
        font-size: 1.1em;
    }
    
    #wpwc-form button {
        padding: 15px 20px;
        font-size: 16px;
    }
}

/* Animation for value changes */
@keyframes highlight {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.value-changed {
    animation: highlight 0.3s ease-in-out;
    color: #e74c3c;
    font-weight: bold;
}