#chiptuning-form {
    max-width: 800px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

#chiptuning-form h3 {
    color: #0073aa;
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
}

.form-section {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-section h4 {
    color: #0073aa;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 8px;
}

.form-section h5 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: bold;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-row input, .form-row select, .form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

.form-row select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* Features Section Styling */
.feature-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

/* Switch Styling */
.switch-label {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: normal !important;
    margin: 0;
}

.switch-label input[type="checkbox"] {
    display: none;
}

.switch-slider {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 24px;
    margin-right: 12px;
    transition: background-color 0.3s;
}

.switch-slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.switch-label input[type="checkbox"]:checked + .switch-slider {
    background-color: #0073aa;
}

.switch-label input[type="checkbox"]:checked + .switch-slider:before {
    transform: translateX(26px);
}

/* DTC Input Styling */
#dtc-input input {
    margin-left: 62px;
    width: calc(100% - 62px);
}

/* Dynamic Price Display */
.price-sticky {
    position: sticky;
    top: 20px;
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
    z-index: 100;
    animation: slideInDown 0.5s ease-out;
}

.price-content {
    padding: 20px 25px;
    text-align: center;
}

.price-label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 8px;
}

.price-value {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.price-breakdown-toggle {
    cursor: pointer;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    user-select: none;
}

.price-breakdown-toggle:hover {
    opacity: 1;
}

.price-breakdown-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
    animation: fadeIn 0.3s ease-in;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Pricing Section */
#pricing-section {
    background: #f1f8ff;
    border-left: 4px solid #0073aa;
}

#price-breakdown {
    font-size: 14px;
}

#price-details {
    margin-bottom: 15px;
    line-height: 1.6;
}

#total-price {
    font-size: 20px;
    font-weight: bold;
    color: #0073aa;
    text-align: right;
    padding: 10px 0;
    border-top: 2px solid #0073aa;
}

/* Submit Button */
.submit-row {
    text-align: center;
    margin-top: 30px;
}

.button {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.button:hover {
    background: linear-gradient(135deg, #005a87, #004166);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.button:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    #chiptuning-form {
        margin: 0 15px;
    }
    
    .form-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .form-section h3 {
        font-size: 20px;
    }
    
    .form-section h4 {
        font-size: 16px;
    }
    
    .switch-slider {
        width: 44px;
        height: 22px;
    }
    
    .switch-slider:before {
        height: 16px;
        width: 16px;
    }
    
    .switch-label input[type="checkbox"]:checked + .switch-slider:before {
        transform: translateX(22px);
    }
    
    #dtc-input input {
        margin-left: 56px;
        width: calc(100% - 56px);
    }
    
    /* Mobile adjustments for dynamic price display */
    .price-sticky {
        position: relative;
        top: 0;
        margin: 15px -15px 20px -15px;
    }
    
    .price-content {
        padding: 15px 20px;
    }
    
    .price-value {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .price-breakdown-details {
        font-size: 13px;
    }
}
