.b2b-input {
  width: 100%;
  outline: none;
  height: 56px;
  border: 2px solid #BEBEBE;
  border-radius: 12px;
  padding: 0 18px;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  -webkit-user-select: initial;
  -khtml-user-select: initial;
  -moz-user-select: initial;
  -ms-user-select: initial;
  user-select: initial;
  transition: .2s;
}

.b2b-input:focus {
    border-color: #226F54;
}

.b2b-input:placeholder {
    border-color: 656565;
}

.b2b-input--error {
    border-color: #DC362E;
}

.b2b__checkbox {
  display: flex;
  cursor: pointer;
}

.b2b__checkbox input {
  display: none;
}

.b2b__fake-checkbox {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 12px;
  border: 2px solid #226F54;
  border-radius: 4px;
  transition: 0.2s;
}

.b2b__fake-checkbox::before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 100%;
  background-color: #226F54;
  background-image: url(/themes/b2b-redesign/assets/images/modal/check.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 80%;
  opacity: 0;
  transition: 0.2s;
}

.b2b__checkbox input:checked ~ .b2b__fake-checkbox {
  border-color: #226F54;
}

.b2b__checkbox input:checked ~ .b2b__fake-checkbox::before {
  opacity: 1;
}

.b2b__checkbox-label {
  font-size: 12px;
  font-weight: 500;
  line-height: 17px;
  color: #656565;
}

.b2b__button {
  display: block;
  width: 100%;
  outline: none;
  color: #ffffff;
  background-color: #FF6400;
  padding: 14px 32px;
  font-size: 20px;
  font-weight: 700;
  line-height: 140%;
  border:2px solid transparent;
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
  transition: .2s;
}

.b2b__button:hover {
  background-color: #226F54;
  border:2px solid #226F54;
  color: #ffffff;
}

.b2b__button:active {
  background-color: #1B5943;
  border: 2px solid #1B5943;
  color: #ffffff;
}

.b2b__button:disabled {
  background-color: #BEBEBE;
  border: 2px solid #BEBEBE;
  color: #ffffff;
}

.b2b__button--loading:disabled {
  background-color: #FF6400;
  position: relative;
  color: transparent;
  border-color: transparent;
}

.popup-on-leave {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100vw;
  height: 100vh;
  opacity: 1;
  box-sizing: border-box;
  transition: all .3s;
}

.popup-on-leave__outer-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.popup-on-leave__success-icon {
    position: absolute;
    bottom: 43px;
    right: 43px;
    display: none;
}


.popup-on-leave__bg {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.2);
}

.popup-on-leave__inner-wrap {
  width: 400px;
  height: 440px;
  display: flex;
  background-color: #ffffff;
  border-radius: 20px;
  border: 2px solid #ededed;
  position: relative;
  padding: 32px;
  z-index: 10;
}

.popup-on-leave__close-btn {
  position: absolute;
  right: 32px;
  cursor: pointer;
}

.popup-on-leave__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.popup-on-leave__text-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.popup-on-leave__title {
    font-family: 'Gogh';  
    font-size: 28px;
    line-height: 39px;
    font-weight: 700;
    color: #242424;
}

.popup-on-leave__subtitle {
    font-family: 'Gogh';  
    font-size: 16px;
    line-height: 22px;
    font-weight: 500;
    color: #656565;
}

.popup-on-leave__form-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popup-on-leave__error {
    font-family: 'Gogh'; 
    color: #DC362E;
}

.popup-on-leave__form-block > form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.popup-on-leave__description {
    font-family: 'Gogh';
    font-style: normal;
    font-weight: 500;
    font-size: 10px;
    line-height: 14px;    
    color: #656565;
}

.request-form-result, .request-form {
    max-width: 735px;
    margin: auto;
    text-align: center;
    padding: 47px 0;
    font-family: Roboto,serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.21429;
}

.request-form {
    padding: 47px;
}

.request-form-modal-on-page .request-form {
    padding: 100px 47px;
}

@media(max-width: 500px) {
    .request-form {
        text-align: left;
        padding: 40px 10px ;
    }
    .request-form-modal-on-page .request-form {
        text-align: left;
        padding: 40px 10px ;
    }
}

.request-form__title {
    font-weight: bold;
    font-size: 32px;
    line-height: 47px;
    max-width: 600px;
    margin: auto;
    margin-bottom: 20px;    
    color: #4C4A4A;
}

.request-form-modal-on-page .request-form__title {
    font-weight: bold;
    font-size: 32px;
    line-height: 47px;
    max-width: 600px;
/*     min-width: 365px;; */
    margin: auto;
    margin-bottom: 25px;    
    color: #4C4A4A;
}

.request-form-modal-on-page .request-form__policy {
    font-family: Roboto;
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 26px;
    text-align: center;    
    color: #5C5C5C;
    padding: 10px 50px 0;
}
.request-form-modal-on-page .request-form__policy_link {
    font-family: Roboto;
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 26px;
    text-align: center; 
    padding-top: 20px;

}

.request-form-group {
    position: relative;
}

.request-form-group .invalid-feedback {
    position: absolute;
    text-align: left;
    color: #FF2F01;
    font-size: 14px;
    top: 50px;
    display: none;
}

.request-form-group .phone-mask {
    position: absolute;
    pointer-events: none;
    top: 14px;
    left: 20px;
    font-size: 18px;
    text-align: left;
    color: #5C5C5C;
}

.request-form-group.invalid .invalid-feedback {
    display: block;
}


.request-form__label {
    font-size: 18px;
    text-align: left;
    color: #5C5C5C;
    position: absolute;
    top: -20px;
    left: 0;
    transition: top 0.1s ease-in-out, left 0.1s ease-in-out;
}

textarea.request-form__input {
  resize: vertical;
  line-height: 1;
}

.request-form__input:placeholder-shown + .request-form__label {
    left: 20px;
    top: 14px;
    pointer-events: none;
}

.request-form__input:placeholder-shown + .phone-mask {
    display: none;
}

.request-form__input:-webkit-autofill + .request-form__label{
    top: -20px;
    left: 0;
}

.request-form__input {
    width: 100%;
    height: 50px;
    margin-bottom: 25px;
    padding: 14px 20px;
    font-weight: bold;
    border: 1px solid #BDBDBD;
    font-size: 18px;
    line-height: 47px;
    color: #5C5C5C;
    background: #F6F4F4;
    border-radius: 0;
    -webkit-appearance: none;
}

.invalid .request-form__input {
    border: 1px solid #FF2F01;
}

.request-form__input:-webkit-autofill::first-line {
    font-weight: bold;
    font-size: 18px;
    color: #5C5C5C;
}

.request-form__input:focus {
    border: 1px solid #61CA21;
    outline: none;
    background: white;
}

.invalid .request-form__input:focus {
    border: 1px solid #FF2F01;
}


.request-form__bttn_wrapper {
    text-align: center;
    margin-top: 25px;
}

.request-form__bttn {
    padding: 12px 50px;
    color: white;
    font-weight: bold;
    font-size: 25px;
    margin-bottom: 30px;
    cursor: pointer;
    border: none;

    background: linear-gradient(93.14deg, #7EC752 9.17%, #61CA22 81.2%);
}

.request-form__bttn:hover {
    box-shadow: 0 20px 20px -20px rgb(97,202,34);
    /*box-shadow: 0 15px 10px 0 rgba(97,202,34,.2);*/
}

.request-form__bttn:hover:disabled {
    box-shadow: 0 20px 20px -20px #b5b5b5;
    /*box-shadow: 0 15px 10px 0 rgba(97,202,34,.2);*/
}

.request-form__bttn:disabled {
    background: linear-gradient(93.14deg, #b5b5b5 9.17%, #a4a4a4 81.2%);
}

.request-form__policy {
    font-size: 18px;
    line-height: 21px;
    text-align: center;
    color: #5C5C5C;
    margin: 0 70px;
}

.request-form__policy_link {
    color: #7CC750;
    font-size: 18px;
    line-height: 21px;
    border-bottom: 1px solid #7CC750;
    text-decoration: none;
}

.request-form__policy_link:hover {
    color: #5E8E41;
    border-bottom-color: #5E8E41;
}

/** модалка */

.request-form-modal {
    display: none;
    position: fixed;
    max-width: 735px;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    transform: translate(calc(-50% + 0.5px), calc(-50% + 0.5px));
    z-index: 50;
    background: white;
    border: 1px solid #61CA21;
    max-height: 900px;
    overflow-y: hidden;
    overflow-x: hidden;
}

.request-form-modal__close {
    position: absolute;
    width: 26px;
    height: 26px;
    right: 26px;
    top: 20px;
    cursor: pointer;
    z-index: 1;
}

@media (max-width: 540px), (max-height: 740px) {
    .request-form-modal {
        top: 0;
        transform: translateX(-50%) translateY(0);
        transform: translate(calc(-50% + 0.5px), 0);
        margin-top: 20px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }
    
    .request-form-modal__close {
        position: fixed;
        background: white;
        border-radius: 50%;
        padding: 5px;
    }
}

/** Result modal */

.request-form-result {
    height: 615px;
    position: relative;
}

.request-form-result.success {
    background:
        url(/themes/b2b-redesign/assets/images/modal/success-modal-bg-full.png) center center,
        url(/themes/b2b-redesign/assets/images/modal/success-modal-bg-left.png) left bottom,
        url(/themes/b2b-redesign/assets/images/modal/success-modal-bg-right.png) right bottom
        ;
    background-repeat: no-repeat, no-repeat, no-repeat;
}

.request-form-result.error {
    background:
            url(/themes/b2b-redesign/assets/images/modal/error-modal-bg.png) center bottom;
    background-repeat: no-repeat;
}

.request-form__after_request {
    position: absolute;
    bottom: 50px;
    width: 100%;
    display: none;
}

.success .request-form__after_request {
    display: block;
}

.request-form__after_request_text {
    font-size: 18px;
    line-height: 21px;
    color: #4C4A4A;
    max-width: 270px;
    margin: 20px auto;
}

.request-form__social-icons li {
    display: inline-block;
    margin: 0 11px;
}

@media(max-width: 670px) {
    .request-form-modal {
        max-height: 667px; 
        width: 95%;
    }
    
/*     .request-form{
    padding-top: 20px;
} */
    
    .request-form__bttn{
        margin-bottom: 20px;
    }
    .request-form-modal-on-page .request-form__bttn{
        margin: 20px 0 10px;
    }
    
    .request-form__after_request_text {
        margin: 10px 0 30px;
        font-size: 16px;
        line-height: 26px;
        max-width: 250px;
    }

    .request-form__after_request {
        position: relative;
        bottom: 0;
    }

    .request-form__social-icons li {
        margin: 0 7px;
    }
    .request-form__social-icons li:first-child {
        margin-left: 0;
    }

    .request-form__social-icons li svg {
        width: 37px;
        height: 37px;
    }

    .request-form-result {
        height: 100vh;
        text-align: left;
        padding-left: 40px;
        padding-right: 40px;
    }

    .request-form-result.error {
        background-image:
                url(/themes/b2b-redesign/assets/images/modal/error-modal-bg-mobile.png);
    }

    .request-form-result.success {
        background:
                url(/themes/b2b-redesign/assets/images/modal/success-modal-bg-right.png) right bottom
        ;
        background-repeat: no-repeat;
        background-size: 263px;
    }

    .request-form-result.success .confetty {
        height: 260px;
        background: url(/themes/b2b-redesign/assets/images/modal/success-modal-bg-full-modal.png) center center;
    }
    
    .request-form__input {
         margin-bottom: 20px;   
    }


    .request-form__policy {
         margin: 0;   
    }
}

@media(max-width: 400px) {
    .request-form-result.success {
        background:
                url(/themes/b2b-redesign/assets/images/modal/success-modal-bg-right.png) right bottom
    ;
        background-repeat: no-repeat;
        background-size: 200px;
    }

    .request-form-result.success .confetty {
        height: 200px;
    }
}


@media(max-width: 360px) {
    .request-form-result.success .confetty {
        display: none;
    }
}

@media(min-width: 600px) {
    .showed-modal {
        overflow: hidden;
        margin-right: 15px;
    }
}
