/* ============================================
   WEBSTER ELECTRICAL - FORM SUBMISSION OVERLAY
   Standalone - shown on successful form submit
   before redirect completes
   ============================================ */

.we-form-overlay {
    position: fixed;
    inset: 0;
    background: rgba(48, 50, 49, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 24px;
    text-align: center;
}

.we-form-overlay--active {
    opacity: 1;
    visibility: visible;
}

.we-form-overlay__spinner {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-top-color: #e8a020;
    border-radius: 50%;
    animation: we-form-overlay-spin 0.8s linear infinite;
    margin-bottom: 28px;
}

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

.we-form-overlay__title {
    font-family: 'Satoshi', sans-serif;
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 0.2px;
}

.we-form-overlay__text {
    font-family: 'Satoshi', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 320px;
}

/* Prevent background scroll while overlay is active */
body.we-form-overlay-open {
    overflow: hidden;
}
