.contact-form_form {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 50px;
    background: var(--grey);
    border-radius: 8px;
}

.contact-form_field {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-form_field label {
    font-weight: 400;
    font-size: 15px;
    line-height: 15px;
    margin-bottom: 11px;
}

.contact-form_field label span {
    color: #FD2012;
}

.contact-form_field input, .contact-form_field-select {
    align-self: stretch;
    height: 50px;
    padding: 0 18px;
    background: white;
    border: 1px solid #E8EAEC;
    border-radius: 2px;
    font-weight: 500;
    font-size: 15px;
    line-height: 15px;
    transition: .3s ease;
}

.contact-form_field input:hover, .contact-form_field-select:hover {
    border: 1px solid #9096A6;
}

.contact-form_field input:focus, .contact-form_field-select.active {
    border: 1px solid #1C253D;
}

.contact-form_field-select {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #BBC0C6;
    font-weight: 400;
}

.contact-form_field-select.selected {
    color: var(--black);
    font-weight: 500;
}

.contact-form_field input::placeholder {
    color: #BBC0C6;
    font-weight: 400;
}

.contact-form_field-error {
    display: flex;
    align-items: flex-end;
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: .2s ease;
    margin-bottom: 22px;
}

.contact-form_field-error.active {
    height: 20px;
    opacity: 1;
}

.contact-form_field-error span {
    font-weight: 500;
    font-size: 12px;
    line-height: 12px;
    color: #FD2012;
}

.contact-form_field-select.active {
    z-index: 6;
}

.contact-form_field-select-list {
    position: absolute;
    z-index: 3;
    top: 53px;
    left: -1px;
    width: calc(100% + 2px);
    background: white;
    box-shadow: 0px 12px 24px rgb(0 0 0 / 10%);
    cursor: default;
    padding: 12px 0;
    pointer-events: none;
    transform: translateY(10px);
    opacity: 0;
    transition: .2s ease;
}

.contact-form_field-select.active .contact-form_field-select-list {
    pointer-events: auto;
    transform: none;
    opacity: 1;
    transition: .3s ease;
}

.contact-form_field-select-option, .contact-form_field-hint-item {
    padding: 8px 18px;
    font-weight: 400;
    font-size: 15px;
    line-height: 15px;
    cursor: pointer;
    transition: .2s ease;
}

.contact-form_field-select-option.selected {
    font-weight: 600;
}

.contact-form_field-select-option:hover,
.contact-form_field-hint-item:hover,
.contact-form_field-hint-item.focus{
    background: #f5f5f5;
}

.contact-form_terms {
    font-weight: 400;
    font-size: 12px;
    line-height: 19px;
}

.contact-form_terms a {
    display: inline;
    font-weight: inherit;
    font-size: inherit;
    line-height: inherit;
    color: #2196F3;
}

.contact-form_terms-text {
    padding-top: 14px;
}

.contact-form_terms-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    margin-top: 24px;
}

.contact-form_checkbox {
    flex-shrink: 0;
    border: 1px solid #E8EAEC;
    width: 20px;
    height: 20px;
    border-radius: 2px;
    background: white;
    margin-right: 12px;
    transition: border .3s ease;
}

.contact-form_terms-checkbox:hover .contact-form_checkbox {
    border: 1px solid #9096A6;
}

.contact-form_terms-checkbox .contact-form_checkbox.active {
    border: 1px solid var(--orange);
    background-color: var(--orange);
    background-size: 110%;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAIXSURBVHgB7ZgvTMNAFId/7yAhQRAMDoHHsATEFKBIUAiKBZIpgoAFzyYJBByYETI9BBgCbg4BAcymRzI3syAIJFuPe23CVlZ67dZ1FfvM/tyt9+31vdf2CAr5ujQD0BUk5tTHSUQN0Q2+zH1KFitkyUh6HYiIkzq+ZUIA4iwGMrAcxuhKQMo1xIc5gXgxGTchDIV0RCZUrfmbF4lQqQIkdxs4K5jauX0X4shsZBvW+9NrUyvVVyGWMZTMx2frO5Z6eJaIXIglWOZv7uwbAivzhMiF0udNV5n0uveSfRHK5tVpeXKelpUF0sr0RYiTNnfnTNzZGZU7O/6WClXoUolw0rYzPQXkDkYwMU6+jhGa0MOTiUy+U6ZwOKJe/cn4EuKmtpFtenZaHkufO2Umxu3IBJHRChWKptXUHsuyo5+0y7iNZbaEyp1gMp5CjyWJ9IX5uxAvnDpuusq4lbex2F02/Pur5Cx1HJQjlc23pFInja56jRejXoOZTYFyRaL03uopuTup8sOOHOdXO8ZSbzIMyZdl6TWhWuP8aWpvH7jX3B+Nole0f4erxC5drzl2RYWBr/iylN3c3MaC95qehRgu4cyWMwosGKZMICHGWCQcbrakTnfClWECZ2FqlVSFCSs6fAUPG22VRc3wuUwHC9URI5SQfENskLcChG3EI0pqwwp7ghLFiqq1hNonusFg4GAUefeMt/R+ALTZyGtl6c4VAAAAAElFTkSuQmCC);
}

#contact-form button {
    width: 100%;
    max-width: 420px;
    margin: 40px auto 0;
}

.contact-form_field-hint {
    position: absolute;
    z-index: 12;
    top: 82px;
    left: -1px;
    width: calc(100% + 2px);
    background: white;
    box-shadow: 0px 12px 24px rgb(0 0 0 / 10%);
    padding: 12px 0;
}

.contact-form_field-select-icon {
    flex-shrink: 0;
    margin-left: auto;
    padding: 5px 0 5px 18px;
    border-left: 1px solid #E8EAEC;
}

.contact-form_field-select svg {
    transition: .3s ease;
}

.contact-form_field-select.active svg {
    transform: rotate(-180deg);
}
.contact-form_success {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
}
.contact-form_success p {
    font-style: 400;
    font-size: 14px;
    line-height: 18px;
    margin-left: 14px;
    max-width: 332px;
}
.popup-window.agreement {
    max-width: 700px;
}

.popup-window.agreement .popup-window-content {
    padding: 40px;
}

.popup-window.agreement .popup-title {
    font-size: 28px;
    line-height: 40px;
    font-weight: 600;
    margin-bottom: 20px;
}

.popup-window.agreement .popup-content {
    max-height: 50vh;
    padding-right: 10px;
    font-size: 15px;
    line-height: 20px;
}

.popup-window.agreement .button {
    width: 100%;
    margin-top: 20px;
}
.btn-link{
    color: var(--k-root-link);
    cursor: pointer;
    display: inline-block;
    border-bottom: 1px solid transparent;
    transition: 0.3s ease;
}
.btn-link:hover{
    border-color: #2196F3;
}

@media (max-width: 750px) {
    .contact-form_form {
        padding: 30px;
    }

    .popup-window.agreement .popup-window-content {
        padding: 30px;
    }
}

@media (max-width: 600px) {
    .popup-window.agreement .popup-window-close-icon {
        right: -8px;
        top: -46px;
    }
}

@media (max-width: 500px) {
    .popup-window.agreement .popup-title {
        font-size: 20px;
        line-height: 26px;
    }

    .popup-window.agreement .popup-content {
        font-size: 14px;
        line-height: 20px;
    }

    .popup-window.agreement .popup-window-content {
        padding: 20px;
    }

    .contact-form_form {
        padding: 20px;
    }
}