﻿#contact-captcha-button {
    display: flex; align-items: center; gap: 0.5em;
    padding-top: 0; padding-bottom: 0; padding-right: 1em;
    font-weight: normal; text-align: left; cursor: pointer;
}
#contact-captcha-button::after { content: none; }
#contact-captcha-button .contact-captcha-box {
    display: block; position: relative; flex: 0 0 var(--contact-captcha-size, 1vw); align-self: center;
    width: var(--contact-captcha-size, 1vw); height: var(--contact-captcha-size, 1vw); box-sizing: border-box;
}
#contact-captcha-button .contact-captcha-box::after {
    content: ''; display: block; position: absolute; inset: 0;
    background: url('../img/check.png') no-repeat center / 100% 100%;
    filter: brightness(0) invert(1);
}
#contact-captcha-button.is-verified .contact-captcha-box::after {
    background-image: url('../img/checked.png');
}
#contact-captcha-button:focus-visible, .contact-captcha-close:focus-visible {
    outline: 2px solid #b47d32; outline-offset: 3px;
}
#contact-captcha-popup[hidden] { display: none; }
#contact-captcha-popup {
    position: fixed; inset: 0; z-index: 10000; display: flex;
    align-items: center; justify-content: center; background: rgba(0,0,0,.6);
}
.contact-captcha-dialog {
    position: relative; max-width: calc(100vw - 24px); box-sizing: border-box;
    padding: 44px 12px 20px; border-radius: 8px; background: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,.25); color: #444;
}
.contact-captcha-close {
    position: absolute; right: 8px; top: 4px; padding: 4px 8px;
    border: 0; background: transparent; color: #555; font-size: 24px; cursor: pointer;
}
#contact-captcha-status { max-width: 304px; margin: 8px 0 0; font: 14px/1.5 sans-serif; }
