/* Contact Us Widget Styles */
.contact-us-widget {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: auto !important;
}

.contact-us-widget.elementor-view-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .elementor-grid-columns-tablet-1 .contact-us-widget {
        grid-template-columns: repeat(1, 1fr) !important;
    }
    .elementor-grid-columns-tablet-2 .contact-us-widget {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .elementor-grid-columns-tablet-3 .contact-us-widget {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .elementor-grid-columns-tablet-4 .contact-us-widget {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    .elementor-grid-columns-tablet-5 .contact-us-widget {
        grid-template-columns: repeat(5, 1fr) !important;
    }
    .elementor-grid-columns-tablet-6 .contact-us-widget {
        grid-template-columns: repeat(6, 1fr) !important;
    }
}

@media (max-width: 767px) {
    .elementor-grid-columns-mobile-1 .contact-us-widget {
        grid-template-columns: repeat(1, 1fr) !important;
    }
    .elementor-grid-columns-mobile-2 .contact-us-widget {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .elementor-grid-columns-mobile-3 .contact-us-widget {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .elementor-grid-columns-mobile-4 .contact-us-widget {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    .elementor-grid-columns-mobile-5 .contact-us-widget {
        grid-template-columns: repeat(5, 1fr) !important;
    }
    .elementor-grid-columns-mobile-6 .contact-us-widget {
        grid-template-columns: repeat(6, 1fr) !important;
    }
}

.contact-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-item:hover::before {
    opacity: 1;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-icon i, 
.contact-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
    color: inherit;
}

/* Force icon color to inherit from parent */
.contact-icon i:before,
.contact-icon svg {
    color: inherit !important;
    fill: currentColor !important;
}

/* For Font Awesome icons */
.contact-icon i.fas,
.contact-icon i.far,
.contact-icon i.fab {
    color: inherit !important;
}

.contact-title {
    transition: all 0.3s ease;
    font-weight: 500;
}

/* RTL Support */
.rtl .contact-icon {
    margin-left: 10px;
    margin-right: 0;
}

/* Responsive Styles */
@media (max-width: 767px) {
    .elementor-view-grid .contact-us-widget {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Add some default animations */
.elementor-animation-pulse:hover {
    animation: pulse 1.5s infinite;
}

.elementor-animation-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Staggered animations for items */
.contact-us-widget .contact-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.contact-us-widget .contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-us-widget .contact-item:nth-child(2) { animation-delay: 0.2s; }
.contact-us-widget .contact-item:nth-child(3) { animation-delay: 0.3s; }
.contact-us-widget .contact-item:nth-child(4) { animation-delay: 0.4s; }
.contact-us-widget .contact-item:nth-child(5) { animation-delay: 0.5s; }
