/* ===== CAPTCHA WRAPPER ===== */
.form-group {
    margin-bottom: 16px;
}

/* Input group container */
.input-group {
    display: flex;
    align-items: center;
}

/* Captcha image container */
.input-group-text {
    background: #f1f1f1;
    border: 1px solid #ced4da;
    padding: 0 10px;
    border-right: none;
    border-radius: 4px 0 0 4px;
}

/* Captcha image itself */
#captcha_image {
    height: 38px;
    width: auto;
    display: block;
}

/* Captcha input */
#captcha {
    border-left: none;
    height: 38px;
    font-size: 14px;
}

/* Focus fix */
#captcha:focus {
    box-shadow: none;
    border-color: #80bdff;
}

/* Error message */
#captcha_error {
    display: block;
    margin-top: 5px;
    color: #dc3545;
    font-size: 13px;
}

/* Refresh link */
.form-group p {
    font-size: 13px;
    margin-top: 4px;
}

/* ✅ Mobile friendly */
@media (max-width: 576px) {
    .input-group {
        flex-direction: row;
    }

    #captcha_image {
        height: 34px;
    }

    #captcha {
        font-size: 13px;
    }
}