/* Captcha container row */
.captcha-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.captcha-row .captcha-input {
    flex: 1;
    min-width: 0;
}

/* Captcha image wrapper */
.captcha-img-wrap {
    position: relative;
    flex-shrink: 0;
}

/* Captcha image */
.captcha-img {
    display: block;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    height: 44px;
    width: 140px;
    transition: border-color 0.3s;
}

.captcha-img:hover {
    border-color: #3381d3;
}

/* Captcha refresh button */
.captcha-refresh {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    padding: 0;
    font-size: 12px;
    color: #666;
    transition: color 0.3s;
}

.captcha-refresh:hover {
    color: #3381d3;
}

/* Inline captcha (for Bootstrap modals like inquiry) */
.captcha-inline {
    display: flex;
    gap: 8px;
    align-items: center;
}

.captcha-inline .captcha-img {
    height: 38px;
    width: 120px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .captcha-row {
        flex-direction: column;
        gap: 8px;
    }

    .captcha-img-wrap {
        align-self: flex-start;
    }
}
