.custom-captcha-container {
    position: relative;
    margin-bottom: 20px;
    font-family: inherit;
}

.custom-captcha-box {
    display: inline-flex;
    align-items: center;
    background: #f9f9f9;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    padding: 10px 15px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: background 0.2s;
    user-select: none;
    min-width: 280px;
}

.custom-captcha-box:hover {
    background: #f1f1f1;
}

.custom-captcha-checkbox {
    width: 24px;
    height: 24px;
    background: #fff;
    border: 2px solid #c1c1c1;
    border-radius: 2px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.custom-captcha-checkbox.is-verified {
    border-color: #2b9d58;
}

.custom-captcha-checkbox.is-verified::after {
    content: '';
    width: 6px;
    height: 12px;
    border: solid #2b9d58;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    margin-bottom: 3px;
}

.custom-captcha-text {
    flex-grow: 1;
    font-size: 14px;
    color: #444;
}

.custom-captcha-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    margin-left: 15px;
}

.custom-captcha-logo svg {
    width: 24px;
    height: 24px;
}

/* Modal styles */
.custom-captcha-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.custom-captcha-modal-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 350px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: captchaModalShow 0.2s ease-out;
}

@keyframes captchaModalShow {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.custom-captcha-modal-header {
    background: #4a90e2;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-captcha-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.custom-captcha-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
}

.custom-captcha-modal-close:hover {
    opacity: 1;
}

.custom-captcha-modal-body {
    padding: 20px;
}

#captchaModal .math-captcha-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    text-transform: none;
    letter-spacing: normal;
    background: transparent;
    padding: 0;
}

#captchaModal .math-captcha-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    box-sizing: border-box;
    display: block;
    outline: none;
    min-height: 42px;
}

#captchaModal .math-captcha-input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.custom-captcha-modal-footer {
    padding: 15px 20px;
    background: #f5f5f5;
    text-align: right;
    border-top: 1px solid #ddd;
}

.btn-verify {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-verify:hover {
    background: #357abd;
}