.wpcf7-submit {
    position: relative;
}

.wpcf7-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.wpcf7-submit.cf7-loading {
    color: transparent !important;
}

.wpcf7-submit.cf7-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: agfl-spin 0.8s linear infinite;
}

@keyframes agfl-spin {
    to {
        transform: rotate(360deg);
    }
}


/* Hide default CF7 spinner */
.wpcf7-spinner {
    display: none !important;
}

#cf7-global-loader {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

#cf7-global-loader.active {
    opacity: 1;
    pointer-events: all;
}

.cf7-loader {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: agfl-spin 0.8s linear infinite;
}