#captchaModal {
    z-index: 4000;
}

#captchaModal .modal-body {
    text-align: center;
    padding: 24px 20px;
    background: #fff;
    border-radius: 0 0 16px 16px;
    scrollbar-width: none;
}

#captchaModal .modal-body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

#captchaModal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}

.captcha-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

#captchaCanvas {
    width: 100%;
    max-width: 340px;
    height: auto;
    border-radius: 12px;
    background: #f5f0eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.1s;
}

#captchaCanvas:active {
    transform: scale(0.995);
}

.captcha-security-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: #8d6e63;
    background: #fff8f6;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #efebe9;
}

.captcha-security-info i {
    color: #7b1e2b;
}

/* Hidden input but keeping class for reference */
.captcha-input-row {
    width: 100%;
    max-width: 340px;
    display: flex;
    justify-content: center;
}

.captcha-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 16px;
    text-align: center;
    outline: none;
    transition: all 0.2s ease;
    background: #fdfdfd;
}

/* Responsive adjustments */
@media (max-width: 360px) {
    #captchaCanvas {
        max-width: 100%;
    }
    
    #captchaModal .modal-body {
        padding: 16px 12px;
    }
}
