/* Стиль для поля ввода с ошибкой */
.form-input.error {
    border-color: #ff5050; /* Красная рамка */
    box-shadow: 0 0 5px rgba(255, 80, 80, 0.5); /* Легкое свечение */
}

/* Стиль для текста ошибки */
.form-error {
    color: #ff5050;
    font-size: 0.9em;
    margin-top: 5px;
    /* Чтобы макет не "прыгал" при появлении/исчезновении ошибки */
    min-height: 1.2em; 
}

/* Блок чекбокса */
.form-check {
    display: flex;
    align-items: center;
    gap: 12px; /* Вместо margin-right */
    margin-bottom: 25px;
    user-select: none;
}

/* Скрываем стандартный чекбокс */
.form-check-input {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #666;
    border-radius: 6px;
    background-color: #1c1c1c;
    position: relative;
    cursor: pointer;
    transition: all 0.25s ease;
}

/* Эффект при наведении */
.form-check-input:hover {
    border-color: #4a90e2;
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.4);
}

/* Галочка */
.form-check-input:checked {
    background-color: #4a90e2;
    border-color: #4a90e2;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.6);
}

.form-check-input:checked::after {
    content: "✔";
    position: absolute;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -55%);
}

/* Текст */
.form-check-label {
    font-size: 15px;
    color: #bfbfbf;
    transition: color 0.3s ease;
    cursor: pointer;
}

.form-check-label:hover {
    color: #fff;
}

/* Ссылка */
.form-check-label a {
    color: #4a90e2;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

.form-check-label a:hover {
    color: #72b7ff;
    text-shadow: 0 0 6px rgba(74, 144, 226, 0.6);
}

/* Кнопка (disabled) */
.form-button:disabled {
    background: linear-gradient(145deg, #444, #222);
    color: #888;
    border: none;
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.6);
}

/* Кнопка (active) */
.form-button {
    transition: all 0.3s ease;
}

.form-button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74,144,226,0.4);
}

@media (max-width: 767px) {
    .form-group.form-check {
        gap: 12px
    }
    .form-check-input{
        width: 24px;
        height: 27px;
        /* border-radius: 50%; */
    }
}

@media (max-width: 500px) {
    .form-group.form-check {
        gap: 12px
    }
    .form-check-input{
        width: 40px;
        height: 27px;
        /* border-radius: 50%; */
    }
}

@media (max-width: 380px) {
    .form-group.form-check {
        gap: 12px
    }
    .form-check-input{
        width: 54px;
        height: 27px;
        /* border-radius: 50%; */
    }
    .form-check-label {
        font-size: 13px;
    }
}