/* Contact Forms Styling */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

.alert-dismissible .close {
    position: relative;
    top: -2px;
    right: -21px;
    color: inherit;
    background: none;
    border: none;
    font-size: 21px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
}

.text-danger {
    color: #a94442;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Quote form specific styles */
.rqa-form .alert {
    margin-bottom: 15px;
}

/* Product enquiry form styles */
.product-enquiry-section {
    background-color: #f8f9fa;
}

.enquiry-form-box {
    background: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-enquiry-form h4 {
    margin-bottom: 25px;
    color: #333;
    font-weight: 600;
}

.product-enquiry-form .form-group {
    margin-bottom: 20px;
}

.product-enquiry-form input,
.product-enquiry-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.product-enquiry-form input:focus,
.product-enquiry-form textarea:focus {
    outline: none;
    border-color: #fe0000;
    box-shadow: 0 0 0 2px rgba(254, 0, 0, 0.25);
}

.product-enquiry-form textarea {
    height: 120px;
    resize: vertical;
}

.product-enquiry-form button {
    background: #fe0000;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-enquiry-form button:hover {
    background: #dc0000;
    transform: translateY(-1px);
}

.product-enquiry-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.product-enquiry-form .spinner {
    margin-right: 10px;
}

/* Product info display */
.product-info {
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    border-radius: 0.375rem !important;
    padding: 1rem !important;
    margin-bottom: 1rem !important;
}

.product-info strong {
    color: #fe0000 !important;
    font-weight: 600;
}

/* Product CTA Section */
.product-cta-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

#scroll-to-quote {
    background: linear-gradient(45deg, #fe0000, #dc0000);
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(254, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#scroll-to-quote:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 0, 0, 0.4);
    background: linear-gradient(45deg, #dc0000, #b80000);
}

#scroll-to-quote:active,
#scroll-to-quote.active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(254, 0, 0, 0.3);
}

#scroll-to-quote .fa {
    transition: transform 0.3s ease;
}

#scroll-to-quote .fa-arrow-down {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-1px);
    }
}

#scroll-to-quote:hover .fa-arrow-down {
    animation: none;
    transform: translateY(2px);
}

/* Responsive button */
@media (max-width: 768px) {
    #scroll-to-quote {
        width: 100%;
        padding: 15px 20px;
        font-size: 18px;
    }
}

/* Contact form improvements */
.contact-form input,
.contact-form textarea {
    margin-bottom: 15px;
}

.contact-form .text-danger {
    margin-top: -10px;
    margin-bottom: 10px;
}

/* Button loading states */
.hvr-sweep-to-right {
    position: relative;
}

.hvr-sweep-to-right .spinner {
    display: inline-block;
    margin-right: 5px;
}

/* Quote section highlight */
#quote-section {
    transition: all 0.3s ease;
}

#quote-section.highlight {
    background-color: #fef7f7 !important;
    box-shadow: 0 0 20px rgba(254, 0, 0, 0.1);
}

/* Services section in single product page */
.services-section {
    border-top: 1px solid #e9ecef;
    padding-top: 0px;
    margin-top: 1rem;
}

.services-section h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
}

.service-item {
    padding: 18px 20px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
    background: #fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    min-height: 70px;
}

.service-item:hover {
    border-color: #fe0000;
    box-shadow: 0 3px 12px rgba(254, 0, 0, 0.15);
    transform: translateY(-2px);
}

.service-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 12px;
}

.service-icon i {
    font-size: 20px;
    color: #fe0000 !important;
}

.service-content {
    flex: 1;
    display: flex;
    align-items: center;
}

.service-content h6 {
    font-size: 18px;
    margin-bottom: 0;
    line-height: 1.4;
    font-weight: 700;
}

.service-content h6 a {
    color: #333;
    font-weight: 700;
    text-decoration: none;
    display: block;
    padding: 2px 0;
}

.service-content h6 a:hover {
    color: #fe0000;
    text-decoration: none;
}

.service-content small {
    display: none;
}

/* View All Services Button */
.services-section .btn-primary {
    background: #fe0000 !important;
    border-color: #fe0000 !important;
    color: white !important;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.services-section .btn-primary:hover {
    background: #dc0000 !important;
    border-color: #dc0000 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(254, 0, 0, 0.3);
}

.services-section .btn-primary:active,
.services-section .btn-primary:focus {
    background: #b80000 !important;
    border-color: #b80000 !important;
    box-shadow: 0 2px 10px rgba(254, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .enquiry-form-box {
        padding: 20px;
    }
    
    .product-enquiry-section .sec-title {
        margin-bottom: 30px;
    }
    
    .service-item {
        margin-bottom: 15px;
    }
}
