/**
 * ERA-IT CAPTCHA Styling
 * Voeg toe aan je bestaande CSS of laad apart
 */

/* Captcha Container */
.captcha-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 16px 0;
}

.captcha-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    font-size: 14px;
}

.captcha-label svg {
    color: #29ABE2;
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.captcha-question {
    background: #1e293b;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Monaco', 'Consolas', monospace;
    letter-spacing: 2px;
    min-width: 120px;
    text-align: center;
}

.captcha-input {
    flex: 1;
    min-width: 80px;
    max-width: 100px;
    padding: 10px 14px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
}

.captcha-input:focus {
    outline: none;
    border-color: #29ABE2;
    box-shadow: 0 0 0 3px rgba(41, 171, 226, 0.15);
}

.captcha-input.captcha-error {
    border-color: #ef4444;
    background: #fef2f2;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.captcha-refresh {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-refresh:hover {
    background: #f1f5f9;
    border-color: #29ABE2;
}

.captcha-refresh svg {
    width: 20px;
    height: 20px;
    color: #64748b;
    transition: transform 0.3s ease;
}

.captcha-refresh:hover svg {
    transform: rotate(180deg);
    color: #29ABE2;
}

.captcha-error-msg {
    display: none;
    color: #dc2626;
    font-size: 13px;
    margin-top: 10px;
    padding: 8px 12px;
    background: #fef2f2;
    border-radius: 6px;
    border-left: 3px solid #dc2626;
}

/* Honeypot - MOET onzichtbaar zijn */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    z-index: -1;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 480px) {
    .captcha-box {
        flex-direction: column;
        align-items: stretch;
    }
    
    .captcha-question {
        width: 100%;
    }
    
    .captcha-input {
        max-width: 100%;
    }
    
    .captcha-refresh {
        align-self: flex-end;
    }
}
