.consent {
    position: relative;
    margin: 16px 0 18px;
}

.consent input[type="checkbox"] {
    position: absolute;
    left: 0;
    top: 2px;
    z-index: 1;
    width: 20px;
    height: 20px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.consent label {
    position: relative;
    display: inline-block;
    min-height: 22px;
    padding: 0 0 0 28px;
    max-width: 100%;
    color: #1b3355;
    font-family: "Ubuntu", Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: normal;
    cursor: pointer;
}

/* На страницах с .module-form-block-wr .form-block общий стиль label
   перебивает отступ чекбокса, и текст уезжает под квадратик. */
.module-form-block-wr .form-block .consent label {
    padding: 0 0 0 28px;
}

.consent label::before,
.consent label::after {
    position: absolute;
    content: "";
}

.consent label::before {
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    box-sizing: border-box;
    border: 1px solid #c9c9c9;
    border-radius: 3px;
    background: #fff;
}

.consent label::after {
    left: 4px;
    top: 4px;
    width: 13px;
    height: 7px;
    border-right: 2px solid #a8844b;
    border-top: 2px solid #a8844b;
    transform: rotate(126deg);
    opacity: 0;
    transition: opacity .15s ease;
}

.consent input[type="checkbox"]:checked + label::before {
    border-color: #a8844b;
}

.consent input[type="checkbox"]:checked + label::after {
    opacity: 1;
}

.consent input[type="checkbox"]:focus + label::before {
    box-shadow: 0 0 0 3px rgba(168, 132, 75, .2);
}

.consent label a {
    color: #a8844b;
    text-decoration: underline;
}


.message_error {
    margin: 0 0 12px;
    padding: 8px 10px;
    border: 1px solid #f1b7b7;
    border-radius: 6px;
    background: #fff5f5;
    color: #b42318;
    font-size: 13px;
    line-height: 1.4;
}

.consent-error {
    margin: -4px 0 8px 30px;
    color: #b42318;
    font-size: 12px;
    line-height: 1.35;
}
