.ctl-popup-overlay {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.72);

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    box-sizing: border-box;

    z-index: 999999;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


.ctl-popup-overlay.ctl-popup-open {
    opacity: 1;
    visibility: visible;
}


.ctl-popup-container {
    position: relative;

    width: 100%;
    max-width: 850px;

    max-height: 90vh;

    background: #ffffff;

    border-radius: 10px;

    overflow: auto;

    padding: 40px;

    box-sizing: border-box;

    transform: translateY(20px);

    transition: transform 0.25s ease;
}


.ctl-popup-open .ctl-popup-container {
    transform: translateY(0);
}


.ctl-popup-close {
    position: absolute;

    top: 12px;
    right: 15px;

    width: 36px;
    height: 36px;

    border: none;

    background: #f1f1f1;

    border-radius: 50%;

    font-size: 25px;

    line-height: 36px;

    text-align: center;

    cursor: pointer;

    z-index: 2;
}


.ctl-popup-close:hover {
    background: #e2e2e2;
}


.ctl-popup-body {
    width: 100%;
}


.ctl-popup-client-logo {
    display: block;

    max-width: 180px;
    max-height: 100px;

    width: auto;
    height: auto;

    margin: 0 auto 25px;
}


.ctl-popup-client-name {
    text-align: center;

    font-size: 22px;

    font-weight: 700;

    margin-bottom: 5px;
}


.ctl-popup-client-meta {
    text-align: center;

    font-size: 14px;

    color: #666;

    margin-bottom: 25px;
}


.ctl-popup-testimonial {
    font-size: 17px;

    line-height: 1.7;

    color: #333;
}


.ctl-popup-letterhead {
    display: block;

    max-width: 100%;

    height: auto;

    margin: 0 auto;
}


.ctl-popup-pdf {
    width: 100%;

    height: 600px;

    border: none;
}


/* Mobile popup */

@media (max-width: 767px) {

    .ctl-popup-overlay {
        padding: 10px;
    }

    .ctl-popup-container {
        max-height: 92vh;

        padding: 35px 20px 25px;

        border-radius: 8px;
    }

    .ctl-popup-client-logo {
        max-width: 140px;
        max-height: 80px;
    }

    .ctl-popup-client-name {
        font-size: 19px;
    }

    .ctl-popup-testimonial {
        font-size: 15px;
        line-height: 1.6;
    }

    .ctl-popup-pdf {
        height: 500px;
    }

    .ctl-popup-close {
        top: 8px;
        right: 8px;
    }
}