/**
 * BPG Guest Registration Styles — v3.0.0
 *
 * The overlay sits behind everything.
 * The registration container is lifted above it via JS (z-index + position).
 */

/* ── Full-page overlay ────────────────────────────────────────────────── */
.bgr3-overlay {
    position: fixed;
    inset: 0;
    z-index: 99990;
    opacity: 1;
    transition: opacity 0.7s ease;
}

.bgr3-overlay.bgr3-out {
    opacity: 0;
    pointer-events: none;
}

/* ── Registration container — lifted above overlay ────────────────────── */
/*
   JS adds .bgr3-lifted to the Elementor container that holds this widget.
   This raises it above the overlay without breaking Elementor's layout.
*/
.bgr3-lifted {
    position: relative !important;
    z-index: 99995 !important;
}

/* Fade the container away after submission */
.bgr3-lifted.bgr3-out {
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

/* ── Success flash ────────────────────────────────────────────────────── */
.bgr3-success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 36px 56px;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    z-index: 99999;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.bgr3-success.bgr3-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.bgr3-success .bgr3-sub {
    display: block;
    margin-top: 10px;
    font-size: 16px;
    font-weight: 400;
    opacity: 0.9;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media ( max-width: 600px ) {
    .bgr3-success {
        padding: 28px 24px;
        font-size: 18px;
        width: 85%;
    }
    .bgr3-success .bgr3-sub {
        font-size: 14px;
    }
}

/* ── Print ────────────────────────────────────────────────────────────── */
@media print {
    .bgr3-overlay,
    .bgr3-success { display: none !important; }
    .bgr3-lifted  { position: static !important; z-index: auto !important; }
}
