/* Image CAPTCHA CSS Styles */
.image-captcha-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    backdrop-filter: blur(5px);
}
.image-captcha-overlay.active {
    display: flex;
}
.image-captcha-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
}
.captcha-question {
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 18px;
    line-height: 1.4;
    color: #1d2327;
    padding: 0 10px;
}
.captcha-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}
.captcha-image-label {
    display: block;
    cursor: pointer;
    border: 3px solid #dcdcde;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 1;
    overflow: hidden;
    background: #f6f7f7;
    position: relative;
}
.captcha-image-label:hover {
    border-color: #007cba;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.captcha-image-label.selected {
    border-color: #00a32a;
    border-width: 4px;
    background-color: #f0fff4;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 163, 42, 0.2);
}
.captcha-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}
.captcha-image-label:hover .captcha-image {
    transform: scale(1.1);
}
.captcha-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}
.captcha-button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 120px;
}
.captcha-regenerate {
    background: #f0f0f1;
    color: #2c3338;
    border: 2px solid #dcdcde;
}
.captcha-regenerate:hover {
    background: #e0e0e0;
    border-color: #c3c4c7;
    transform: translateY(-1px);
}
.captcha-verify {
    background: #007cba;
    color: white;
    border: 2px solid #007cba;
}
.captcha-verify:hover {
    background: #005a87;
    border-color: #005a87;
    transform: translateY(-1px);
}
.captcha-error {
    color: #d63638;
    font-size: 14px;
    margin-top: 15px;
    display: none;
    font-weight: 500;
    background: #fcf0f1;
    padding: 10px;
    border-radius: 6px;
    border-left: 4px solid #d63638;
}
.captcha-error.active {
    display: block;
}
input[type='checkbox'] {
    display: none;
}
.captcha-checkmark {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: #00a32a;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
}
.captcha-image-label.selected .captcha-checkmark {
    display: flex;
}
.captcha-loading {
    display: none;
    color: #007cba;
    font-weight: 600;
    margin-top: 10px;
}
.captcha-loading.active {
    display: block;
}
.captcha-trigger {
    display: none;
}
@media (max-width: 768px) {
    .image-captcha-container {
        padding: 20px;
        margin: 10px;
    }
    .captcha-images-grid {
        gap: 8px;
    }
    .captcha-button {
        padding: 10px 20px;
        min-width: 110px;
        font-size: 14px;
    }
    .captcha-question {
        font-size: 16px;
    }
}