/* Captcha anti-spam del modulo contatti (stile come i campi del modulo) */
.ciber-captcha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 16px;
    min-height: 60px;
    margin-bottom: 20px;
    padding: 10px 26px 10px 30px;
    border: 1px solid #c1c1c1;
    border-radius: 52px;
    background-color: #fff;
    color: #555;
}
.ciber-captcha__box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0;
    border: 0;
    background: none;
    color: #555;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.ciber-captcha__box:focus-visible { outline: 2px solid #f13b6a; outline-offset: 4px; border-radius: 6px; }
.ciber-captcha[data-state="verified"] .ciber-captcha__box,
.ciber-captcha[data-state="verifying"] .ciber-captcha__box { cursor: default; }
.ciber-captcha__check {
    position: relative;
    flex: none;
    width: 26px;
    height: 26px;
    border: 2px solid #1d2a60;
    border-radius: 6px;
    transition: background-color 0.2s, border-color 0.2s;
}
.ciber-captcha[data-state="verifying"] .ciber-captcha__check {
    border-color: #f13b6a;
    border-right-color: transparent;
    border-radius: 50%;
    animation: ciber-captcha-spin 0.8s linear infinite;
}
.ciber-captcha[data-state="verified"] .ciber-captcha__check {
    background-color: #1d8a4b;
    border-color: #1d8a4b;
}
.ciber-captcha[data-state="verified"] .ciber-captcha__check::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 2px;
    width: 8px;
    height: 14px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}
.ciber-captcha[data-state="error"] .ciber-captcha__check { border-color: #c0392b; }
.ciber-captcha[data-state="error"] .ciber-captcha__label { color: #c0392b; }
.ciber-captcha__note {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}
@keyframes ciber-captcha-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .ciber-captcha[data-state="verifying"] .ciber-captcha__check { animation-duration: 2.5s; }
}
@media (max-width: 576px) {
    .ciber-captcha { border-radius: 28px; padding-left: 22px; }
}
