/* Captcha and Anti-Spam Styling */

.captcha-section {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.captcha-section .card-header {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border-bottom: none;
}

.captcha-section .card-header h6 {
    margin: 0;
    font-weight: 600;
}

.captcha-section .card-body {
    padding: 1.5rem;
}

.captcha-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.captcha-input {
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.captcha-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.captcha-help-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Honeypot field - hidden from users but accessible to bots */
.honeypot-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* Captcha validation styling */
.captcha-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.captcha-success {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

/* Security badge styling */
.security-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background: #28a745;
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.security-badge i {
    margin-right: 0.25rem;
}

/* Form submission protection indicator */
.form-protection {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.form-protection .protection-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.protection-status .status-indicator {
    display: flex;
    align-items: center;
    color: #28a745;
    font-weight: 600;
}

.protection-status .status-indicator i {
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .captcha-section .card-body {
        padding: 1rem;
    }
    
    .captcha-question {
        font-size: 1rem;
    }
}
