/* hCaptcha-Styling für Events4Pets */

/* hCaptcha-Container */
.hcaptcha-container {
    margin-bottom: 1rem;
    position: relative;
}

/* hCaptcha-Widget */
.hcaptcha-widget {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 78px; /* Standard hCaptcha-Höhe */
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.hcaptcha-widget:hover {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* hCaptcha-Fehleranzeige */
.hcaptcha-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    border-radius: 0.375rem;
    display: none;
}

.hcaptcha-error.show {
    display: block;
}

/* hCaptcha-Loading-Zustand */
.hcaptcha-widget.loading {
    background-color: #e9ecef;
    opacity: 0.7;
    pointer-events: none;
}

/* hCaptcha-Success-Zustand */
.hcaptcha-widget.success {
    border-color: #198754;
    background-color: #d1e7dd;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hcaptcha-widget {
        min-height: 65px; /* Kleinere Höhe auf mobilen Geräten */
    }
    
    .hcaptcha-container {
        margin-bottom: 0.75rem;
    }
}

/* Dark Mode Support (falls implementiert) */
@media (prefers-color-scheme: dark) {
    .hcaptcha-widget {
        background-color: #343a40;
        border-color: #495057;
    }
    
    .hcaptcha-widget:hover {
        border-color: #6ea8fe;
        box-shadow: 0 0 0 0.25rem rgba(110, 168, 254, 0.25);
    }
    
    .hcaptcha-error {
        background-color: #2c1e1e;
        border-color: #4a2c2c;
        color: #f8d7da;
    }
}

/* Accessibility */
.hcaptcha-widget:focus-within {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Animation für Fehleranzeige */
.hcaptcha-error {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Integration mit Bootstrap-Formularen */
.form-control:focus + .hcaptcha-container .hcaptcha-widget {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Custom hCaptcha-Themes */
.hcaptcha-widget[data-theme="dark"] {
    background-color: #212529;
    border-color: #495057;
}

.hcaptcha-widget[data-theme="dark"]:hover {
    border-color: #6ea8fe;
    box-shadow: 0 0 0 0.25rem rgba(110, 168, 254, 0.25);
}

/* Compact Mode */
.hcaptcha-widget[data-size="compact"] {
    min-height: 60px;
}

/* Invisible Mode (falls verwendet) */
.hcaptcha-widget[data-size="invisible"] {
    min-height: 0;
    border: none;
    background: transparent;
}

/* Print Styles */
@media print {
    .hcaptcha-container {
        display: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .hcaptcha-widget {
        border-width: 2px;
    }
    
    .hcaptcha-error {
        border-width: 2px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hcaptcha-error {
        animation: none;
    }
    
    .hcaptcha-widget {
        transition: none;
    }
} 