.form_block input {
    height: 50px;
    padding: 0 15px;
    border: 1px solid #CFD1D6;
    background-color: var(--bg-color-0);
    font-size: 16px;
    font-family: sans-serif;
    color: var(--bg-color-4);
    width: 100%;
    border-radius: var(--border-radius-2);
    outline: none;
}

.form_block input::placeholder {
    transition: all .3s;
}

.form_block input:is(:focus, :active)::placeholder {
    opacity: 0;
}

.form_block input.error {
    border-color: #FFEF62;
}

.form_block input.error+.error {
    color: #FFEF62;
    font-size: 14px;
    margin-top: 5px;
}

.form_block button {
    height: 50px;
    cursor: pointer;
}

#selection_block {
    padding: 30px;
    background-color: var(--main-color-1);
    border-radius: var(--border-radius-2);
    position: relative;
    overflow: hidden;
}

#selection_block::after {
    content: url(../img/after.png);
    display: block;
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
}


#selection_block h3 {
    font-size: 36px;
    font-weight: 600;
    line-height: 120%;
}

.selection_form {
    width: 100%;
}

.selection_form .flex {
    align-items: flex-start;
}

.selection_form button:not(:hover) {
    background-color: var(--main-color-2)
}

.selection_form button:hover {
    background-color: var(--main-hover-2);
    color: var(--text-color-2)
}

.selection_form .line {
    flex: calc(100% - 410px);
    max-width: calc(100% - 410px);
    width: 100%;
}

.selection_form .line+.line {
    flex: 390px;
    max-width: 390px;
    width: 100%;
}

.selection_form .line_block {
    flex: calc(50% - 5px);
    max-width: calc(50% - 5px);
    width: 100%;
}

#selection_block .text_img_block .text_block {
    max-width: 420px;
    width: 100%;
}

#selection_block .text_img_block * {
    color: white;
}

#selection_block .text_img_block>.flex,
#selection_block .form_block,
#selection_block .text_img_block {
    width: 100%;
}

#selection_block .text_img_block .img_block {
    position: relative;
    z-index: 1;
}

#selection_block .text_img_block .img_block img {
    width: 440px;
    height: 150px;
    object-fit: cover;
    border-radius: var(--border-radius-2);
}

#selection_block .text_img_block .img_block .name_block {
    position: absolute;
    font-size: 18px;
    padding: 5px 15px;
    border-radius: var(--border-radius-2);
    bottom: 10px;
    left: 10px;
    background-color: var(--main-color-2);
    color: var(--bg-color-0);
}

#selection_block .info_block {
    font-size: 14px;
    color: white;
}

#selection_block.active {
    background: url(../img/img-2.png);
    background-size: cover;
    background-position: left center;
}

#selection_block.active .img_block,
#selection_block.active .form_block,
#selection_block.active::after {
    display: none;
}

#selection_block.active>.flex {
    height: 100%;
}

#selection_block .text_img_block .text_block>.flex>* {
    flex: 100%;
}

.select_form_block.active .img_block,
.select_form_block.active .form_block,
.select_form_block.active::after {
    display: none;
}

.select_form_block.active {
    background: url(../img/img-2-2.png);
    background-size: contain;
    background-position: bottom right;
    background-repeat: no-repeat;
    background-color: #c3163d;
}

.select_form_block.active .text_img_block .text_block h3 {
    padding-right: 0;
}

.select_form_block.active>.flex {
    align-items: flex-start;
}

@media screen and (max-width:767px) {
    #selection_block.active>.flex {
        align-items: flex-start;
    }

    #selection_block.active .text_img_block .text_block h3 {
        padding-right: 0;
    }

    #selection_block.active {
        background: url(../img/img-2-2.png);
        background-size: contain;
        background-position: bottom right;
        background-repeat: no-repeat;
        background-color: #c3163d;
    }

    .selection_form .flex {
        flex-direction: column;
    }

    .selection_form .text_img_block>.flex {
        flex-direction: row;
    }

    #selection_block .text_img_block .img_block img {
        width: 120px;
        height: 120px;
        border-radius: 50%;
    }

    #selection_block .text_img_block .img_block {
        max-width: 120px;
        width: 100%;
    }

    .selection_form .line+.line {
        flex: 100%;
        max-width: 100%;
    }

    #selection_block>.flex {
        gap: 15px 0;
    }

    #selection_block .text_img_block>.flex {
        align-items: flex-start;
    }

    #selection_block .text_img_block .img_block .name_block {
        bottom: 0;
        font-size: 12px;
        background-color: #DDEBF5;
        color: var(--text-color-4);
        font-weight: 600;
        left: 50%;
        transform: translateX(-50%);
        padding: 2px 10px;
    }

    #selection_block .text_img_block .text_block h3 {
        font-size: 28px !important;
        line-height: 40px;
    }

    #selection_block .text_img_block .text_block .discription {
        font-size: 14px;
    }

    #selection_block .text_img_block .text_block {
        max-width: 320px;
    }

    #selection_block .info_block {
        font-size: 12px;
        line-height: normal;
    }

    .form_block button {
        font-size: 14px;
    }

    .selection_form .line_block,
    .selection_form .line {
        flex: 100%;
        max-width: 100%;
    }
}

@media screen and (max-width: 600px) {
    #selection_block::after {
        display: none;
    }

    #selection_block {
        padding: 20px;
    }

    #selection_block .text_img_block .img_block {
        top: 20px;
        right: 20px;
        position: absolute;
    }


    #selection_block .text_img_block .text_block h3 {
        padding-right: 130px;
    }

}

.selection_form .line_block {
    position: relative;
}

.selection_form .phone-placeholder {
    position: absolute;
    left: 16px;
    top: 16px;
    font-family: sans-serif;
    color: #7d7d7d;
    font-weight: 500;
    font-size: 16px;
}

#selection_block .agreement-link {
    color: #fff;
}

@media (max-width: 1023px) and (min-width: 768px) {
    .selection_form .line+.line {
        flex: 33.3333%;
        max-width: 33.3333%;
    }

    .selection_form .line {
        flex: calc(66.6666% - 20px);
        max-width: calc(66.6666% - 20px);
    }

    #selection_block .text_img_block>.flex {
        flex-wrap: nowrap;
    }

    #selection_block .text_img_block .img_block img {
        max-width: 320px;
        height: 105px;
    }

    #selection_block .text_img_block .img_block {
        margin-right: 70px;
    }

    #selection_block h3 {
        font-size: 24px !important;
    }

    #selection_block h3 br {
        display: none;
    }
}