.robot-challenge {
    border: 1px solid rgba(69, 69, 69, 0.41);
    border-radius: 4px;
    max-width: 300px;
    padding: 0px !important;
    margin-top: 8px;
    margin-bottom: 8px;
    transition: background-color 0.2s ease;
    background-color: #f3f3f3;
}
.honeypot-field {
    opacity: 0; position: absolute; top: 0; left: 0; height: 0; width: 0; z-index: -1; pointer-events: none;
}

.security-checkbox {
    padding: 16px !important;
    display: flex;
    align-items: center;
    cursor: pointer;
//padding: 8px;
    user-select: none;
    position: relative;
    border-radius: 4px;
    background-color: #f3f3f3;
    transition: background-color 0.2s ease;
    min-height: 54px;
    box-sizing: border-box;
}
.security-checkbox:hover {
    background-color: #f0f2f5;
//padding: 8px;
}
.security-checkbox:focus-visible {
    outline: 0px solid #1877f2;
    outline-offset: 2px;
}

.security-checkbox .checkbox-visual {
    width: 18px;
    height: 18px;
    border: 2px solid #8a8d91;
    border-radius: 3px;
    margin-right: 12px; /* Отступ для спиннера и текста */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    transition: border-color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

/* Стили для состояния проверки */
.security-checkbox.checking .checkbox-visual {
    opacity: 0; /* Скрываем сам чекбокс */
    pointer-events: none;
    display: none;
}
.security-checkbox.checking .spinner-rc {
    display: inline-block !important; /* Показываем спиннер */
    /* Позиционируем спиннер на месте чекбокса */
    position: absolute;
    left: 12px; /* Или настройте по вашему checkbox-visual */
    top: 14px;
    transform: translateY(-50%);
    margin-left: 2px; /* Небольшой отступ, если нужно */
}
.security-checkbox.checking .checkbox-label {
    margin-left: 34px; /* Сдвигаем текст, чтобы не накладывался на спиннер */
}


.security-checkbox.checked .checkbox-visual {
    background-color: #248c07;
    border-color: #248c07;
    opacity: 1; /* Убедимся, что он видим после проверки */
}

.security-checkbox.checked .checkbox-visual::after {
    content: "\2713"; color: white; font-size: 14px; line-height: 1;
}
.security-checkbox .checkbox-label {
    font-size: 15px;
//transition: margin-left 0.2s ease;
}

/* Спиннер */
.spinner-rc {
    padding-right: 0 !important;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1877f2;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
;
    /* display: none; По умолчанию скрыт, управляется JS или классом .checking */
    /* margin-left: 10px; Удаляем, т.к. позиционируем абсолютно */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


#verifyImageCaptchaButton {
    display: block;
    width: 100%;
    padding: 12px 15px;
    background-color: #1877f2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    transition: background-color 0.2s ease-in-out;
    margin-top: 10px;
}
#verifyImageCaptchaButton {
    margin-top: 15px;
}

#verifyImageCaptchaButton:hover {
    background-color: #166fe5;
}
#verifyImageCaptchaButton:disabled {
    background-color: #bec3c9;
    cursor: not-allowed;
}

.modal .errors, .modal  .success {
    padding: 15px; border-radius: 6px; margin-bottom: 20px; font-size: 15px;
}
.modal .errors {
    background-color: #fdeCEA; color: #7D2A2D; border: 1px solid #f5c6cb;
}
.modal .errors ul { margin: 0; padding-left: 20px; }
.modal .success {
    background-color: #E5F6EA; color: #155724; border: 1px solid #c3e6cb;
}
.modal .error-message {
    font-size: 1em; color: #fa383e; margin-top: 4px; padding-left: 10px;padding-bottom: 8px;
    display:none; margin-top:10px;max-width: 308px;
}

/* Модальное окно CAPTCHA */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content-close {
    position: absolute;
    right: 14px;top:10px;font-size: 16px;cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0.7;
}
.modal-content-close:hover {
    opacity: 1;
}
.modal-header {
    text-align: center;padding-bottom: 8px;
}

.modal-content {
    position: relative;
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: auto;
    max-width: 350px;
    text-align: center;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

#imageCaptchaCanvas {
    border: 1px solid #ccc;
    cursor: pointer;
    background: #fefcf7;
    border-radius: 8px;
}
#captchaTaskDescription {
    font-weight: bold;
    font-size: 18px;
}