/* ============================================================
   SLIDER CAPTCHA STYLING
   ============================================================ */

.slider-captcha-wrapper {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
    position: relative;
    user-select: none;
}

.slider-captcha-track {
    width: 100%;
    height: 48px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}

.slider-captcha-bg {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, #2A9DDD 0%, #22c55e 100%);
    border-radius: 24px 0 0 24px;
    transition: background 0.2s ease;
}

.slider-captcha-label {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.slider-captcha-thumb {
    position: absolute;
    left: 0;
    top: 2px;
    width: 44px;
    height: 44px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(13, 30, 49, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 3;
    transform: translate(2px);
    transition: transform 0.05s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.slider-captcha-thumb:active {
    cursor: grabbing;
}

.slider-captcha-thumb:focus-visible {
    box-shadow: 0 0 0 3px rgba(42, 157, 221, 0.4);
}

.slider-captcha-arrow-icon {
    color: #475569;
    transition: transform 0.2s ease;
}

/* Success Verified State */
.slider-captcha-track.verified {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.slider-captcha-track.verified .slider-captcha-label {
    color: #15803d;
    font-weight: 600;
    opacity: 0.9;
}

.slider-captcha-track.verified .slider-captcha-thumb {
    background-color: #ffffff;
    box-shadow: 0 3px 8px rgba(34, 197, 94, 0.25);
    cursor: default;
}

/* Yii2 ActiveForm validation error states */
.slider-captcha-wrapper .has-error .help-block {
    font-size: 12px;
    color: #e53e3e;
    margin-top: 5px;
    margin-bottom: 0;
    display: block;
}
