.captcha-container {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.captcha-box {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 6px;
    gap: 8px;
    transition: all 0.3s ease;
}

.captcha-box:focus-within {
    border-color: #747bf5;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
    background: #fff;
}

.captcha-image-container {
    background: #fff;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    overflow: hidden;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 152px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.captcha-image-container:hover {
    background: #fdfdfd;
    box-shadow: inset 0 0 0 1px #747bf5;
}

.captcha-image-container:active {
    transform: scale(0.98);
}

.captcha-image-container img {
    height: 100%;
    width: auto;
    display: block;
    user-select: none;
    pointer-events: none;
}

.captcha-input-container {
    flex: 1;
}

.captcha-input-container input {
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #2c3e50;
    height: 44px;
}

.captcha-input-container input:focus {
    outline: none;
}

.captcha-input-container input::placeholder {
    font-size: 13px;
    letter-spacing: normal;
    font-weight: normal;
    color: #adb5bd;
    text-transform: none;
}

/* Error state */
.captcha-container.has-error .captcha-box {
    border-color: #e74c3c;
    background: #fffefe;
}

.captcha-hint {
    display: block;
    font-size: 11px;
    color: #6b7280;
    margin-top: -4px;
    margin-left: 4px;
}

/* Responsive */
@media (max-width: 400px) {
    .captcha-box {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
    }
    
    .captcha-image-container {
        width: 100%;
        height: 50px;
    }
    
    .captcha-input-container input {
        text-align: center;
    }
}