@font-face {
    font-family: InterTight;
    src: url('/res/common/fonts/InterTight/static/InterTight-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn-Regular';
    font-style: normal;
    src: url('/res/common/fonts/_fa/Vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
    font-display: swap;
}

.api__form-modal--common input::-webkit-input-placeholder {
    color: #757575;
}

.api__form-modal--common input::-moz-placeholder {
    color: #757575;
}

.api__form-modal--common input:-ms-input-placeholder {
    color: #757575;
}

.api__form-modal--common input::-ms-input-placeholder {
    color: #757575;
}

.api__form-modal--common input::placeholder {
    color: #757575;
}

.disable__scroll {
    overflow: hidden;
}

.api__form-modal--outer.mfp-bg.mfp-ready {
    position: fixed !important;
    height: 100% !important;
    background-color: #fff;
    opacity: 1;
    z-index: 999999;
}

.api__form-modal--outer.mfp-wrap {
    top: 0 !important;
    position: fixed !important;
    z-index: 9999999;
}

.api__form-modal--outer.mfp-wrap .mfp-container {
    overflow-y: auto;
}

.api__form-modal--common {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 30px;
    padding-bottom: 70px;
    color: #000;
}

.api__form-modal--common .mfp-close {
    position: sticky;
    width: 20px;
    height: 20px;
    inset-inline-end: 50px;
    top: 30px;
    -webkit-margin-start: auto;
    margin-inline-start: auto;
    margin-bottom: 50px;
    background-color: transparent;
    cursor: pointer;
    opacity: 1;
}

.api__form-modal--common .mfp-close:hover {
    background-color: transparent;
}

.api__form-modal--common .mfp-close::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    background-image: url(../img/api_form_modal_cross_icon.svg);
}

.api__form-modal--common .api__form-title {
    margin-bottom: 40px;
    font-size: 35px;
    line-height: 1.2;
    color: #171717;
    text-align: center;
    font-family: InterTight, Roboto, Helvetica, Arial, sans-serif;
    font-weight: bold;
}

.api__form-modal--common.rtl .api__form-title {
    font-family: 'Vazirmatn-Regular', sans-serif;
}

.api__form-modal--common .ama-form {
    max-width: 335px;
    margin: 0 auto;
}

.api__form-modal--common .ama-form__btn {
    max-width: 100%;
    text-transform: initial;
}

.api__form-modal {
    cursor: pointer;
    outline: none;
}

.api__form-modal--common.rtl .mfp-close {
    right: auto;
    left: 50px;
    margin-left: 0;
    margin-right: auto;
}

/* Dark mode styles */
.api__form-modal--outer-dark.mfp-bg.mfp-ready {
    background-color: #15191e;
}

.api__form-modal--outer-dark .mfp-close::before {
    background-image: url(../img/api_form_modal_cross_icon_white.svg);
}

.api__form-modal--outer-dark .api__form-title {
     color: #fff;
}

@media (max-width: 580px) {
    .api__form-modal--common {
        padding-top: 80px;
    }

    .api__form-modal--common .mfp-close {
        position: absolute;
        right: 40px;
        top: 40px;
        margin: 0;
    }

    .api__form-modal--common.rtl .mfp-close {
        left: 40px;
    }
}

@media (max-width: 480px) {
    .api__form-modal--common {
        padding-top: 50px;
    }

    .api__form-modal--common .mfp-close {
        right: 20px;
        top: 20px;
    }

    .api__form-modal--common.rtl .mfp-close {
        left: 20px;
    }
}
