/* Custom Captcha Styles */
.custom-captcha-container {
    margin: 15px 0;
}

.custom-captcha-wrapper {
    position: relative;
    width: 100%;
}

.custom-captcha-btn {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 179, 71, 0.1);
    border: 2px solid rgba(255, 140, 0, 0.3);
    border-radius: 8px;
    color: #ffb347;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.custom-captcha-btn:hover {
    background: rgba(255, 179, 71, 0.15);
    border-color: rgba(255, 140, 0, 0.5);
    color: #ff8c00;
}

.custom-captcha-btn:active {
    transform: scale(0.98);
}

.custom-captcha-btn.completed {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.2) 0%, rgba(255, 179, 71, 0.2) 100%);
    border-color: rgba(255, 140, 0, 0.5);
    color: #ff8c00;
    cursor: default;
}

.custom-captcha-btn.completed .captcha-text {
    opacity: 1;
    color: #ff8c00;
}

.custom-captcha-btn.completed .captcha-progress {
    opacity: 0;
}

.captcha-text {
    position: relative;
    z-index: 2;
    display: block;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.captcha-text img {
    display: inline-block;
    vertical-align: middle;
}

.captcha-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(135deg, #ff8c00 0%, #ffb347 100%);
    width: 0%;
    will-change: width;
    z-index: 1;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-captcha-btn.holding {
    border-color: rgba(255, 140, 0, 0.6);
}

.custom-captcha-btn.holding .captcha-text {
    color: #fff;
    opacity: 1;
    font-weight: 700;
}

.custom-captcha-btn.holding .captcha-progress {
    opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .custom-captcha-btn {
        padding: 16px 20px;
        font-size: 14px;
    }
}

