.b-form {
    position: relative;
}

.b-form__head {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.b-form__head-img-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    margin-right: 24px;
    border: 2px solid #eff2f7;
    border-radius: 50%;
    overflow: hidden;
}

.b-form__head-img {
    width: 100%;
}

.b-form__head-text {
    display: block;
    margin-bottom: 0;
    flex-grow: 1;
}

.b-form__head-text--center {
    text-align: center;
}

.b-form__head-text > :last-child {
    margin-bottom: 0;
}

.b-form__title {
    margin: 0;
    font-family: Roboto, sans-serif;
    font-style: normal;
    font-size: 24px;
    font-weight: 500;
    line-height: 28px;
    text-transform: uppercase;
    color: #008EC4;
}

.b-form__desc,
.b-form__field--checkbox label {
    font-family: Roboto, sans-serif;
    font-style: normal;
    font-size: 17px;
    line-height: 22px;
    font-weight: 300;
    color: #333333;
}

.b-form__desc {
    margin: 12px 0 0;
}

.b-form__field--checkbox label {
    margin: 0;
}

.b-form__fields-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
}

.b-form__fields-wrap > :last-child {
    margin-bottom: 0;
}

.b-form__item {
    width: calc((100% - 20px) / 2);
}

.b-form__item--column {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.b-form__item--column > :last-child {
    margin-bottom: 0;
}

.b-form__field {
    display: flex;
    width: 100%;
    margin: 0 0 20px;
    padding: 0;
    position: relative;
}

.b-form__field--textarea .b-form__field-icon {
    top: 30px;
}

.b-form__item--column .b-form__field--textarea {
    flex-direction: column;
    flex-grow: 1;
}

.b-form__input {
    width: 100%;
    margin: 0;
    padding: 16px 16px 16px 47px;
    opacity: 1;
    font-family: Roboto, sans-serif;
    font-style: normal;
    font-size: 17px;
    font-weight: 300;
    line-height: 22px;
    text-overflow: ellipsis;
    border: 1px solid #f1f1f1;
}

.b-form__input--thin {
    padding: 12px 16px 12px 47px;
}

.b-form__input.datetimepicker {
    padding: 16px 55px 16px 47px;
}

.b-form__input.invalid {
    position: relative;
}

.b-form__textarea {
    opacity: 1;
    order: 2;
    width: 100%;
    height: 154px;
    margin-bottom: 0;
    padding: 16px 16px 16px 47px;
    font-family: Roboto, sans-serif;
    font-style: normal;
    font-size: 17px;
    font-weight: 300;
    line-height: 22px;
    border: 1px solid #f1f1f1;
    resize: none;
}

.b-form__item--column .b-form__textarea {
    height: 100%;
    flex-grow: 1;
}

.b-form__calendar {
    width: 24px;
    padding: 0;
    position: absolute;
    top: 0;
    right: 16px;
    bottom: 0;
    background: url(/local/templates/webcom_2018/images/forms/calendar.svg) no-repeat center/24px;
    border: 0;
    pointer-events: none;
}

.b-form__field-icon {
    margin-right: 0;
    position: absolute;
    top: calc(50% + 1px);
    left: 16px;
    z-index: 1;
    transform: translate(0, -50%);
    pointer-events: none;
}

.b-form__field-icon > svg {
    width: 1em;
    height: 1em;
    font-size: 16px;
    fill: #00B9FF;
}

.b-form__input.invalid + .b-form__field-icon > svg,
.b-form__textarea.invalid + .b-form__field-icon > svg {
    fill: #ff8a82;
}

.b-form__field-icon > .sp-form-fields_mail {
    width: 1.33em;
    height: 1em;
    font-size: 12px;
}

.b-form__field-icon > .sp-form-fields_chat {
    width: 1.14em;
    height: 1em;
    font-size: 14px;
}

.b-field-tooltip {
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    padding: 0;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    font-style: italic;
    text-align: center;
    color: #fa7066;
    background: none;
    border-radius: 0;
    box-shadow: none;
    transform: translateY(-50%);
    transition: all .5s ease-in-out;
    pointer-events: none;
}

.b-field-tooltip.js-active {
    opacity: 1;
    visibility: visible;
}

.b-field-tooltip span {
    margin-right: 8px;
    font-weight: 300;
}

.b-form__input::placeholder,
.b-form__input::-webkit-input-placeholder,
.b-form__textarea::placeholder,
.b-form__textarea::-webkit-input-placeholder {
    color: #8a979f
}

.b-form__rating {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 24px auto 0;
}

.b-form__rating .b-rating__label {
    margin: 0 16px 0 0;
    font-size: 17px;
    font-weight: 300;
    line-height: 22px;
    color: #8a979f;
}

.b-form__rating .b-rating__stars,
.b-form__rating .b-rating__stars-substrate {
    display: inline-block;
    height: 24px;
    background: url(/local/templates/webcom_2018/images/forms/stars.svg) repeat-x 0 0;
    background-size: 27px 48px;
    cursor: pointer;
}

.b-form__rating .b-rating__stars {
    width: 133px;
}

.b-form__rating .b-rating__stars-substrate {
    background-position: 0 -24px;
}

.b-form__btn-wrap {
    opacity: 1;
    visibility: visible;
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.b-form__btn {
    display: block;
    min-width: 222px;
    padding: 12px 48px;
    text-align: center;
    border: 0;
}

.b-form__agreement {
    margin: 21px 0 0;
    font-family: Roboto, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 10px;
    line-height: 14px;
    text-align: center;
    color: #9da4a8;
}

.b-form__agreement-link {
    display: inline-block;
    text-decoration: underline;
    color: #009731;
    cursor: pointer;
}

.b-form__agreement-link:hover {
    text-decoration: none;
}

.b-form__preloader {
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    text-align: center;
    background: rgba(255, 255, 255, .7);
    border-radius: 0;
    box-shadow: 0 0 22px 0 #fff;
}

.b-form__preloader.js-active {
    display: flex;
}

.b-form__preloader-img {
    display: block;
    width: 200px;
}


/* Map form */
.b-map__form {
    width: 570px;
    padding: 24px 32px 27px;
    z-index: 1;
    background-color: #fff;
    box-shadow: 0 6px 20px rgba(0, 95, 137, .2);
    border-radius: 10px;
}

.b-map__form .b-form__fields-wrap {
    display: block;
}

.b-map__form .b-form__item {
    width: 100%;
}

.b-map__form .b-form__item--column {
    display: block;
    margin: 0 0 20px;
}

.b-map__form .b-form__item--column .b-form__textarea {
    height: 154px;
}

.b-map__form .b-form__preloader {
    border-radius: 10px;
}


/* Subscribe form (in the end of the article-page) */
.b-subscribe__form {
    width: 100%;
}

.b-subscribe__form .b-form__inner {
    display: flex;
}

.b-subscribe__form .b-form__head {
    flex-shrink: 0;
    min-width: 330px;
    margin-right: 72px;
    margin-bottom: 0;
}

.b-subscribe__form .b-form__head-img-wrap {
    width: auto;
    height: auto;
    border: none;
    border-radius: 0;
}

.b-subscribe__form .b-form__head-img-wrap img {
    max-width: 32px;
}

.b-subscribe__form .b-form__title {
    font-weight: 500;
    font-size: 18px;
    line-height: 24px;
    text-transform: none;
    color: #1C1C1C;
}

.b-subscribe__form .b-form__fields-wrap {
    flex-wrap: nowrap;
    width: calc(100% - 330px);
}

.b-subscribe__form .b-form__field {
    margin: 0 30px 0 0;
}

.b-subscribe__form .b-form__input {
    border: 1px solid #D0F1FC;
    border-radius: 2px;
}

.b-subscribe__form .b-form__btn-wrap {
    margin-top: 0;
}

.b-subscribe__form .b-form__btn {
    border: 0;
    min-width: 170px;
    padding: 16px;
    font-size: 16px;
    line-height: 19px;
    text-align: center;
}

.b-subscribe__form .b-form__preloader-img {
    width: 130px;
}


@media only screen and (max-width: 1199px) {
    .b-form__head-img-wrap {
        width: 72px;
        height: 72px;
    }

    .b-form__desc {
        margin: 16px 0 0;
    }

    .b-form__desc,
    .b-form__field--checkbox label {
        font-size: 16px;
        line-height: 20px;
    }

    .b-form__input {
        font-size: 16px;
        line-height: 20px;
    }

    .b-form__textarea {
        height: 108px;
        font-size: 16px;
        line-height: 20px;
    }

    .b-form__field--textarea .b-form__field-icon {
        top: 29px;
    }

    .b-form__agreement {
        margin: 21px 0 0;
    }

    .b-popup__form .b-form__field {
        width: 100%;
    }

    .b-map__form {
        width: 100%;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .b-map__form .b-form__fields-wrap {
        display: flex;
    }

    .b-map__form .b-form__item {
        width: calc((100% - 20px) / 2);
    }

    .b-map__form .b-form__item--column {
        display: flex;
        margin-bottom: 0;
    }

    .b-map__form .b-form__item--column .b-form__textarea {
        flex-grow: 1;
        height: 100%;
    }

    .b-subscribe__form .b-form__head {
        flex-shrink: unset;
        min-width: 230px;
        margin-right: 16px;
    }

    .b-subscribe__form .b-form__fields-wrap {
        width: calc(100% - 230px);
    }

    .b-subscribe__form .b-form__field {
        margin: 0 20px 0 0;
    }
}

@media only screen and (max-width: 1023px) {
    .b-form__title {
        font-size: 20px;
        line-height: 24px;
    }

    .b-form__desc,
    .b-form__field--checkbox label,
    .b-form__input {
        font-size: 15px;
        line-height: 19px;
    }

    .b-form__input.datetimepicker {
        padding: 12px 50px 12px 47px;
    }

    .b-form__textarea {
        font-size: 15px;
        line-height: 19px;
    }

    .b-form__calendar {
        width: 20px;
        background-size: 20px;
        background-position-y: 49%;
    }

    .b-form__field-icon {
        top: 50%;
    }

    .b-form__field--textarea .b-form__field-icon {
        top: 28px;
    }

    .b-form__rating .b-rating__label {
        font-size: 15px;
        line-height: 19px;
    }

    .b-form__btn {
        padding: 14px 16px;
    }

    .b-subscribe__form .b-form__inner {
        display: block;
    }

    .b-subscribe__form .b-form__head {
        min-width: auto;
        margin-right: 0;
    }

    .b-subscribe__form .b-form__title {
        font-size: 16px;
        line-height: 20px;
    }

    .b-subscribe__form .b-form__fields-wrap {
        width: 100%;
        margin-top: 24px;
    }

    .b-subscribe__form .b-form__preloader-img {
        width: 200px;
    }
}

@media only screen and (max-width: 767px) {
    .b-form__head-img-wrap {
        width: 48px;
        height: 48px;
        margin-right: 16px;
    }

    .b-form__title {
        font-size: 18px;
        line-height: 22px;
    }

    .b-form__desc {
        margin: 6px 0 0;
    }

    .b-form__desc,
    .b-form__field--checkbox label {
        font-size: 14px;
        line-height: 17px;
    }

    .b-form__fields-wrap {
        display: block;
    }

    .b-form__item {
        width: 100%;
    }

    .b-form__item--column {
        width: 100%;
        margin: 0 0 20px;
    }

    .b-form__field {
        width: 100%;
    }

    .b-form__item--column .b-form__field--textarea {
        flex-grow: unset;
    }

    .b-form__input,
    .b-form__textarea {
        padding: 12px 16px 12px 47px;
        font-size: 14px;
        line-height: 17px;
    }

    .b-form__input.datetimepicker {
        padding: 12px 47px;
    }

    .b-form__textarea {
        height: 86px;
    }

    .b-form__item--column .b-form__textarea {
        flex-grow: unset;
        height: 86px;
    }

    .b-form__field--textarea .b-form__field-icon {
        top: 23px;
    }

    .b-form__calendar {
        width: 16px;
        background-size: 16px;
    }

    .b-form__rating {
        flex-wrap: wrap;
        margin-bottom: 24px;
    }

    .b-form__rating .b-rating__label {
        width: 100%;
        margin-right: 0;
        margin-bottom: 8px;
        font-size: 14px;
        line-height: 17px;
        text-align: center;
    }

    .b-popup__form .b-form__head-img-wrap {
        display: none;
    }

    .b-popup__form .b-form__head-text {
        text-align: center;
    }

    .b-popup__form .b-form__fields-wrap > :last-child {
        margin-bottom: 0;
    }

    .b-map__form .b-form__fields-wrap {
        display: block;
    }

    .b-map__form .b-form__item {
        width: 100%;
    }

    .b-map__form .b-form__item--column {
        display: block;
        margin-bottom: 20px;
    }

    .b-map__form .b-form__item--column .b-form__textarea {
        flex-grow: unset;
        height: 86px;
    }

    .b-subscribe__form .b-form__head-img-wrap img {
        max-width: 24px;
    }

    .b-subscribe__form .b-form__title {
        font-size: 15px;
        line-height: 19px;
    }

    .b-subscribe__form .b-form__field {
        margin: 0 0 20px;
    }

    .b-subscribe__form .b-form__input {
        border-radius: 0;
    }

    .b-subscribe__form .b-form__btn-wrap {
        margin-top: 24px;
    }

    .b-subscribe__form .b-form__btn {
        min-width: 222px;
        padding: 14px 16px;
        font-size: 18px;
        line-height: 21px;
    }
}

@media only screen and (max-width: 360px) {
    .b-form__btn {
        width: 100%;
    }
}