/* Modale verifica matematica anti-bot (mfr_human_guard_render_modal_panel) */

body.body-stage .stage-human-guard {
    --stage-hg-border: rgba(15, 23, 42, 0.1);
    --stage-hg-ink: #000;
    --stage-hg-muted: rgba(0, 0, 0, 0.58);
    --stage-hg-surface: #fff;
    --stage-hg-shadow: 0 28px 72px rgba(15, 23, 42, 0.12);
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

body.body-stage .stage-human-guard[hidden] {
    display: none;
}

body.body-stage .stage-human-guard__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

body.body-stage .stage-human-guard__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 22.5rem);
    padding: clamp(1.35rem, 3vw, 1.65rem);
    border-radius: 1.25rem;
    border: 1px solid var(--stage-hg-border);
    background: var(--stage-hg-surface);
    box-shadow: var(--stage-hg-shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--stage-hg-ink);
    animation: stage-human-guard-in 0.22s ease-out;
}

@keyframes stage-human-guard-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

body.body-stage .stage-human-guard__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

body.body-stage .stage-human-guard__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid var(--stage-hg-border);
    color: var(--stage-hg-ink);
}

body.body-stage .stage-human-guard__icon svg {
    display: block;
    width: 1.375rem;
    height: 1.375rem;
}

body.body-stage .stage-human-guard__head-copy {
    min-width: 0;
    width: 100%;
}

body.body-stage .stage-human-guard__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--stage-hg-ink);
}

body.body-stage .stage-human-guard__lede {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--stage-hg-muted);
}

body.body-stage .stage-human-guard__prompt {
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    border: 1px solid var(--stage-hg-border);
    font-size: 0.9375rem;
    line-height: 1.5;
    text-align: center;
    color: var(--stage-hg-ink);
}

body.body-stage .stage-human-guard__prompt strong {
    display: inline-block;
    margin-top: 0.15rem;
    font-size: 1.25rem;
    color: var(--stage-hg-ink);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

body.body-stage .stage-human-guard__field {
    display: flex;
    justify-content: center;
}

body.body-stage .stage-human-guard__input {
    width: 100%;
    max-width: 6.5rem;
    min-height: 3rem;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.04em;
    border-radius: 0.75rem;
    border: 1px solid var(--stage-hg-border);
    background: #fff;
    color: var(--stage-hg-ink);
}

body.body-stage .stage-human-guard__input:hover:not(:focus) {
    border-color: rgba(0, 0, 0, 0.22);
}

body.body-stage .stage-human-guard__input:focus-visible {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

body.body-stage .stage-human-guard.is-error .stage-human-guard__input {
    border-color: #b91c1c;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

body.body-stage .stage-human-guard__error {
    margin: -0.35rem 0 0;
    font-size: 0.875rem;
    line-height: 1.4;
    text-align: center;
    color: #b91c1c;
}

body.body-stage .stage-human-guard__error[hidden] {
    display: none;
}

body.body-stage .stage-human-guard__actions {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
}

body.body-stage .stage-human-guard__actions .primary-button,
body.body-stage .stage-human-guard__actions .secondary-button {
    width: 100%;
    justify-content: center;
    min-width: 0;
}

body.body-stage.stage-human-guard-open {
    overflow: hidden;
}
