.captcha-widget {
    display: grid;
    gap: 0.55rem;
    margin: 0.75rem 0;
}

.captcha-widget > label {
    font-weight: 700;
}

.captcha-hint {
    color: #755b61;
}

.captcha-image-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.captcha-image {
    display: block;
    width: 220px;
    height: 64px;
    border: 1px solid #ead1d6;
    border-radius: 0.5rem;
    background: #fff4f5;
}

.captcha-refresh {
    min-height: 40px;
    padding: 0.5rem 0.8rem;
    border: 1px solid #c43d54;
    border-radius: 2rem;
    color: #42161e;
    font: inherit;
    font-weight: 700;
    background: #fff;
    cursor: pointer;
}

.captcha-refresh:hover {
    background: #fff4f5;
}

.captcha-widget input[name="captcha_answer"] {
    width: min(100%, 220px);
    min-height: 44px;
    padding: 0.6rem 0.75rem;
    border: 1px solid #d8c2c6;
    border-radius: 0.5rem;
    font: inherit;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.captcha-refresh:focus-visible,
.captcha-widget input:focus-visible {
    outline: 3px solid rgba(255, 72, 88, 0.3);
    outline-offset: 2px;
}
