.form-loading-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    vertical-align: middle;
    white-space: nowrap;
    cursor: progress;
}

.form-loading-indicator::before {
    content: "";
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
    border: 0.14em solid currentColor;
    border-inline-end-color: transparent;
    border-radius: 50%;
    animation: form-loading-spin 0.75s linear infinite;
}

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

.form-loading-announcement {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .form-loading-indicator::before { animation: none; }
}
