/**
 * Overlay full-screen que se muestra al enviar un formulario marcado con
 * `data-submit-overlay="true"`. Renderizado por `web/js/form-submit-guard.js`.
 *
 * Paleta corporativa: #00508b / #003d6b (coherente con email de bienvenida).
 */
.form-submit-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10500;
    padding: 20px;
    animation: form-submit-overlay-fade-in 150ms ease-out;
}

.form-submit-overlay__card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 32px 40px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    text-align: center;
    max-width: 420px;
    width: 100%;
}

.form-submit-overlay__spinner {
    width: 52px;
    height: 52px;
    margin: 0 auto 20px;
    border: 4px solid #e3e8ee;
    border-top-color: #00508b;
    border-radius: 50%;
    animation: form-submit-overlay-spin 800ms linear infinite;
}

.form-submit-overlay__message {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #003d6b;
    line-height: 1.4;
}

.form-submit-overlay__subtext {
    margin: 0;
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
}

@keyframes form-submit-overlay-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@media (prefers-reduced-motion: reduce) {
    .form-submit-overlay { animation: none; }
    .form-submit-overlay__spinner { animation-duration: 2s; }
}
