/* ══════════════════════════════════════════════════════════
   REUSABLE PROMO VIDEO POPUP COMPONENT
   Include this file + js/promo-video-popup.js on any page.
   Markup needed (see auto-relationship-software.aspx for a live example):

   <div class="promo-video-overlay" id="promoVideoOverlay" role="dialog"
        aria-modal="true" aria-label="Promo video"
        data-video-id="YOUTUBE_VIDEO_ID"
        data-video-title="Some title for analytics/accessibility">
     <div class="promo-video-modal">
       <button type="button" class="promo-video-close" id="promoVideoClose" aria-label="Close video"><i class="fas fa-times"></i></button>
       <div class="promo-video-ratio" id="promoVideoRatio">
         <img class="promo-video-poster" alt="Promo video" />
         <button type="button" class="promo-video-play" id="promoVideoPlay" aria-label="Play promo video"><i class="fas fa-play"></i></button>
       </div>
       <p class="promo-video-caption">Caption text</p>
     </div>
   </div>

   To change the video on a page later: just edit data-video-id (and
   data-video-title) on #promoVideoOverlay — nothing else needs to change.
   Colors below are self-contained (--pv-* custom properties scoped to
   .promo-video-overlay) so this component is safe to drop into any page
   regardless of that page's own CSS variables.
   ══════════════════════════════════════════════════════════ */
.promo-video-overlay {
    --pv-primary: #0088cc;
    --pv-danger: #ef4444;
    --pv-text-dark: #1a1f36;
    --pv-radius: 12px;
    --pv-radius-lg: 20px;
    --pv-shadow-md: 0 8px 30px rgba(0,0,0,0.10);
    --pv-shadow-lg: 0 20px 60px rgba(0,0,0,0.14);

    position: fixed;
    inset: 0;
    background: rgba(10,22,40,0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease;
}

    .promo-video-overlay.open {
        opacity: 1;
        visibility: visible;
    }

.promo-video-modal {
    background: #fff;
    border-radius: var(--pv-radius-lg);
    box-shadow: var(--pv-shadow-lg);
    max-width: 860px;
    width: 100%;
    padding: 16px;
    position: relative;
    transform: scale(.94);
    transition: transform .3s ease;
}

    .promo-video-overlay.open .promo-video-modal {
        transform: scale(1);
    }

.promo-video-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: var(--pv-text-dark);
    border: none;
    box-shadow: var(--pv-shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    z-index: 2;
    transition: all .2s;
}

    .promo-video-close:hover {
        background: var(--pv-danger);
        color: #fff;
    }

.promo-video-ratio {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: var(--pv-radius);
    overflow: hidden;
    background: #000;
}

    .promo-video-ratio iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

.promo-video-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    color: var(--pv-primary);
    border: none;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0,0,0,0.35);
    transition: all .2s;
}

    .promo-video-play i {
        margin-left: 4px;
    }

    .promo-video-play:hover {
        background: var(--pv-primary);
        color: #fff;
        transform: translate(-50%, -50%) scale(1.08);
    }

.promo-video-caption {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--pv-text-dark);
    margin: 14px 0 4px;
}

@media (max-width:575px) {
    .promo-video-modal {
        padding: 12px;
    }

    .promo-video-close {
        top: -14px;
        right: -6px;
    }

    .promo-video-play {
        width: 58px;
        height: 58px;
        font-size: 18px;
    }
}
