.cf7-captcha-modal {
    position: fixed;
    inset: 0;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 16px;
    width: min(360px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow: visible;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    z-index: 10050;
}

.cf7-captcha-modal::backdrop {
    background: rgba(0, 0, 0, 0.45);
}

.cf7-captcha-modal__inner {
    position: relative;
    padding: 24px 20px 20px;
}

.cf7-captcha-modal__title {
    margin: 0 32px 16px 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 600;
    color: #1a1a1a;
}

.cf7-captcha-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #f2f2f2;
    color: #333;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.cf7-captcha-modal__close:hover {
    background: #e8e8e8;
}

.cf7-captcha-modal__widget {
    position: relative;
    min-height: 102px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cf7-captcha-modal__container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.cf7-captcha-modal__loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 102px;
    padding: 8px 0;
}

.cf7-captcha-modal__loader[hidden] {
    display: none !important;
}

.cf7-captcha-modal__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(4, 82, 240, 0.18);
    border-top-color: #0452f0;
    border-radius: 50%;
    animation: cf7-captcha-spin 0.8s linear infinite;
}

.cf7-captcha-modal__loader-text {
    font-size: 14px;
    line-height: 1.3;
    color: #666;
    text-align: center;
}

@keyframes cf7-captcha-spin {
    to {
        transform: rotate(360deg);
    }
}

body.cf7-captcha-modal-open {
    overflow: hidden;
}
