/* Contact Form Enhancements */
.contact-form .form-control {
    border: 2px solid #e8ecef;
    transition: all 0.3s ease;
    padding: 15px;
    font-size: 16px;
}

.contact-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    transform: translateY(-2px);
}

.contact-form .form-label {
    margin-bottom: 8px;
    color: #333;
}

.contact-form .btn-xl {
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.contact-form .btn-xl:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

/* Modal Enhancements */
.modal-content {
    border-radius: 15px;
}

.modal-body .fas {
    animation: modalIconPulse 2s ease-in-out;
}

@keyframes modalIconPulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Form Container Enhancement */
.bg-white.border-radius {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Product Detail Page Styles */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    padding: 10px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.product-image img {
    transition: transform 0.3s ease;
}

.product-image:hover img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
}

.badge-premium {
    font-size: 0.9rem;
    padding: 10px 15px;
    border-radius: 25px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border: 2px solid #ffffff;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    animation: badgeGlow 2s ease-in-out infinite;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-premium .fa-crown {
    color: #ffd700;
    animation: crownShine 2s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3); 
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5); 
        transform: scale(1.02);
    }
}

@keyframes crownShine {
    0%, 100% { color: #ffd700; }
    50% { color: #ffed4e; }
}

.product-info {
    margin-top: 20px;
}

.product-info.p-4 {
    margin-left: 20px;
    border-radius: 15px;
    border: 1px solid #f8f9fa;
}

.product-category .badge {
    font-size: 0.8rem;
    padding: 8px 16px;
    border-radius: 20px;
}

.product-rating {
    display: flex;
    align-items: center;
}

.product-features ul li {
    padding: 8px 0;
    font-size: 1rem;
    color: #666;
}

.product-features ul li i {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #e7f3ff;
}

/* Product Types Cards */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-box-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product Grid Enhancements */
.product {
    transition: all 0.3s ease;
}

.product:hover {
    transform: translateY(-3px);
}

.product-thumb-info {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.product-thumb-info-image {
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.product-thumb-info:hover .product-thumb-info-image {
    transform: scale(1.05);
}

/* Enhanced Quote Button */
.btn-quote-pulse {
    position: relative;
    overflow: hidden;
    animation: quotePulse 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

.btn-quote-pulse:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    animation: none;
}

.btn-quote-pulse .fa-calculator {
    animation: iconBounce 2s ease-in-out infinite;
}

.btn-quote-pulse .fa-whatsapp {
    color: #25d366;
    animation: whatsappPulse 2s ease-in-out infinite;
}

@keyframes quotePulse {
    0% { box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3); }
    50% { box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5); }
    100% { box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3); }
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes whatsappPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.bg-white.border-radius:hover {
    transform: translateY(-5px);
}

/* WhatsApp Input Enhancement */
input[name="whatsapp"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2325d366'%3E%3Cpath d='M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.245 2.248 3.481 5.236 3.48 8.414-.003 6.557-5.338 11.892-11.893 11.892-1.99-.001-3.951-.5-5.688-1.448l-6.305 1.654zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884-.001 2.225.651 3.891 1.746 5.634l-.999 3.648 3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px 20px;
    padding-right: 45px;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .contact-form .btn-xl {
        width: 100%;
        margin-top: 10px;
    }
    
    .bg-white.border-radius {
        padding: 2rem !important;
    }
}

/* Loading State */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form Validation States */
.form-control.is-invalid {
    border-color: #dc3545;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Services Cards Styling - Using Theme Classes */
.section-default .card.bg-color-light {
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.section-default .card.bg-color-light:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.section-default .card .icons {
    transition: all 0.3s ease;
}

.section-default .card:hover .icons {
    transform: scale(1.1);
}

/* Enhanced Energy Trading Page Styles */
.custom-image-container {
    position: relative;
    overflow: hidden;
}

.custom-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,123,255,0.1) 0%, rgba(0,123,255,0.05) 100%);
    z-index: 1;
}

.feature-box-reverse {
    align-items: center !important;
}

.feature-box-icon.bg-primary {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-box-info h5 {
    font-weight: 600;
}

/* Counter Animations */
.counter strong {
    display: block;
    font-size: 3rem;
    line-height: 1.2;
}

/* Icon Container Animations */
.icon-container {
    transition: all 0.3s ease;
}

.card:hover .icon-container {
    transform: scale(1.05);
}

/* Statistics Section */
.counter {
    transition: all 0.3s ease;
}

.counter:hover {
    transform: translateY(-5px);
}

/* Button Enhancements */
.btn-modern.btn-xl {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-modern.btn-xl::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease;
}

.btn-modern.btn-xl:hover::before {
    left: 100%;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .text-8 {
        font-size: 2.5rem !important;
    }
    
    .text-6 {
        font-size: 2rem !important;
    }
    
    .custom-image-container {
        margin-bottom: 2rem;
    }
    
    .feature-box-reverse {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .feature-box-icon.bg-primary {
        margin-bottom: 1rem !important;
        margin-right: 0 !important;
    }
}

/* Loading States */
.img-fluid[loading="lazy"] {
    transition: opacity 0.3s ease;
}

/* Accessibility Improvements */
.btn:focus,
.btn.focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Smooth Scroll Enhancement */
html {
    scroll-behavior: smooth;
}

/* Page Header Animation */
.page-header.page-header-modern {
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Enhanced breadcrumb */
.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1.2rem;
}

.breadcrumb-item.active {
    font-weight: 600;
}

/* Card Shadow Enhancement */
.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Background Pattern */
.bg-pattern {
    background-image: radial-gradient(circle at 25px 25px, rgba(255,255,255,0.1) 2px, transparent 0);
    background-size: 50px 50px;
}