/* LGC Admissions Popup v2.2 */

/* Body scroll lock when popup is open */
body.lgc-popup-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

/* Overlay — hidden by default */
#lgc-popup-overlay {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.78) !important;
    z-index: 999999 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    box-sizing: border-box !important;
}
#lgc-popup-overlay.lgc-open {
    display: flex !important;
}

/* Popup box */
#lgc-popup-wrap {
    background: #ffffff !important;
    color: #111111 !important;
    width: 100% !important;
    max-width: 680px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1px solid #cccccc !important;
    display: flex !important;
    flex-direction: column !important;
    max-height: 90vh !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
}

/* Prevent theme styles bleeding in */
#lgc-popup-wrap *,
#lgc-popup-wrap *::before,
#lgc-popup-wrap *::after {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    box-sizing: border-box !important;
    text-shadow: none !important;
    -webkit-font-smoothing: antialiased !important;
}

/* Panels */
.lgcp-panel {
    display: none !important;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
}
.lgcp-panel.lgcp-active {
    display: flex !important;
}

/* Badge dot pulse */
@keyframes lgcPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .4; transform: scale(.7); }
}
.lgcp-dot {
    animation: lgcPulse 1.4s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 520px) {
    #lgcp-flyer { width: 120px !important; }
}
@media (max-width: 400px) {
    #lgcp-flyer { display: none !important; }
    #lgc-popup-wrap { border-radius: 8px !important; }
}
