/**
 * Стили для галочки согласия с политикой конфиденциальности
 */

.privacy-checkbox-container {
    margin: 16px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: all 0.3s ease;
}

.privacy-checkbox-container.error {
    border: 1px solid #ff4444;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 68, 68, 0.05);
}

.privacy-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    cursor: pointer;
    margin-top: 2px;
    accent-color: #FFA800;

    /* Переопределяем appearance для видимости */
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: checkbox !important;

    /* Альтернативный стиль с кастомным видом */
    /* Если нужен кастомный вид, раскомментируйте код ниже */
    /*
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 4px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    position: relative !important;
    transition: all 0.2s ease !important;
    */
}

/* Кастомный стиль для checked состояния (если используется кастомный вид) */
/*
.privacy-checkbox:checked {
    background: #FFA800 !important;
    border-color: #FFA800 !important;
}

.privacy-checkbox:checked::after {
    content: '✓' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: #000 !important;
    font-size: 14px !important;
    font-weight: bold !important;
}
*/

.privacy-checkbox:hover {
    opacity: 0.8;
}

.privacy-label {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.privacy-link {
    color: #FFA800;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: #FFB800;
    text-decoration: none;
}

.privacy-error {
    color: #ff4444;
    font-size: 13px;
    margin-top: 8px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .privacy-checkbox-container {
        margin: 14px 0;
    }

    .privacy-checkbox {
        width: 18px;
        height: 18px;
        min-width: 18px;
    }

    .privacy-label {
        font-size: 13px;
    }

    .privacy-error {
        font-size: 12px;
    }
}

/* Тёмная тема (уже используется на сайте) */
body.blackBG .privacy-label {
    color: rgba(255, 255, 255, 0.8);
}

body.blackBG .privacy-checkbox-container.error {
    background: rgba(255, 68, 68, 0.08);
}
