/* ===== MCR Video Tutorial CTA + Modal ===== */

.mcr-video-cta {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #cf2e2e 0%, #a82a2a 100%);
    color: #ffffff;
    padding: 18px 22px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(207, 46, 46, 0.25);
    margin: 0 auto 28px;
    max-width: 1200px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
    user-select: none;
}

/* Hidden until JS relocates it from wp_footer to above content */
.mcr-video-cta--pending {
    display: none;
}

/* Sticky variant: stays in view as the user scrolls the services page */
.mcr-video-cta--sticky {
    position: sticky;
    top: 12px;
    z-index: 9500;
    margin-top: 18px;
    margin-bottom: 18px;
}

@media (max-width: 600px) {
    .mcr-video-cta--sticky {
        top: 8px;
    }
}

.mcr-video-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(207, 46, 46, 0.35);
}

.mcr-video-cta:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.mcr-video-cta-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: mcrVideoPulse 2.4s ease-in-out infinite;
}

@keyframes mcrVideoPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}

.mcr-video-cta-text {
    flex: 1;
    min-width: 0;
}

.mcr-video-cta-eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
    opacity: 0.85;
    margin-bottom: 4px;
}

.mcr-video-cta-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 2px;
}

.mcr-video-cta-sub {
    font-size: 13px;
    opacity: 0.9;
}

.mcr-video-cta-action {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 9px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: background 0.2s ease;
}

.mcr-video-cta:hover .mcr-video-cta-action {
    background: rgba(255, 255, 255, 0.28);
}

@media (max-width: 600px) {
    .mcr-video-cta {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px;
    }
    .mcr-video-cta-icon {
        width: 40px;
        height: 40px;
    }
    .mcr-video-cta-icon svg {
        width: 36px;
        height: 36px;
    }
    .mcr-video-cta-title {
        font-size: 16px;
    }
    .mcr-video-cta-sub {
        font-size: 12px;
    }
    .mcr-video-cta-action {
        width: 100%;
        text-align: center;
        order: 3;
    }
}

/* ===== Modal ===== */

.mcr-video-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: mcrVideoFadeIn 0.2s ease;
}

.mcr-video-modal[hidden] {
    display: none;
}

@keyframes mcrVideoFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.mcr-video-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.mcr-video-modal-content {
    position: relative;
    width: min(960px, 92vw);
    max-height: 90vh;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.mcr-video-modal-player {
    display: block;
    width: 100%;
    max-height: 90vh;
    background: #000;
}

.mcr-video-modal-close {
    position: absolute;
    top: -42px;
    right: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 12px;
    z-index: 2;
    transition: opacity 0.2s ease;
    opacity: 0.85;
}

.mcr-video-modal-close:hover {
    opacity: 1;
}

@media (max-width: 600px) {
    .mcr-video-modal-content {
        width: 96vw;
    }
    .mcr-video-modal-close {
        top: -38px;
        font-size: 32px;
    }
}
