:root {
    --light-grey: #F5F6FA;
    --grey-hover: #ECECF4;
    --near-black: #1E1E1E;
    --blue-corp: #324682;
    --yellow-corp: #F7D80A;
    --yellow-hover: #F7C00A;
    --orange-corp: #F0731E;
    --light-blue: #197DD1;
    --font-roboto: "Roboto";
    /*--font-inter: "Inter";*/
    --border-radius: 8px;
    --line-height: 24px;
    --section-padding: 52px 0;
    --grey: #A4A4A4;
}
.form {
    padding: var(--section-padding);
    padding-left: 52px !important;
    padding-right: 52px !important;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    border-radius: var(--border-radius) !important;
    background-color: var(--light-grey) ;
}
.form--bg {
    background: url("images/bg-2.png") no-repeat var(--light-grey);
    background-position-y: bottom;
}
.form--mw-1270 {
    max-width: 1270px;
}

.form-agreement-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.form-agreement-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.form-agreement-item label {
    position: relative;
    padding-left: 32px; 
    user-select: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
    color: #333;
}

.form-agreement-item label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--grey-hover);
    border-radius: 5px;
    background: #fff;
    transition: all 0.2s ease;
}
.form-questions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}
.form-right {
    width: 100%;
    max-width: 424px;
}
.form-left {
    width: 100%;
    max-width: 560px;
    background-position-y: bottom !important;
    background: url(images/bg.png) no-repeat;
}
.form--bg .form-left {
    background: unset !important;
}
.form__input {
    gap: 12px;
    width: 100%;
    max-width: 206px;
    color: var(--near-black);
    padding: 16px 28px !important;
    border: 2px solid #ececf4 !important;
    border-radius: var(--border-radius) !important;
}
.form__input:nth-child(1) {
    max-width: 100%;
}
.form-agreement-item label::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: all 0.2s ease;
}

.form-agreement-item input[type="checkbox"]:checked + label::before {
    background: var(--yellow-corp); 
    border-color: var(--yellow-corp);
}

.form-agreement-item input[type="checkbox"]:checked + label::after {
    opacity: 1;
}
.form-name {
    font-family: var(--font-roboto);
    font-weight: bold;
    font-size: 32px;
    padding-bottom: 12px;
    color: var(--near-black);
    line-height: 36px;
}
.form-description {
    width: 100%;
    max-width: 450px;
    color: var(--near-black);
    line-height: var(--line-height);
}
.form-agreement {
    padding: 32px 0;
}
.form__submit {
    width: 100%;
    background-color: var(--yellow-corp);
    transition: 0.5s;
    border: unset !important;
    padding: 16px;
    color: #000;
    font-family: var(--font-roboto);
    font-weight: bold;
    border-radius: var(--border-radius);
    transition: 0.5s;
    color: var(--near-black);
}
.form-right-text {
    color: var(--blue-corp);
    text-align: center;
    line-height: 24px;
}
.form-right-message {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 52px;
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 132px 28px;
}
.form-right-message--error {
    background-color: #F2CECE;
    padding: 74px 28px;
}
.form-right-button {
    width: 100%;
    font-family: var(--font-roboto);
    font-weight: bold;
    color: var(--near-black);
    transition: 0.5s;
    text-align: center;
    border-radius: var(--border-radius);
    background-color: #fff;
    padding: 23px 20px;
    cursor: pointer;
}
.form-questions-wrap {
    width: 100%;
    max-width: 48%;
}
.form-questions-wrap--mv100 {
    max-width: 100%;
}
textarea.form__input {
    min-height: 112px;
}
.form-questions-wrap:nth-child(1) {
    max-width: 100%;
}
.form-questions-wrap-select {
    width: 100%;
    padding: 16px !important;
    color: var(--blue-corp);
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSI3IiB2aWV3Qm94PSIwIDAgMTIgNyIgZmlsbD0ibm9uZSI+PHBhdGggZD0iTTExIDFMNiA2TDEgMSIgc3Ryb2tlPSIjMzI0NjgyIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==');
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
}
@media screen {
    .form__submit:hover {
        background-color: var(--yellow-hover);
    }
    .form-right-button:hover{
        background-color: var(--blue-corp);
        color: #fff;
    }
}
@media(max-width: 1349px) {
    .form {
        padding-left: unset !important;
        padding-right: unset !important;
        padding: 52px 28px !important;
        background-position-x: 29px;
        background-size: 68%;
    }
    .form--bg {
        background-position-x: 0;
        background-size: 50%;
    }
}
@media(max-width: 992px) {
    .form-questions {
        max-width: 368px;
        justify-content: space-between;
    }
    .form__input {
        max-width: 178px;
    }
}
@media(max-width: 880px) {
    .form {
        background-image: unset !important;
        flex-direction: column;
    }
    .form-left, .form-right, .form-description, .form-questions {
        max-width: 100%;
    }
    .form__input {
        max-width: calc((100% - 49% - 28px) / 2);
    }
}
@media(max-width: 690px) {
    .form__input {
        max-width: 49%;
    }
    .form__input:last-child {
        max-width: 100%;
    }
}
@media(max-width: 500px) {
    .form {
        padding: 52px 16px !important;
    }
    .form__input:nth-child(1), .form__input:nth-child(2), .form__input {
        max-width: 100%;
    } 
}
@media (max-width: 424px) {
    .form-questions-wrap {
        max-width: 100%;
    }
}