/* Captcha (EXT:bw_captcha) */

/* Contact form only: label sits above the image instead of floating over the input like the other fields */
.contactform .form-group:has(.captcha) > label,
.contactform .form-group.is-focused:has(.captcha) > label,
.contactform .form-group.has-error:has(.captcha) > label,
.contactform .form-group.has-success:has(.captcha) > label {
    position: static;
    display: block;
    margin-bottom: 1rem;
    font-size: inherit;
}

/* Image, reload and audio button in one row (all forms) */
.captcha {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.captcha img {
    display: block;
    max-width: 100%;
    height: auto;
}

.captcha a {
    display: inline-flex;
    align-items: center;
}

/* Reload icon has no viewBox -> keep its native size; scale only the audio icon */
.captcha .captcha__audio svg {
    height: 2.8rem;
    width: auto;
}
