/* Video Popup Styles */
.video-popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050; /* Higher than other elements */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-popup-container.active {
    opacity: 1;
    visibility: visible;
}

.video-popup {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 800px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
    border-top: 4px solid #000;
}

.video-popup-container.active .video-popup {
    transform: scale(1);
}

.video-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    transition: background-color 0.3s ease;
}

.video-popup-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.video-popup-content {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    position: relative;
}

#service-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-popup {
        width: 95%;
        max-width: 600px;
    }
}

@media (max-width: 480px) {
    .video-popup-close {
        top: 5px;
        right: 10px;
        font-size: 24px;
    }
}