/* Safety net: CAPTCHA EW nu trebuie afișat niciodată în header/meniu/search/language switcher. */
header .asew-math-captcha,
header .asew-external-captcha,
nav .asew-math-captcha,
nav .asew-external-captcha,
[role="banner"] .asew-math-captcha,
[role="banner"] .asew-external-captcha,
[data-elementor-type="header"] .asew-math-captcha,
[data-elementor-type="header"] .asew-external-captcha,
.elementor-location-header .asew-math-captcha,
.elementor-location-header .asew-external-captcha,
.site-header .asew-math-captcha,
.site-header .asew-external-captcha,
#masthead .asew-math-captcha,
#masthead .asew-external-captcha,
.elementor-widget-nav-menu .asew-math-captcha,
.elementor-widget-nav-menu .asew-external-captcha,
.elementor-widget-search .asew-math-captcha,
.elementor-widget-search .asew-external-captcha,
.elementor-widget-search-v2 .asew-math-captcha,
.elementor-widget-search-v2 .asew-external-captcha,
.elementor-widget-woocommerce-menu-cart .asew-math-captcha,
.elementor-widget-woocommerce-menu-cart .asew-external-captcha,
.gt_float_switcher .asew-math-captcha,
.gt_float_switcher .asew-external-captcha,
.gtranslate_wrapper .asew-math-captcha,
.gtranslate_wrapper .asew-external-captcha,
.wpml-ls .asew-math-captcha,
.wpml-ls .asew-external-captcha,
.trp-language-switcher .asew-math-captcha,
.trp-language-switcher .asew-external-captcha,
.weglot-container .asew-math-captcha,
.weglot-container .asew-external-captcha {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.asew-honeypot {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.asew-math-captcha,
.asew-external-captcha {
    width: 100% !important;
    clear: both !important;
    margin: 0 0 18px 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
}

.asew-math-captcha *,
.asew-external-captcha * {
    box-sizing: border-box !important;
}

.asew-math-label,
.asew-external-label {
    display: block !important;
    width: 100% !important;
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
    text-align: center !important;
}

.elementor-form .asew-math-label,
.elementor-form .asew-math-question,
.elementor-field-group .asew-math-label,
.elementor-field-group .asew-math-question {
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
}

.asew-math-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
}

.asew-math-question {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: 1 !important;
    color: inherit !important;
    white-space: nowrap !important;
    text-align: center !important;
    vertical-align: middle !important;
}

.asew-math-input,
.elementor-form .asew-math-input,
.elementor-field-group .asew-math-input {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 3px 4px !important;
    text-align: center !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: 1 !important;
    color: inherit !important;
    border: 1px solid #999 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    vertical-align: middle !important;
}

.asew-math-input::placeholder {
    color: transparent !important;
}

.asew-math-input:focus {
    outline: 1px solid #777 !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
}

.asew-captcha-widget {
    min-height: 64px;
}

@media (max-width: 767px) {
    .asew-math-captcha,
    .asew-external-captcha {
        margin-bottom: 16px !important;
    }

    .asew-math-label {
        margin-bottom: 12px !important;
    }

    .asew-math-row {
        gap: 10px !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
    }

    .asew-math-question {
        min-height: 34px !important;
    }

    .asew-math-input,
    .elementor-form .asew-math-input,
    .elementor-field-group .asew-math-input {
        width: 52px !important;
        min-width: 52px !important;
        max-width: 52px !important;
        height: 34px !important;
        min-height: 34px !important;
    }
}


/* v1.12 - CAPTCHA vizual permis exclusiv în Elementor Form și Fluent Forms. */
html body .asew-math-captcha.asew-math-captcha,
html body .asew-external-captcha.asew-external-captcha {
    display: none !important;
}

html body form.elementor-form .asew-math-captcha.asew-math-captcha,
html body .elementor-widget-form form .asew-math-captcha.asew-math-captcha,
html body form.elementor-form .asew-external-captcha.asew-external-captcha,
html body .elementor-widget-form form .asew-external-captcha.asew-external-captcha,
html body form.frm-fluent-form .asew-math-captcha.asew-math-captcha,
html body .fluentform form .asew-math-captcha.asew-math-captcha,
html body form.frm-fluent-form .asew-external-captcha.asew-external-captcha,
html body .fluentform form .asew-external-captcha.asew-external-captcha {
    display: block !important;
}

/* Fluent Forms: păstrează CAPTCHA în fluxul formularului și înainte de buton. */
.fluentform .asew-math-captcha,
.fluentform .asew-external-captcha {
    position: relative !important;
    float: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
}
