.input-error, .input-error::placeholder {
    color: #ff0000 !important;
}

/* 1. Выравнивание: убираем лишние паддинги и делаем блок на всю ширину */
.label__group {
    display: flex; /* Не inline-flex, чтобы занимал всю строку */
    align-items: flex-start;
    position: relative;
    gap: 12px; /* Современный способ сделать отступ между боксом и текстом */
    margin-bottom: 15px;
    cursor: default; /* На самом тексте курсор обычный */
}

/* 2. Прячем инпут, но НЕ растягиваем его на весь текст */
.label__group input[type="checkbox"] {
    position: absolute;
    width: 24px;
    height: 24px;
    opacity: 0;
    margin: 0;
    cursor: pointer;
    z-index: 2; /* Лежит ровно над .checkbox-box */
}

/* 3. Кастомный квадрат */
.label__group .checkbox-box {
    flex-shrink: 0; /* Чтобы квадрат не сплющило */
    width: 24px;
    height: 24px;
    background: #f2f2f2;
    border-radius: 4px;
    position: relative;
    transition: background 0.3s ease;
}

/* Галочка внутри */
.label__group .checkbox-box:after {
    content: '';
    background: url('img/i-checked-white.svg') #1b3757 no-repeat center;
    background-size: 16px;
    position: absolute;
    inset: 0;
    border-radius: 4px;
    transform: scale(0);
    transition: transform 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46);
}

/* Логика активации */
.label__group input[type="checkbox"]:checked + .checkbox-box:after {
    transform: scale(1);
}

/* Ховер только при наведении на область чекбокса */
.label__group input[type="checkbox"]:hover + .checkbox-box {
    background: #4baaf3;
}

/* 4. Текст: теперь он не активирует чекбокс */
.label__group .checkbox-text {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    pointer-events: auto; /* Ссылки внутри будут работать */
    user-select: none;
}

.label__group .checkbox-text a {
    display: inline;
}

/* Ссылки */
.label__group .checkbox-text a {
    color: #1b3757;
    text-decoration: underline;
    position: relative;
    z-index: 3; /* Чтобы ссылка была выше невидимого инпута, если они пересекутся */
}

.input-error {
    border: 1px solid red;
}
