.iti {
    --iti-path-flags-1x: url('/wp-content/themes/profitads_v2/img/flags.webp');
    --iti-path-flags-2x: url('/wp-content/themes/profitads_v2/img/flags@2x.webp');
    --iti-path-globe-1x: url('/wp-content/themes/profitads_v2/img/globe.webp');
    --iti-path-globe-2x: url('/wp-content/themes/profitads_v2/img/globe@2x.webp');
}

.iti__selected-dial-code {
    color: black;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%;
}

.iti__country-list {
    overflow-y: auto;
}

.position {
    margin-top: 6.4rem;
}

.button-for-contacts {
    margin-top: 6.4rem;
    display: flex;
    justify-content: center;
}

.button-for-contacts a {
    width: 260px;
    height: 60px;
}

.overlay-modal {
    font-family: "Roboto Flex";
    z-index: 9999999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease-in-out;
}

.modal-title {
    color: #395FE4;
    text-align: center;
    font-size: 48px;
    font-style: normal;
    font-weight: 900;
    line-height: 100%;
}

.modal-subtitle {
    color: #333;
    font-size: 16px;
    font-style: normal;
    font-weight: 800;
    line-height: 140%;
    text-align: left;
    margin-top: 40px;
}

.popup-modal {
    width: 100%;
    max-width: 548px;
    max-height: 612px;
    text-align: center;
    position: relative;
    border-radius: 40px;
    background: #FFF;
    padding: 64px 90px;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.7s ease-in-out, opacity 0.7s ease-in-out;
}

.close-btn-modal {
    position: absolute;
    top: 30px;
    right: 30px;
    cursor: pointer;
}

.popup-modal form {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.input-modal {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #D1D4D8;
    background: #FFF;
    padding: 21px 14px;
    color: black;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%;
    max-height: 50px;
}

.input-modal::placeholder {
    color: #9BA2AB;
}

.error-modal {
    color: red;
    font-size: 12px;
    text-align: left;
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.submit-btn-modal {
    display: flex;
    padding: 13px 32px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 54px;
    background: linear-gradient(70deg, #F15640 0%, #EEA009 100%);
    box-shadow: 0 4px 10px 0 rgba(241, 98, 56, 0.50);
    color: #FFF;
    font-size: 16px;
    font-style: normal;
    font-weight: 900;
    line-height: 34px;
    letter-spacing: -0.32px;
    width: fit-content;
    margin: 0 auto;
    margin-top: 60px;
}

#successOverlay .submit-btn-modal {
    margin-top: 30px;
}

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

.overlay-modal.active .popup-modal {
    transform: scale(1);
    opacity: 1;
}

.overlay-modal.closing {
    opacity: 0;
}

.overlay-modal.closing .popup-modal {
    transform: scale(0.8);
    opacity: 0;
}

.popup-link {
    color: #395FE4;
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%;
    margin-top: 44px;
}

#successOverlay .modal-subtitle {
    text-align: center;
}

#successOverlay .popup-content {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

@media (max-width: 992px) {
    .overlay-modal {
        padding: 15px;
    }

    .popup-modal {
        padding: 64px 50px;
    }

    .modal-title {
        font-size: 42px;
    }

    .button-for-contacts {
        margin-top: 3.2rem;
    }

    .position {
        margin-top: 3.2rem;
    }
}
