.job main .apply-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
    color: rgba(12, 25, 55, 1);
    overflow-y: auto;
    padding: 20px;
    direction: rtl;
}

.apply-popup-overlay.active {
    opacity: 1;
}

.apply-popup-container {
    background-color: #fff;
    padding: 80px;
    border-radius: 24px;
    position: relative;
    transform: translateY(50px) scale(0.8);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), 
                opacity 0.4s ease-in-out;
    will-change: transform, opacity;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.apply-popup-container:has(.apply-popup-content-formassembly:not([style*="display: none"])) {
    padding: var(--container-padding-block) var(--container-padding-inline);
}

.apply-popup-overlay.active .apply-popup-container {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.apply-popup-close {
    position: absolute;
    top: 24px;
    left: 24px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    /* padding: 5px; */
    line-height: 1;
    transition: color 0.2s ease;
}

.apply-popup-close:hover {
    color: #000;
}

.apply-popup-content h3 {
    font-family: Larken;
    font-weight: 400;
    font-size: 40px;
    line-height: 103%;
    text-align: right;
    vertical-align: middle;
    margin-bottom: 24px;
}

.apply-popup-content .popup-subtitle {
    font-family: CircularXX TT, sans-serif;
    font-weight: 450;
    font-size: 16px;
    line-height: 150%;
    text-align: right;
    margin-bottom: 24px;
}

.apply-popup-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.apply-popup-links a {
    text-decoration: none;
    display: block;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 48px;
    background: rgba(0, 21, 74, 1);
    color: white;
    font-family: CircularXX TT, sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 150%;
    border-radius: 24px;
    border: 1px solid rgba(180, 184, 193, 1);
    margin-bottom: 15px;
    padding-inline: 48px;
}

@media (max-width: 768px) {
    .apply-popup-links a {
        padding-inline: 24px;
    }
}

.apply-popup-links a:last-child {
    margin-bottom: 0;
}

.apply-popup-links a:nth-child(even) {
    background: rgba(255, 255, 255, 1);
    color: rgba(12, 25, 55, 1);
    border: 1px solid rgba(180, 184, 193, 1);
}

.apply-popup-content .popup-no-form-found {
    font-family: CircularXX TT, sans-serif;
    font-weight: 450;
    font-size: 14px;
    line-height: 150%;
    text-align: center;
}


@media (max-width: 768px) {
    .excel main .apply-popup-overlay {
        padding: 16px;
    }

    .apply-popup-container {
        padding: 64px 24px 32px;
        width: 295px;
        max-height: calc(100vh - 64px);
    }

    /*.apply-popup-content .form-assembly-wrapper .wFormContainer .wForm .wFormTitle{*/
    /*    text-align: center;*/
    /*}*/

    .apply-popup-container:has(form){
        padding: 64px 24px 32px;
        width: 100%;
    }

    .apply-popup-container:has(form) .apply-popup-content {
        min-width: unset;
        width: 100%;
        max-width: 100%;
    }

    .apply-popup-content h3 {
        font-size: 24px;
        line-height: 103%;
        margin-bottom: 24px;
    }
    
    
}

/* Form Styles */
.popup-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
}
