/* Shared captcha zoom (contact / footer mesform) */
.corp-captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.corp-captcha-row .corp-captcha-input {
    width: 100px;
    flex: 0 0 100px;
    box-sizing: border-box;
}

.corp-captcha-box {
    position: relative;
    flex: 0 0 110px;
    width: 110px;
    height: 32px;
}

.corp-captcha-box .verify_img,
.corp-captcha-box .captcha-img {
    position: static !important;
    width: 110px !important;
    height: 32px !important;
    display: block;
    padding: 0 !important;
}

.corp-captcha-zoom-btn {
    position: absolute;
    right: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: #1F73B9;
    font-size: 12px;
    line-height: 20px;
    padding: 0;
    cursor: pointer;
    border-radius: 0 0 0 4px;
    z-index: 3;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.15);
}

.corp-captcha-zoom-btn:hover,
.corp-captcha-zoom-btn:focus {
    background: #fff;
    color: #155a94;
    outline: none;
}

.corp-footer-hero .corp-captcha-zoom-btn {
    color: #9ca3c8;
}

.corp-footer-hero .corp-captcha-zoom-btn:hover,
.corp-footer-hero .corp-captcha-zoom-btn:focus {
    color: #fff;
}

.corp-captcha-modal {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 10050;
    display: none;
}

.corp-captcha-modal.is-open {
    display: block;
}

.corp-captcha-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.corp-captcha-modal-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 24px 20px 16px;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    text-align: center;
    min-width: 300px;
}

.corp-captcha-modal-close {
    position: absolute;
    right: 8px;
    top: 4px;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
}

.corp-captcha-modal-close:hover {
    color: #333;
}

.corp-captcha-modal-img {
    display: block;
    width: 330px;
    height: 96px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    cursor: pointer;
    margin: 0 auto;
}

.corp-captcha-modal-tip {
    margin: 12px 0 0;
    font-size: 13px;
    color: #999;
}

/* Login / register / password reset forms */
.corp-captcha-row-auth {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.corp-captcha-row-auth .corp-captcha-input {
    width: 170px;
    max-width: 170px;
    flex: 0 0 170px;
    float: none;
    margin: 0;
}

.corp-captcha-box-auth {
    position: relative;
    flex: 0 0 160px;
    width: 160px;
    height: 38px;
}

.corp-captcha-box-auth .verify_img,
.corp-captcha-box-auth .captcha-img {
    position: static !important;
    width: 160px !important;
    height: 38px !important;
    display: block;
    padding: 0 !important;
}

@media (max-width: 767px) {
    .corp-captcha-row {
        flex-wrap: nowrap;
    }

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

    .corp-captcha-row .corp-captcha-box {
        flex: 0 0 140px;
        width: 140px;
        height: 44px;
        margin-left: auto;
    }

    .corp-captcha-row .corp-captcha-box .verify_img,
    .corp-captcha-row .corp-captcha-box .captcha-img {
        width: 140px !important;
        height: 44px !important;
    }
}
