/* Modal Window For Form */

.modalWindow {
    display: none;
    width: 100vw;
    height: 100vh;
    background: white;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
}

.modalWindow_bg-grey {
    background: #f4f4f4;
}

.modalWindow_bg-grey .modalWindow__header {
    background: #fff;
}

.modalWindow_active {
    display: block;
    height: 100%;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 10000;
    overflow-y: scroll;
}

.modalWindow__wrap {
    width: 100%;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

.modalWindow__wrap_noScroll {
    overflow-y: hidden;
}

.modalWindow__modalCancel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, .8);
    display: none;
    z-index: 100;
}

.modalWindow__modalCancel_active {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    overflow-y: scroll;
}

@media (max-width: 767.98px) {
    .modalWindow__modalCancel {
        background: white;
        -webkit-box-align: start;
        -webkit-align-items: flex-start;
        -ms-flex-align: start;
        align-items: flex-start;
    }
}

/*For scroll on mobile (album orientation)*/
@media (max-height: 440.98px) {
    .modalWindow__wrap_noScroll {
        overflow-y: scroll;
    }
    .modalWindow__modalCancel {
        -webkit-box-align: start;
        -webkit-align-items: flex-start;
        -ms-flex-align: start;
        align-items: flex-start;
    }
    .modalCancelPadd {
        padding: 20px 0;
    }
}

.modalWindow__header {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    margin-bottom: 40px;
}

.modalWindow__header_bgGrey {
    background-color: #fbfbfb;
}

.modalWindow__header_borderBottom {
    border-bottom: 1px solid #E2E2E2;
}

@media (max-width: 991.98px) {
    .modalWindow__header {
        margin-bottom: 25px;
    }
}

@media (max-width: 767.98px) {
    .modalWindow__header {
        margin-bottom: 20px;
    }
}

.modalWindow__headerWrap {
    width: 100%;
    padding: 15px 40px;
    height: auto;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.modalWindow_chatForm .modalWindow__header {
    margin-bottom: 64px;
}
.modalWindow_chatForm .modalWindow__headerWrap {
    padding: 12px 40px;
    max-width: 1220px;
    margin: 0 auto;
}

.modalWindow_chatForm .modalWindow__headerLogo {
    width: 144px;
}

@media (max-width: 767.98px) {
    .modalWindow__headerWrap {
        padding: 10px 40px;
    }

    .modalWindow_chatForm .modalWindow__headerWrap {
        padding: 12px 20px;
    }

    .modalWindow_chatForm .modalWindow__headerLogo {
        width: 100px;
    }

    .modalWindow_chatForm .modalWindow__header {
        margin-bottom: 48px;
    }
}

@media (max-width: 575.98px) {
    .modalWindow__headerWrap {
        padding: 6px 15px;
    }

    .modalWindow_chatForm .modalWindow__headerWrap {
        padding: 12px 8px;
    }

    .modalWindow_chatForm .modalWindow__headerLogo {
        width: 72px;
    }
}

.modalWindow__headerButtonBack {
    width: 30px;
    height: auto;
    opacity: 0.7;
    cursor: pointer;
    -webkit-transition: opacity 0.3s ease-in-out;
    transition: opacity 0.3s ease-in-out;
}

.modalWindow__buttonBack {
    opacity: 0;
    -webkit-transition: opacity 0.3s ease-in-out;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.modalWindow__buttonBack_visible {
    opacity: 0.7;
    cursor: pointer;
    pointer-events: auto;
}

.modalWindow__buttonBack_visible:hover {
    opacity: 1;
}

.modalWindow__buttonBackImg {
    display: block;
    width: 26px;
}

.modalWindow__headerButtonBack:hover {
    opacity: 1;
}

@media (max-width: 767.98px) {
    .modalWindow__headerButtonBack {
        width: 26px;
    }
    .modalWindow__buttonBackImg {
        width: 22px;
    }
}

@media (max-width: 440.98px) {
    .modalWindow__headerButtonBack {
        width: 20px;
    }
    .modalWindow__header_smallMarginMob {
        margin-bottom: 16px;
    }
    .quizForm__content_smallPaddingMob {
        padding-top: 16px;
    }
    .modalWindow__buttonBackImg {
        width: 18px;
    }
}

.modalWindow__headerButtonBack_disable {
    opacity: 0;
    cursor: inherit;
    pointer-events: none;
}

.modalWindow__headerButtonBack_disable:hover {
    opacity: 0;
}

.modalWindow__headerImg {
    width: 100%;
    height: auto;
    display: block;
}

.modalWindow__headerLogo {
    width: 155px;
    height: auto;
}

.modalWindow__headerLogo_small {
    width: 54px;
}

@media (max-width: 767.98px) {
    .modalWindow__headerLogo {
        width: 125px;
    }
    .modalWindow__headerLogo_small {
        width: 44px;
    }
}

@media (max-width: 575.98px) {
    .modalWindow__headerLogo {
        width: 110px;
    }
    .modalWindow__headerLogo_small {
        width: 38px;
    }
}

@media (max-width: 440.98px) {
    .modalWindow__headerLogo {
        width: 100px;
    }
    .modalWindow__headerLogo_small {
        width: 35px;
    }
}

.modalWindow__headerLogo_lf {
    width: 130px;
}

.modalWindow__headerButtonClose {
    width: 26px;
    height: auto;
    opacity: 0.7;
    cursor: pointer;
    -webkit-transition: opacity .3s ease-in-out;
    transition: opacity .3s ease-in-out;
}

.modalWindow__headerButtonClose_medium {
    width: 24px;
    height: 24px;
}

.modalWindow__headerButtonClose:hover {
    opacity: 1;
}

@media (max-width: 767.98px) {
    .modalWindow__headerButtonClose {
        width: 22px;
    }
}

@media (max-width: 440.98px) {
    .modalWindow__headerButtonClose {
        width: 18px;
    }

    .modalWindow__headerButtonClose_medium {
        width: 16px;
        height: 16px;
    }
}

.modalWindow__headerButtonClose_disable {
    opacity: 0;
    cursor: inherit;
    pointer-events: none;
}

.modalWindow__headerButtonClose_disable:hover {
    opacity: 0;
}

.modalWindow__progressBar {
    width: 100%;
    height: 6px;
    background: #f8f8f8;
}

.modalWindow__progressBarLine {
    position: relative;
    display: block;
    overflow: hidden;
    height: 100%;
    background: #00b000;
}

.modalWindow__content {
    -webkit-box-flex: 1;
    -webkit-flex: 1 0 auto;
    -ms-flex: 1 0 auto;
    flex: 1 0 auto;
    width: 100%;
    height: auto;
}

.modalWindow__footer {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    border-top: 2px solid #d6d6d6;
    background: white;
    padding: 20px 10px;
    text-align: center;
    margin-top: 20px;
}

@media (max-width: 991.98px) {
    .modalWindow__footer {
        padding: 14px 10px;
    }
}

@media (max-width: 575.98px) {
    .modalWindow__footer {
        padding: 10px;
    }
}

@media (max-width: 440.98px) {
    .modalWindow__footer {
        border-top: 1px solid #d6d6d6;
        padding: 8px 30px;
    }
}

.modalWindow__footerButton {
    display: inline-block;
    background-color: #fd8725;
    padding: 18px 30px;
    font-size: 22px;
    font-family: 'Open sans', sans-serif;
    color: #fff;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modalWindow__footerButton:hover {
    background-color: #da7021;
}

@media (max-width: 1199.98px) {
    .modalWindow__footerButton {
        font-size: 22px;
    }
}

@media (max-width: 991.98px) {
    .modalWindow__footerButton {
        font-size: 20px;
        padding: 16px 25px;
    }
}

@media (max-width: 767.98px) {
    .modalWindow__footerButton {
        font-size: 18px;
        padding: 16px 22px;
    }
}

@media (max-width: 575.98px) {
    .modalWindow__footerButton {
        font-size: 16px;
        padding: 16px 18px;
    }
}

@media (max-width: 440.98px) {
    .modalWindow__footerButton {
        display: block;
        font-size: 15px;
        width: 100%;
    }
}

.modalCancel {
    width: 100%;
    max-width: 640px;
    height: auto;
    background: white;
    border-radius: 5px;
    padding: 40px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

@media (max-width: 767.98px) {
    .modalCancel {
        padding: 20px;
    }
}

.modalCancel__top {
    width: 100%;
    height: auto;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 30px;
}

@media (max-width: 767.98px) {
    .modalCancel__top {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        margin-bottom: 12px;
    }
}

.modalCancel__topLogo {
    width: 30%;
    height: auto;
    margin-right: 30px;
}

.modalCancel__topLogo_lf {
    width: 140px;
}

@media (max-width: 767.98px) {
    .modalCancel__topLogo {
        width: 100%;
        height: 100%;
        max-width: 125px;
        margin: 0 auto 15px;
    }
}

@media (max-width: 575.98px) {
    .modalCancel__topLogo {
        max-width: 110px;
        margin: 0 auto 10px;
    }
}

.modalCancel__topImg {
    width: 100%;
    height: auto;
    display: block;
}

.modalCancel__topLogo_small {
    width: 58px;
}

.modalCancel__topText {
    width: 50%;
    height: auto;
    font-size: 24px;
    line-height: 1.3;
    color: #2e2e2e;
    font-weight: 700;
    font-family: 'Open sans', sans-serif;
}

@media (max-width: 767.98px) {
    .modalCancel__topText {
        width: 100%;
        font-size: 20px;
        text-align: center;
    }
    .modalCancel__topLogo_small {
        width: 44px;
    }
}
@media (max-width: 575.98px) {
    .modalCancel__topLogo_small {
        width: 38px;
        margin-bottom: 15px;
    }

}

.modalCancel__desk {
    font-size: 22px;
    line-height: 1.3;
    font-family: 'Open sans', sans-serif;
    color: #929292;
    margin-bottom: 20px;
}

@media (max-width: 767.98px) {
    .modalCancel__desk {
        font-size: 16px;
        text-align: center;
    }
}

.modalCancel__button {
    width: 100%;
    height: 50px;
    text-align: center;
    border-radius: 8px;
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
    color: #929292;
    border: none;
    outline: none;
    cursor: pointer;
}

.modalCancel__button_cancel {
    color: #929292;
    background-color: #fff;
    border: 1px solid #929292;
    margin-bottom: 20px;
}

.modalCancel__button_cancel:hover {
    border: 1px solid #2e2e2e;
    color: #2e2e2e;
}

.modalCancel__button_cancel:hover .modalCancel__buttonWord:before {
    opacity: 1;
}

.modalCancel__button_return {
    color: #fff;
    background-color: #fd8725;
}

.modalCancel__button_return:hover {
    background-color: #da7021;
}

.modalCancel__buttonWord {
    position: relative;
    font-size: 22px;
    text-transform: uppercase;
    line-height: 1.3;
    font-family: 'Open sans', sans-serif;
    padding-left: 30px;
    display: inline-block;
    height: 30px;
}

@media (max-width: 767.98px) {
    .modalCancel__buttonWord {
        height: 20px;
        font-size: 16px;
        padding-left: 20px;
    }
}

.modalCancel__buttonWord:before {
    content: '';
    width: 20px;
    height: 20px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(0, -50%);
    background-size: cover !important;
}

@media (max-width: 767.98px) {
    .modalCancel__buttonWord:before {
        width: 14px;
        height: 14px;
    }
}

.modalCancel__buttonWord_cancel:before {
    background: url(../images/18_705/close-button-black.svg) no-repeat center center;
    opacity: 0.5;
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}

.modalCancel__buttonWord_return:before {
    background: url(../images/18_705/arrow-back-white.svg) no-repeat center center;
}

/* Styles for Body. When modal window(with form steps) is open */
.modalWindow_open {
    width: 100%;
    position: fixed;
    overflow: hidden;
}
/* hide content under modal window for safari*/
.modalWindow_open::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 1;
}

.modalWindow_open .mobileBackForm {
    display: none;
}

/* Header image block */
.modalWindow__headerImage_gradientBg {
    background: #659D5D;
    background: -moz-linear-gradient(left, #659D5D 0%, #78b66f 100%);
    background: -webkit-linear-gradient(left, #659D5D 0%, #78b66f 100%);
    background: linear-gradient(to right, #659D5D 0%, #78b66f 100%);
}

.modalWindow__headerImage_bg {
    width: 100%;
    height: auto;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: relative;
}

.modalWindow__headerImage_bgPosition {
    background-position-y: -76px;
}

.modalWindow__headerImageTitle {
    font-size: 30px;
    line-height: 1.2;
}

.modalWindow__headerImage_bgImg {
    background-color: #48413d;
    background-image: url(../images/main/form-header.jpg);
}

.modalWindow__headerImageDesc {
    font-size: 24px;
    line-height: 1.3;
}

@media (max-width: 991.98px) {
    .modalWindow__headerImageDesc {
        font-size: 22px;
    }
    .modalWindow__headerImageTitle {
        font-size: 28px;
    }
}
@media (max-width: 767.98px) {
    .modalWindow__headerImageDesc {
        font-size: 20px;
    }
    .modalWindow__headerImageTitle {
        font-size: 24px;
    }
    .modalWindow__headerImage_bgPosition {
        background-position-y: top;
    }
}
@media (max-width: 440.98px) {
    .modalWindow__headerImageDesc {
        font-size: 18px;
    }
    .modalWindow__headerImageTitle {
        font-size: 22px;
    }
}
@media (max-width: 345.98px) {
    .modalWindow__headerImageDesc {
        font-size: 16px;
    }
    .modalWindow__headerImageTitle {
        font-size: 20px;
    }
}