.captcha-widget {
    display: grid;
    grid-template-columns: minmax(100px, 1fr) 150px 44px;
    align-items: center;
    gap: 10px;
}

.captcha-widget label {
    grid-column: 1 / -1;
}

.captcha-widget input[type="text"] {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    text-transform: uppercase;
}

.captcha-image {
    display: block;
    width: 150px;
    height: 50px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
}

.captcha-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--deep-blue);
    background: var(--white);
    border: 2px solid var(--deep-blue);
    border-radius: 5px;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.captcha-refresh:hover,
.captcha-refresh:focus-visible {
    color: var(--white);
    background: var(--deep-blue);
}

.form-help {
    grid-column: 1 / -1;
    margin: 0;
    color: #666;
    font-size: 13px;
}

.support-email {
    display: inline-block;
    margin-top: 8px;
    color: inherit;
    font-weight: 700;
}

@media (max-width: 480px) {
    .captcha-widget {
        grid-template-columns: minmax(68px, 1fr) 100px 38px;
        gap: 5px;
    }

    .captcha-widget input[type="text"] {
        padding-right: 8px;
        padding-left: 8px;
    }

    .captcha-image {
        width: 100px;
        height: 44px;
    }

    .captcha-refresh {
        width: 38px;
        height: 44px;
    }
}
