/* ============================================================
   Contact Form – CCM19 Overlay, Honeypot, Cloudflare Turnstile
   themes/your-theme/css/contact-form.css
   ============================================================ */

/* ---- Wrapper ---- */
.contact-form-wrapper {
    position: relative;
    min-height: 400px;
}

/* ---- Honeypot ----
   position:absolute statt display:none: Bots finden das Feld,
   echte Nutzer sehen und erreichen es nicht. */
.contact-honeypot {
    position: absolute !important;
    left:     -9999px  !important;
    top:      0        !important;
    width:    0        !important;
    height:   0        !important;
    overflow: hidden   !important;
    opacity:  0        !important;
    pointer-events: none !important;
}

/* ---- CCM19 Overlay ---- */
.contact-cookie-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 2rem;
}

.contact-cookie-overlay__inner {
    max-width: 480px;
    text-align: center;
    padding: 2.5rem 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.contact-cookie-overlay__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    background: #fff3e8;
    border-radius: 50%;
    color: #f6821f; /* Cloudflare Orange */
}

.contact-cookie-overlay__inner h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1a1a2e;
}

.contact-cookie-overlay__inner p {
    font-size: 0.93rem;
    color: #555;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

/* ---- Formular-Blur wenn Overlay aktiv ---- */
.contact-form-content--blurred {
    filter: blur(3px);
    pointer-events: none;
    user-select: none;
}

/* ---- Turnstile Widget ---- */
.turnstile-wrapper {
    margin-top: 0.25rem;
    margin-bottom: 1rem;
}

/* Turnstile-Widget responsiv: auf sehr schmalen Screens skalieren */
.cf-turnstile {
    max-width: 100%;
}

.turnstile-error {
    color: #dc3545;
    margin-top: 0.4rem;
    font-size: 0.875rem;
}

/* ---- Erfolgs-/Fehlermeldungen ---- */
.contact-success-message {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

/* ---- Responsive ---- */
@media (max-width: 575px) {
    .contact-cookie-overlay {
        align-items: flex-start;
        padding-top: 3rem;
    }
    .contact-cookie-overlay__inner {
        padding: 1.75rem 1.25rem;
    }
}


.is-invalid {
    border-color: #dc3545 !important;
}

.help-block {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.2em;
}

