.contact-captcha {
    min-width: 0;
    border: 1px solid #cda45e;
    border-radius: .5rem;
    background: #1a1814;
}

.contact-captcha legend {
    color: #e4c28b;
}

.contact-captcha .captcha-image {
    width: 100%;
    max-width: 100%;
    height: 44px;
    object-fit: contain;
    background: #afa896;
    border: 1px solid #cda45e;
    border-radius: .25rem;
}

#contact .contact-captcha-input {
    width: 100%;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    padding: .5rem .75rem;
    border: 2px solid #cda45e;
    border-radius: .25rem;
    background: #fff;
    color: #212121;
    font-size: 1rem;
    letter-spacing: .1em;
}

#contact .contact-captcha-input::placeholder {
    color: #666;
    opacity: 1;
    font-size: .9rem;
    letter-spacing: normal;
}

#contact .contact-captcha-input:focus {
    border-color: #f0d7ae;
    outline: 2px solid #f0d7ae;
    outline-offset: 3px;
    box-shadow: none;
}

.contact-captcha-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: .75rem;
}

.contact-captcha-row .refresh-captcha {
    grid-column: 1 / -1;
    min-height: 36px;
    margin: 0;
}

@media (min-width: 768px) {
    .contact-captcha-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .contact-captcha-row .refresh-captcha {
        grid-column: auto;
        height: 44px;
    }
}
