/* Чекбоксы согласия — зелёный фон + белая галочка при чеке, кликабельные ссылки */
.wpcf7-acceptance .wpcf7-list-item-label,
.subscribe-form__group.checkbox label,
.callback-form__group.checkbox label,
.question-form__group.checkbox label,
.education-form__group.checkbox label,
.review-form__group.checkbox label,
.one-click-form__group.checkbox label,
.pamyatka-form__group.checkbox label {
    cursor: pointer;
}

.wpcf7-acceptance .wpcf7-list-item-label a,
.subscribe-form__group.checkbox label a,
.callback-form__group.checkbox label a,
.question-form__group.checkbox label a,
.education-form__group.checkbox label a,
.review-form__group.checkbox label a,
.one-click-form__group.checkbox label a,
.pamyatka-form__group.checkbox label a {
    color: #1d7656;
    text-decoration: underline;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    cursor: pointer;
}

.wpcf7-acceptance .wpcf7-list-item-label a:hover,
.subscribe-form__group.checkbox label a:hover,
.callback-form__group.checkbox label a:hover,
.question-form__group.checkbox label a:hover,
.education-form__group.checkbox label a:hover,
.review-form__group.checkbox label a:hover,
.one-click-form__group.checkbox label a:hover,
.pamyatka-form__group.checkbox label a:hover {
    color: #145c43;
}

/* CF7 acceptance — checked: зелёный квадрат + белая галочка */
.wpcf7-acceptance input[type="checkbox"]:checked + .wpcf7-list-item-label:before {
    background: #1d7656;
    border-color: #1d7656;
}

.wpcf7-acceptance input[type="checkbox"]:checked + .wpcf7-list-item-label:after {
    border-color: #fff;
}

/* Кастомные чекбоксы форм (one-click, pamyatka и т.п.) */
.one-click-form__group.checkbox,
.pamyatka-form__group.checkbox {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin: 10px 0;
}

.one-click-form__group.checkbox input[type="checkbox"],
.pamyatka-form__group.checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 1;
}

.one-click-form__group.checkbox label,
.pamyatka-form__group.checkbox label {
    position: relative;
    padding-left: 30px;
    line-height: 1.4;
    font-size: 14px;
    color: #333;
    display: block;
}

.one-click-form__group.checkbox label:before,
.pamyatka-form__group.checkbox label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #1d7656;
    background: #fff;
    border-radius: 4px;
    box-sizing: border-box;
    transition: background-color .15s ease, border-color .15s ease;
}

.one-click-form__group.checkbox input[type="checkbox"]:checked + label:before,
.pamyatka-form__group.checkbox input[type="checkbox"]:checked + label:before {
    background: #1d7656;
    border-color: #1d7656;
}

.one-click-form__group.checkbox input[type="checkbox"]:checked + label:after,
.pamyatka-form__group.checkbox input[type="checkbox"]:checked + label:after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Subscribe form в футере — переопределение зелёной галочки */
.subscribe-form__group.checkbox input[type="checkbox"]:checked + label:after,
.subscribe-form__checkbox:checked + label:after,
.subscribe-form__checkbox:checked ~ label:after {
    border-color: #fff !important;
}

.subscribe-form__group.checkbox input[type="checkbox"]:checked + label:before,
.subscribe-form__checkbox:checked + label:before,
.subscribe-form__checkbox:checked ~ label:before {
    background: #1d7656 !important;
    border-color: #1d7656 !important;
}
