.custom-captcha {
    width: 100%;
    max-width: 340px;
    font-family: Arial, sans-serif;
}

.captcha-box {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 78px;
    padding: 14px 16px;

    background: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 8px;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);

    box-sizing: border-box;
}

.captcha-checkbox-area {
    display: flex;
    align-items: center;
    gap: 12px;

    cursor: pointer;
    user-select: none;
}

.captcha-checkbox-area input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.captcha-checkmark {
    width: 28px;
    height: 28px;

    border: 2px solid #777;
    border-radius: 4px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    transition: all 0.2s ease;
}

.captcha-checkbox-area input:checked + .captcha-checkmark {
    background: #1683ff;
    border-color: #1683ff;
}

.captcha-checkbox-area input:checked + .captcha-checkmark::after {
    content: "✓";

    color: white;
    font-size: 19px;
    font-weight: bold;
}

.captcha-checkbox-area input:disabled + .captcha-checkmark {
    opacity: 0.65;
}

.captcha-text {
    font-size: 15px;
    color: #222;
    white-space: nowrap;
}

.captcha-brand {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #555;
}

.captcha-brand-icon {
    width: 27px;
    height: 27px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f1f1f1;

    font-size: 15px;
}

.captcha-brand strong {
    display: block;
    font-size: 11px;
}

.captcha-brand small {
    display: block;
    margin-top: 2px;
    font-size: 9px;
    color: #888;
}

.captcha-message {
    margin-top: 8px;
    font-size: 13px;
}

.captcha-message.loading {
    color: #777;
}

.captcha-message.success {
    color: #16833b;
}

.captcha-message.error {
    color: #d93025;
}

.custom-captcha.verified .captcha-box {
    border-color: #16833b;
}
.captcha-box {
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.custom-captcha.loading .captcha-box {
    border-color: #1683ff;

    box-shadow:
        0 0 0 3px rgba(22, 131, 255, 0.08);
}

.custom-captcha.loading .captcha-checkmark {
    animation: captchaPulse 1.2s ease-in-out infinite;
}

.custom-captcha.loading .captcha-checkmark::after {
    content: "";
    width: 13px;
    height: 13px;

    border: 2px solid #1683ff;
    border-top-color: transparent;

    border-radius: 50%;

    animation: captchaSpin 0.8s linear infinite;
}

.custom-captcha.verified .captcha-checkmark {
    background: #16833b;
    border-color: #16833b;
}

.custom-captcha.verified .captcha-checkmark::after {
    content: "✓";

    color: #fff;

    width: auto;
    height: auto;

    border: 0;

    animation: none;
}

@keyframes captchaSpin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}

@keyframes captchaPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.94);
    }

}

.captcha-message {
    min-height: 18px;
}