﻿.floating-popup {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    width: 280px;
    transition: opacity 0.25s ease, transform 0.25s ease;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
}
    .floating-popup.is-visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .floating-popup.is-hidden {
        opacity: 0;
        pointer-events: none;
        transform: translateY(12px);
    }

.floating-popup-link {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    background: #fff;
}

.floating-popup-img {
    display: block;
    width: 280px;
    height: 120px;
}

.floating-popup-close {
    padding: 0;
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 20px;
    height: 20px;
    border: 0.5px solid #ffffff;
    border-radius: 50%;
    background: #ffffff;
    color: #0c41be;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}
.floating-popup-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.floating-popup-btn {
    flex: 1;
    height: 36px;
    border-radius: 14px;
    border: none;
    background: #ffffff;
    color: #0c41be;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    cursor: pointer;
}

    .floating-popup-btn:hover {
        text-decoration: none;
        background: #0c41be;
        color: #ffffff;
    }

.floating-popup-form-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
}

    .floating-popup-form-modal.d-none {
        display: none;
    }

.floating-popup-form-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.floating-popup-form-content {
    position: relative;
    width: min(1170px, calc(100vw - 24px));
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    margin: 20px auto;
    background: #fff;
    border-radius: 20px;
    z-index: 2;
}

.floating-popup-form-close {
    position: sticky;
    top: 80px;
    right: 20px;
    float: right;
    margin: -50px -15px 0 0;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 3;
    background: transparent;
}
.floating-popup-success-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
}

    .floating-popup-success-modal.d-none {
        display: none;
    }

.floating-popup-success-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.floating-popup-success-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.floating-popup-success-box {
    width: min(1170px, calc(100vw - 48px));
    background: #ececec;
    border-radius: 20px;
    padding: 72px 40px;
    text-align: center;
}

.floating-popup-success-title {
    margin: 0 0 28px;
    font-size: 40px;
    line-height: 1.3;
    font-weight: 700;
    color: #2d3559;
}

.floating-popup-success-text {
    margin: 0;
    font-size: 21px;
    line-height: 1.8;
    color: #2d3559;
    font-weight: 500;
}

.floating-popup-form-content .pop-up-recruit-title {
    padding: 80px 80px 0;
}
.floating-popup-form-content .pop-up-recruit-form {
    padding: 0 80px 80px;
}
#fieldsModal{
    background: none;
}
#fieldsModal .modal-content {
    width: 62%;
    float: right;
    right: 80px;
    bottom: 0;
}
    #fieldsModal .modal-content .modal-body{
        background: #ffffff;
        padding: 0 40px;
    }
#fieldsModal .modal-content ul{
    list-style: none;
}
#fieldsModal .modal-content ul li{
    display: flex;
    gap: 10px
}
    #fieldsModal .modal-content .btn{
        padding: 10px 10px
    }
/* Dropdown styles */
#fieldsDropdown {
    border: 1px solid #ccc;
    background-color: #fff;
    z-index: 10;
    overflow-y: auto;
    padding: 10px;
    border-radius: 5px;
    top: auto !important;
    margin: 0 0 0 auto;
    position: absolute;
    width: 100%;
}

    #fieldsDropdown ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    #fieldsDropdown li {
        padding: 5px;
        display: flex;
    }

        #fieldsDropdown li input[type="checkbox"] {
            margin-right: 5px;
            accent-color: #0c41be;
        }
    #fieldsDropdown label {
        margin: 0;
    }
    #fieldsDropdown .task-buttons {
        margin-top: 10px;
        display: flex;
        justify-content: space-between;
    }
#selectedFields {
    background: #ffffff;
    padding: 12px 2.5rem 12px 1rem;
}
#selectedWorkLocations {
    background: #ffffff;
    padding: 12px 2.5rem 12px 1rem;
}
/*#selectedFields::after {
    content: "∟";
    font-size: 16px;
    font-weight: 700;
    color: #272e4e;
    position: absolute;
    right: 20px;
    top: 25%;
    transform: translateY(-50%);
    pointer-events: none;
    display: inline-block;
    transform: rotate(-45deg);
}*/

#workLocationsDropdown {
    position: absolute;
    border: 1px solid #ccc;
    background-color: #fff;
    z-index: 10;
    overflow-y: auto;
    padding: 10px;
    border-radius: 5px;
    top: auto !important;
    margin: 0 0 0 auto;
    width: 100%;
}
    #workLocationsDropdown label {
        margin: 0;
    }
    #workLocationsDropdown ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    #workLocationsDropdown li {
        padding: 5px;
        display: flex;
    }

        #workLocationsDropdown li input[type="checkbox"] {
            margin-right: 5px;
            accent-color: #0c41be;
        }

    #workLocationsDropdown .task-buttons {
        margin-top: 10px;
        display: flex;
        justify-content: space-between;
    }
#JapaneseProficiency {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 12px 2.5rem 12px 1rem;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}
.select-popup{
    position: relative;
}
.select-popup::after {
    content: "∟";
    font-size: 16px;
    font-weight: 700;
    color: #272e4e;
    position: absolute;
    right: 20px;
    top: 15%;
    transform: translateY(-50%);
    pointer-events: none;
    display: inline-block;
    transform: rotate(-45deg);
}
#applyFieldsBtn, #applyWorkLocationsBtn {
    background: #0c41be;
    border-color: #0c41be;
}
.floating-popup-close.is-arrow-up {
    top: -20px;
    box-shadow: 0 0 12px 2px rgba(0, 0, 0, 0.2);
}
.floating-popup-form-body .pop-up-recruit-wrapper {
    padding: 0;
    max-width: 1170px;
}
@media (max-width: 991px) {
    .floating-popup-success-box {
        padding: 48px 24px;
        border-radius: 16px;
    }

    .floating-popup-success-title {
        font-size: 34px;
        margin-bottom: 20px;
    }

    .floating-popup-success-text {
        font-size: 18px;
        line-height: 1.7;
    }
}

@media (max-width: 767px) {
    .floating-popup-img {
        width: 360px;
        height: 80px;
    }
    .floating-popup {
        width: 360px;
        max-width: calc(100vw - 24px);
        right: 12px;
        bottom: 12px;
    }

    .floating-popup-close {
        top: 6px;
        right: 6px;
    }

    .floating-popup-actions {
        gap: 10px;
    }

    .floating-popup-btn {
        height: 42px;
        font-size: 15px;
    }

    .floating-popup-success-box {
        width: calc(100vw - 24px);
        padding: 40px 10px 40px 25px;
    }

    .floating-popup-success-title {
        font-size: 28px;
        padding-right: 20px
    }

    .floating-popup-success-text {
        font-size: 16px;
        padding-right: 20px
    }
    .floating-popup-form-content .pop-up-recruit-title {
        padding:40px 50px 0 40px;
    }
    .floating-popup-form-content .pop-up-recruit-form {
        padding: 0 50px 40px 40px;
    }
    .pop-up-recruit-form .btn-submit-xemtl {
        padding: 17px 50px;
        width: 100%;
    }
    .floating-popup-form-close {
        top: 40px;
        right: 20px;
        margin: -30px 10px 0 0;
    }
}
