/* Video Modal Styles */
.cg-video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.cg-video-modal.active {
    display: block;
}

.cg-video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.cg-video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
    background: #000;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
    font-family: inherit;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cg-video-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cg-video-modal-close:hover {
    background: #fff;
    transform: rotate(90deg);
    color: #000;
}

.cg-video-modal-title {
    padding: 20px 25px;
    background: #000;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 1px solid #333;
    font-family: inherit;
}

.cg-video-modal-body {
    padding: 0;
    background: #000;
}

.cg-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.cg-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Trigger button default styling */
.cgbtn.cgbtn-green-border {
    display: inline-block;
    padding: 12px 24px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
}

.cgbtn.cgbtn-green-border:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.cgbtn.cgbtn-green-border:active {
    transform: translateY(0);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .cg-video-modal-content {
        width: 95%;
        margin: 20px auto;
    }
    
    .cg-video-modal-title {
        font-size: 18px;
        padding: 15px 20px;
    }
    
    .cg-video-modal-close {
        width: 35px;
        height: 35px;
        font-size: 24px;
        top: 10px;
        right: 10px;
    }
}

/* Prevent body scroll when modal is open */
body.cg-modal-open {
    overflow: hidden;
}
