﻿.form-loading-dots {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .form-loading-dots span {
        display: inline-block;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: currentColor;
        opacity: 0.3;
        will-change: opacity;
        animation: formLoadingDotPulse 1.2s ease-in-out infinite;
    }

        .form-loading-dots span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .form-loading-dots span:nth-child(3) {
            animation-delay: 0.4s;
        }

        .form-loading-dots span:nth-child(4) {
            animation-delay: 0.6s;
        }

@keyframes formLoadingDotPulse {
    0%, 80%, 100% {
        opacity: 0.3;
    }

    40% {
        opacity: 1;
    }
}

button[aria-busy="true"]:disabled {
    opacity: 1;
    cursor: wait;
}

@media (prefers-reduced-motion: reduce) {
    .form-loading-dots span {
        animation: none;
        opacity: 0.7;
    }
}
