
/* =========================================================
   SAN MEP SOLUTIONS — TEMPORARY WEBINAR ANNOUNCEMENT
   Remove this stylesheet and webinar-popup.js after the event.
   ========================================================= */
.webinar-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(4, 18, 31, .76);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity .72s cubic-bezier(.22, 1, .36, 1),
        visibility 0s linear .72s,
        backdrop-filter .72s cubic-bezier(.22, 1, .36, 1);
}
.webinar-modal.is-visible {
    opacity: 1;
    visibility: visible;
    transition:
        opacity .72s cubic-bezier(.22, 1, .36, 1),
        visibility 0s,
        backdrop-filter .72s cubic-bezier(.22, 1, .36, 1);
}
.webinar-dialog {
    position: relative;
    width: min(900px, 100%);
    max-height: min(88vh, 820px);
    overflow: auto;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(0,0,0,.36);
    transform: translateY(16px) scale(.985);
    transition: transform .32s cubic-bezier(.2,.75,.25,1);
    scrollbar-width: thin;
}
.webinar-modal.is-visible .webinar-dialog {
    transform: translateY(0) scale(1);
}
.webinar-close {
    position: absolute;
    z-index: 3;
    top: 13px;
    right: 13px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    background: rgba(7,28,47,.78);
    color: #fff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.webinar-close:hover {
    background: #0db6a6;
    transform: rotate(90deg);
}
.webinar-banner {
    position: relative;
    overflow: hidden;
    padding: 25px 30px 22px;
    color: #fff;
    background:
        linear-gradient(105deg, rgba(7,28,47,.97), rgba(11,61,82,.9)),
        url('../images/ai-datacenter-mep.jpg') center 48%/cover;
}
.webinar-banner::after {
    content: "";
    position: absolute;
    width: 290px;
    height: 290px;
    right: -100px;
    top: -185px;
    border: 1px solid rgba(45,205,190,.28);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(45,205,190,.045), 0 0 0 58px rgba(45,205,190,.035);
    pointer-events: none;
}
.webinar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .045em;
}
.webinar-brand img {
    width: 35px;
    height: 35px;
    padding: 3px;
    border-radius: 5px;
    background: #fff;
    object-fit: contain;
}
.webinar-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    color: #65e1d6;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.webinar-kicker::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #18c2b1;
}
.webinar-banner h2 {
    max-width: 700px;
    margin: 0;
    color: #fff;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: clamp(25px, 3.2vw, 36px);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -.035em;
}
.webinar-banner h2 span {
    white-space: nowrap;
    color: #70ded4;
}
.webinar-banner p {
    max-width: 740px;
    margin: 10px 0 0;
    color: rgba(255,255,255,.8);
    font-size: 14px;
    line-height: 1.65;
}
.webinar-content {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, .85fr);
    gap: 24px;
    padding: 25px 30px 28px;
}
.webinar-section-title {
    margin: 0 0 12px;
    color: #102f49;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 16px;
    font-weight: 800;
}
.webinar-levels {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.webinar-levels li {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 10px;
    align-items: start;
    color: #536a7c;
    font-size: 12.5px;
    line-height: 1.45;
}
.webinar-levels strong {
    display: inline-block;
    padding: 4px 7px;
    border-radius: 6px;
    background: #e6f6f4;
    color: #078d86;
    font-size: 11px;
    font-weight: 850;
    text-align: center;
}
.webinar-demo {
    margin-top: 18px;
    padding: 15px 16px;
    border: 1px solid #dce9ed;
    border-radius: 13px;
    background: #f5f8fa;
}
.webinar-demo p {
    margin: 0;
    color: #536a7c;
    font-size: 12.5px;
    line-height: 1.6;
}
.webinar-equipment {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}
.webinar-equipment span {
    padding: 6px 8px;
    border-radius: 7px;
    background: #fff;
    color: #24445d;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid #e2ebef;
}
.webinar-side {
    display: flex;
    flex-direction: column;
    gap: 13px;
}
.webinar-image {
    min-height: 138px;
    border-radius: 13px;
    background:
        linear-gradient(0deg, rgba(5,26,43,.22), rgba(5,26,43,.04)),
        url('../images/ai-datacenter-mep.jpg') center 48%/cover;
    box-shadow: inset 0 0 0 1px rgba(8,40,58,.08);
}
.webinar-event-card {
    padding: 17px;
    border: 1px solid #dce8ec;
    border-radius: 13px;
    background: #fff;
}
.webinar-event-card h3 {
    margin: 0 0 13px;
    color: #102f49;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 15px;
    font-weight: 800;
}
.webinar-event-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 9px 0;
    border-top: 1px solid #edf1f3;
    color: #536a7c;
    font-size: 12px;
    line-height: 1.45;
}
.webinar-event-row i {
    width: 16px;
    margin-top: 2px;
    color: #0aa99d;
    text-align: center;
}
.webinar-fees {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}
.webinar-fee {
    padding: 10px 9px;
    border-radius: 9px;
    background: #edf7f7;
}
.webinar-fee span {
    display: block;
    color: #617889;
    font-size: 10px;
    line-height: 1.35;
}
.webinar-fee strong {
    display: block;
    margin-top: 3px;
    color: #0b354d;
    font-size: 19px;
    font-weight: 850;
}
.webinar-register {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #0dbb69;
    color: #fff !important;
    font-size: 14px;
    font-weight: 850;
    text-align: center;
    box-shadow: 0 8px 20px rgba(13,187,105,.2);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.webinar-register:hover {
    transform: translateY(-2px);
    background: #08a95d;
    box-shadow: 0 12px 24px rgba(13,187,105,.27);
}
.webinar-register i {
    font-size: 18px;
}
.webinar-footnote {
    margin: -4px 0 0;
    color: #7a8d9b;
    font-size: 10.5px;
    line-height: 1.45;
    text-align: center;
}
body.webinar-open {
    overflow: hidden;
}
@media (max-width: 700px) {
    .webinar-modal { padding: 10px; }
    .webinar-dialog { max-height: 92vh; border-radius: 16px; }
    .webinar-banner { padding: 20px 18px 18px; }
    .webinar-brand { margin-bottom: 14px; }
    .webinar-banner h2 { padding-right: 20px; font-size: 25px; }
    .webinar-banner p { font-size: 12.5px; }
    .webinar-content { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
    .webinar-image { min-height: 110px; }
    .webinar-levels li { font-size: 12px; }
    .webinar-close { top: 10px; right: 10px; width: 34px; height: 34px; }
}
@media (max-width: 380px) {
    .webinar-fees { grid-template-columns: 1fr 1fr; }
    .webinar-banner h2 { font-size: 22px; }
}


/* Refined, calm entrance/exit motion for the webinar announcement. */
@media (prefers-reduced-motion: reduce) {
    .webinar-modal,
    .webinar-dialog {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        filter: none !important;
        transform: none !important;
    }
}

/* Poster-only webinar popup */
.webinar-dialog {
    width: min(700px, 100%);
    padding: 0;
    background: #fff;
}

.webinar-dialog > div {
    width: 100%;
}

.webinar-dialog > div > img {
    max-width: 100%;
    object-fit: contain;
}

.webinar-dialog .webinar-register {
    background: #0dbb69;
    color: #fff !important;
    border-radius: 10px;
    font-weight: 800;
}
