/* Product Quote Page Specific Styles */

/* Enhanced multi-select styling */
.form-quote select[multiple] {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 6px 12px;
    background-color: #fff;
    font-size: 14px;
    color: #495057;
    height: 34px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-quote select[multiple]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Dynamic form sections */
.form-group {
    transition: all 0.3s ease-in-out;
}

/* Selected category styling */
.selected-category {
    background-color: #e3f2fd !important;
    border-radius: 4px;
    transform: scale(1.02);
    transition: all 0.2s ease;
}

.selected-category span {
    color: #1976d2 !important;
    font-weight: 600;
}

.selected-category input[type="checkbox"] {
    transform: scale(1.2);
}

/* No products selected message */
#no-products-selected .form-field p {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Product sections animation */
#petroleum-products, #chemicals-products, #construction-products, 
#plastic-products, #minerals-products, #agriculture-products {
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from { 
        opacity: 0; 
        transform: translateY(-20px); 
        max-height: 0;
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
        max-height: 200px;
    }
}

/* Enhanced product dropdown styling */
.form-quote select[multiple] option {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.form-quote select[multiple] option:hover {
    background-color: #f8f9fa;
}

.form-quote select[multiple] option:selected {
    background-color: #007bff;
    color: white;
}


/* Form validation enhancements */
.form-results {
    margin-top: 15px;
    border-radius: 6px;
    animation: slideDown 0.3s ease-out;
}

/* Product categories hover effects */
.form-quote .form-field ul li:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
    transform: translateX(5px);
    transition: all 0.2s ease;
}

/* Product categories styling */
.product-info-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.product-info-box h4 {
    color: #007bff;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.product-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-categories li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    line-height: 1.4;
}

.product-categories li:last-child {
    border-bottom: none;
}

.product-categories strong {
    color: #333;
    display: inline-block;
    min-width: 120px;
}

/* Quote benefits styling */
.quote-benefits {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.quote-benefits h4 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    padding: 5px 0;
    font-size: 14px;
    color: #333;
}

/* Form enhancements */
.form-quote h4 {
    color: #007bff;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

.form-quote .form-group:first-of-type h4 {
    margin-top: 15px;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .product-info-box {
        margin-bottom: 20px;
        padding: 15px;
    }
    
    .quote-benefits {
        margin-top: 20px;
        padding: 15px;
    }
    
    .form-quote select[multiple] {
        height: 80px !important;
    }
}

/* Form field labels */
.form-quote .form-field p {
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* Enhanced checkbox styling */
.form-quote .form-field ul li {
    margin-bottom: 8px;
}

.form-quote .form-field ul li input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
}

/* Contact section enhancements */
.contact-details h3 {
    color: #007bff;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

/* Button styling */
.form-quote .btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.form-quote .btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}