/* VAPMA global spinner overlay */

.vapma-spinner-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease-out;
}

.vapma-spinner-overlay.vapma-spinner-visible {
    pointer-events: auto;
    opacity: 1;
}

.vapma-spinner-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.75); /* deep, translucent navy */
    display: flex;
    align-items: center;
    justify-content: center;
}

.vapma-spinner-container {
    background: #020617;
    border-radius: 1rem;
    padding: 1.75rem 2.25rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    min-width: 260px;
}

.vapma-spinner-circle {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 3px solid rgba(148, 163, 184, 0.4);
    border-top-color: #b82223;
    border-right-color: #b82223;
    animation: vapma-spin 0.75s linear infinite;
}

.vapma-spinner-label {
    font-size: 0.95rem;
    color: #e5e7eb;
    text-align: center;
}

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

/* Optional visual cue for disabled submit buttons */
button.vapma-submitting,
input[type="submit"].vapma-submitting {
    opacity: 0.7;
    cursor: wait;
}