/* Contact Section Styles */

/* Elegant hover effects for contact links */
.hover-address-link {
    position: relative;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 4px 8px 4px 0;
    border-radius: 6px;
    overflow: hidden;
}

.hover-address-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 102, 0, 0.1), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.hover-address-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--c4s-orange), var(--c4s-yellow));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.hover-address-link:hover {
    transform: translateY(-2px);
    color: var(--c4s-dark) !important;
    background: rgba(255, 102, 0, 0.08);
    box-shadow: 0 4px 20px rgba(255, 102, 0, 0.15);
}

.hover-address-link:hover::before {
    left: 100%;
}

.hover-address-link:hover::after {
    width: 100%;
}

.hover-address-link:active {
    transform: translateY(0);
}

button.program-quote-btn {
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
    border: none !important;
    outline: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    z-index: 10 !important;
}

.program-quote-btn::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: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.program-quote-btn:hover::before {
    left: 100%;
}

.program-quote-btn:active {
    transform: scale(0.98) !important;
}

.program-quote-btn i {
    transition: transform 0.3s ease;
}

.program-quote-btn:hover i {
    transform: translateX(2px);
}

/* Enhanced hover effects for program quote buttons */
.program-quote-btn:hover {
    transform: translateY(-3px) scale(1.02) !important;
}

.program-quote-btn:active {
    transform: translateY(-1px) scale(0.98) !important;
}

/* Maps Directions Button */
.maps-iframe {
    position: relative;
}

.maps-directions-overlay {
    position: absolute;
    top: 5px;
    left: auto;
    right: 10px;
    bottom: auto;
    z-index: 20;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #1976d2;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.maps-directions-overlay:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.maps-directions-overlay i {
    font-size: 16px;
}

/* Hide our custom directions button and business info on larger screens where Maps has native controls */
@media (min-width: 1024px) {
    .maps-directions-overlay {
        display: none;
    }
    
    .maps-business-info {
        display: none;
    }
}

/* Show our custom directions button on mobile and tablet */
@media (max-width: 1023px) {
    .maps-directions-overlay {
        display: flex;
    }
    
    /* Custom business info overlay for mobile */
    .maps-business-info {
        position: absolute;
        top: 5px;
        left: 5px;
        right: 85px;
        z-index: 25;
        background: white;
        border-radius: 8px;
        padding: 12px;
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
        font-size: 14px;
        line-height: 1.4;
        min-height: 80px;
        backdrop-filter: blur(4px);
    }
    
    .maps-business-title {
        font-weight: 600;
        color: #1a73e8;
        margin-bottom: 4px;
        font-size: 16px;
    }
    
    .maps-business-address {
        color: #5f6368;
        margin-bottom: 6px;
        font-size: 13px;
    }
    
    .maps-business-rating {
        display: flex;
        align-items: center;
        gap: 4px;
        color: #137333;
        font-weight: 500;
    }
    
    .maps-business-stars {
        color: #fbbc04;
        font-size: 12px;
    }
}