.hero-popup-video-block {
    position: relative;
    height: 853px;
    display: flex;
    padding: 2rem 1rem 53px;
    margin-top: 0;
    background-color: #000;
}

.hero-popup-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 5;
}

#hero-popup-media-video {
    opacity: .7;
}

.hero-banner-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-popup-video-heading {
    position: relative;
    margin-bottom: 95px;
}

.hero-popup-heading {
    color: #FBEFC1;
    font-size: 2rem;
    font-weight: 800;
}

.hero-banner-video-desc {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-popup-desc {
    font-size: 1.125rem;
}

.hero-popup-video-button {
    position: absolute;
    right: -3rem;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wp--preset--color--accent-4);
    transition: all 0.3s ease;
    padding: 0;
}

.hero-popup-video-button:hover {
    background-color: var(--wp--preset--color--accent-2);
    transform: translateY(-50%) scale(1.1);
}

.hero-popup-video-button svg {
    width: 20px;
    height: 20px;
    margin-left: 2px;
}

.hero-popup-video-bottom {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}


.hero-popup-trustpilot {
    display: flex;
    align-items: center;
}

.hero-popup-trustpilot * {
    margin: 0;
}

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

.hero-popup-video-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-popup-video-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    z-index: 100000;
}

.hero-popup-video-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--wp--preset--color--accent-2);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    padding: 0;
}

.hero-popup-video-close:hover {
    opacity: 0.7;
}

.hero-popup-video-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-popup-video-container iframe,
.hero-popup-video-container video {
    width: 100%;
    height: 100%;
    border: none;
}

.hero-popup-trustpilot .gutensuite-reviewkit_fpln_common {
    border: none;
    padding: 0;
    font-family: var(--wp--preset--font-family--roboto);
    color: var(--gold-400);
    font-size: 0.75rem;
}

.hero-popup-trustpilot .gutensuite-reviewkit_fpln_mc .gutensuite-reviewkit_fpln_mc_inner_right {
    display: none !important;
}

@media ( min-width: 768px) {
    .hero-popup-heading {
        font-size: 2.5rem;
    }
}

@media ( min-width: 1024px ) {
    .hero-popup-video-block {
        height: 870px;
        padding: 5rem 1.25rem;
    }

    .hero-popup-desc,
    .hero-popup-heading {
        max-width: 664px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-popup-video-block:before,
    .hero-popup-video-block:after {
        display: block;
        width: 100%;
        height: 80px;
        position: absolute;
        z-index: 1;
        left: 0;
    }

    .hero-popup-video-block:before {
        top: 0;
        content:" ";
        background: url('../../../assets/images/banner-corner-lefttop.svg') no-repeat 20px 20px / 60px 60px, url('../../../assets/images/banner-corner-righttop.svg') no-repeat calc(100% - 20px) 20px / 40px 40px;
    }

    .hero-popup-video-block:after {
        bottom: 0;
        content:" ";
        background: url('../../../assets/images/banner-corner-leftbot.svg') no-repeat 20px calc(100% - 20px) / 60px 60px, url('../../../assets/images/banner-corner-rightbot.svg') no-repeat calc(100% - 20px) calc(100% - 20px) / 60px 60px;
    }
    .hero-popup-trustpilot .gutensuite-reviewkit_fpln_mc .gutensuite-reviewkit_fpln_mc_inner_right {
        display: flex !important;
} 
}

@media ( min-width: 1280px ) {
    .hero-popup-heading {
        font-size: 2.875rem;
    }
    .hero-popup-heading {
        max-width: 986px;
    }

    .hero-popup-desc {
        max-width: 604px;
        font-size: 1.5rem;
        font-weight: 300;
        line-height: 26px;
    }

    .hero-popup-video-block:before,
    .hero-popup-video-block:after {
        height: 112px;
    }

    .hero-popup-video-block:before {
        top: 0;
        left: 0;
        content:" ";
        background: url('../../../assets/images/banner-corner-lefttop.svg') no-repeat 30px 30px / 80px 80px, url('../../../assets/images/banner-corner-righttop.svg') no-repeat calc(100% - 30px) 30px / 80px 80px;
    }

    .hero-popup-video-block:after {
        bottom: 0;
        left: 0;
        content:" ";
        background: url('../../../assets/images/banner-corner-leftbot.svg') no-repeat 30px calc(100% - 30px) / 80px 80px, url('../../../assets/images/banner-corner-rightbot.svg') no-repeat calc(100% - 30px) calc(100% - 30px) / 80px 80px;
    }
    .hero-popup-video-block {
        height: 900px;
    }
}

@media ( min-width: 1440px ) {
    .hero-popup-video-block {
        height: 100vh;
    }
    body.logged-in .hero-popup-video-block {
        height: calc(100vh - 32px);
    }
    .hero-banner-video-desc {
        justify-content: flex-start;
    }
    .hero-popup-video-heading {
        margin-top: 152px;
    }
    .hero-popup-heading {
        font-size: 3.125rem;
    }

    .hero-popup-video-block:before,
    .hero-popup-video-block:after {
        height: 178px;
    }

    .hero-popup-video-block:before {
        top: 0;
        content:" ";
        background: url('../../../assets/images/banner-corner-lefttop.svg') no-repeat 40px 40px / 137px 137px, url('../../../assets/images/banner-corner-righttop.svg') no-repeat calc(100% - 40px) 40px / 137px 137px;
    }

    .hero-popup-video-block:after {
        bottom: 0;
        content:" ";
        background: url('../../../assets/images/banner-corner-leftbot.svg') no-repeat 40px calc(100% - 40px) / 137px 137px, url('../../../assets/images/banner-corner-rightbot.svg') no-repeat calc(100% - 40px) calc(100% - 40px) / 137px 137px;
    }
}


@media ( min-width: 1536px ) {
    .hero-popup-video-heading {
        margin-top: 220px;
    }
}
