.job-popup-overlay{

    position:fixed;
    inset:0;

    display:flex;
    justify-content:center;
    align-items:center;

    background:rgba(0,0,0,.75);

    backdrop-filter:blur(8px);

    z-index:999999;

    opacity:0;
    visibility:hidden;

    transition:.35s ease;

}

.job-popup-overlay.show{

    opacity:1;
    visibility:visible;

}

.job-popup{

    position:relative;

    width:90%;
    max-width:500px; /* Reduced from 650px */

    max-height:90vh;

    overflow:hidden;

    border-radius:18px;

    background:#111;

    border:1px solid rgba(255,255,255,.08);

    box-shadow:
        0 20px 60px rgba(0,0,0,.5),
        0 0 35px rgba(249,161,27,.25);

    transform:scale(.92);

    transition:.35s ease;

}

.job-popup-overlay.show .job-popup{

    transform:scale(1);

}

.job-popup-image{

    width:100%;

    overflow:hidden;

    display:flex;

    justify-content:center;

    align-items:center;

    background:#111;

}

.job-popup-image img{

    display:block;

    width:100%;

    height:auto;

    max-height:55vh; /* Keeps image from taking over the screen */

    object-fit:contain;

}

.job-popup-footer{

    padding:22px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:20px;

    flex-wrap:wrap;

}

.job-apply-btn{

    background:#f9a11b;

    color:#fff;

    padding:14px 34px;

    border-radius:10px;

    text-decoration:none;

    font-weight:700;

    font-size:17px;

    transition:.25s;

}

.job-apply-btn:hover{

    background:#ffb63a;

    transform:translateY(-2px);

    box-shadow:0 10px 25px rgba(249,161,27,.35);

}

.job-popup-close{

    position:absolute;

    top:14px;
    right:14px;

    width:42px;
    height:42px;

    border:none;

    border-radius:50%;

    background:rgba(0,0,0,.55);

    color:#fff;

    font-size:24px;

    cursor:pointer;

    transition:.25s;

    z-index:5;

}

.job-popup-close:hover{

    background:#f9a11b;

}

.dont-show{

    color:#fff;

    font-size:14px;

    display:flex;

    align-items:center;

    gap:10px;

}

.dont-show input{

    accent-color:#f9a11b;

}

@media(max-width:768px){

    .job-popup{

        width:95%;

        max-width:380px;

        max-height:90vh;

        overflow:auto;

    }

    .job-popup-image img{

        max-height:45vh;

    }

    .job-popup-footer{

        flex-direction:column;

        align-items:stretch;

    }

    .job-apply-btn{

        width:100%;

        text-align:center;

    }

}
