#popup-language-hma {
    position: fixed;
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 380px;
    background: #f4f4f4;
    padding: 1.5rem;
    text-align: left;
    z-index: 999;
    border-radius: 0 0 10px 10px;
    font-size: 14px;
    font-family: sans-serif;
    box-shadow: 0 0 8px black;
}

#popup-language-hma.active {
    top: 0;
    animation: showLang 1s ease-out;
}

@keyframes showLang {
    0% {
        top: -300px;
    }

    100% {
        top: 0;
    }
}

#popup-language-hma .lang-fields {
    display: flex;
    width: 100%;
    margin: 1rem 0;
    align-items: stretch;
}

#popup-language-hma button {
    border: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 120px;
    background-color: black;
    color: white;
}

#popup-language-hma .close-language {
    text-decoration: underline;
    display: flex;
    gap: 2px;
    align-items: center;
}

/* DropDown Selct */
.language-dropdown {
    position: relative;
    width: 200px;
    font-family: sans-serif;
    width: 100%;
}

.language-dropdown::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid black;
    pointer-events: none;
}

.language-dropdown .selected {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    cursor: pointer;
}

.language-dropdown .selected img {
    width: 20px;
    margin-right: 10px;
}

.language-dropdown .dropdown-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 1000;
}

.language-dropdown .dropdown-options li {
    padding: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.language-dropdown .dropdown-options li:hover {
    background-color: #f5f5f5;
}

.language-dropdown .dropdown-options img {
    width: 20px;
    margin-right: 10px;
}