/*!
Theme Name: bizemigrantwp
Version: 1.0.0
Text Domain: bizemigrantwp
*/

.modal-overlay .btn {
    width: 100%;
}

.wpcf7-not-valid-tip {
    margin-bottom: 10px;
}

.wpcf7-spinner {
    position: absolute;
}

.wpcf7-response-output {
    color: #fff;
}

.scroll {
    position: absolute;
    margin-top: -150px;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
}

/* ========================
   Modal
   ======================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--modal-duration, 0.3s) ease, visibility var(--modal-duration, 0.3s) ease;
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.modal-overlay__inner {
    position: relative;
    z-index: 1;
    background: #0E0F0F;
    border: 1px solid rgba(244, 245, 242, 0.1);
    padding: 48px;
    max-width: 640px;
    width: calc(100% - 32px);
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform var(--modal-duration, 0.3s) ease;
}

.modal-overlay.is-open .modal-overlay__inner {
    transform: translateY(0);
}

.modal-overlay__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: #F4F5F2;
    padding: 8px;
    line-height: 0;
    transition: opacity 0.2s ease;
}

.modal-overlay__close:hover {
    opacity: 0.6;
}

.modal-overlay__title {
    font-size: 28px;
    font-weight: 600;
    color: #F4F5F2;
    margin-bottom: 24px;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .modal-overlay__inner {
        padding: 32px 20px;
    }

    .modal-overlay__title {
        font-size: 22px;
    }
}

/* ========================
   Language Switcher (Polylang)
   ======================== */

.lang-switcher {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.lang-switcher__current {
    background: #CCFF00;
    color: #0E0F0F;
    border: none;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    font-family: inherit;
}

.lang-switcher__current:hover {
    opacity: 0.85;
}

.lang-switcher__list {
    list-style: none;
    margin: 0;
    padding: 4px;
    background: #0E0F0F;
    border: 1px solid rgba(244, 245, 242, 0.2);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    order: -1;
    margin-bottom: 4px;
}

.lang-switcher:hover .lang-switcher__list,
.lang-switcher:focus-within .lang-switcher__list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-switcher__item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #F4F5F2;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-switcher__item a:hover,
.lang-switcher__item.is-active a {
    background: #CCFF00;
    color: #0E0F0F;
}

@media (max-width: 600px) {
    .lang-switcher {
        bottom: 20px;
        right: 20px;
    }
}

@media (min-width: 1101px) {
    .header-wrap__nav .current_page_item a:not([href*="#"]) {
        color: #CCFF00;
    }

    .header-wrap__nav .current_page_item a:not([href*="#"])::after {
        background-color: #CCFF00;
    }
}

.pin:not(.active):hover .pin-card,
.pin:not(.active):hover .pin-tooltip {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.pin:not(.active):hover {
    z-index: 10;
}