.popup-overlay {
    line-height: normal; /* Reset */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000; /* Above all else including the NAV bar */
    padding: 0 10px; /* padding to the overlay itself */
    box-sizing: border-box; /* Ensures padding is included within the 100% width/height */
}

.popup-content {
    background-color: #EAE5EB;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 580px;
    position: relative;
    max-height: 95%;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.popup-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    padding: 0px 7px;
    border-radius: 50%;
    line-height: 1.2;
    z-index: 10;
}
.popup-close:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
}

.popup-banner-container {
    width: 100%;
    line-height: 0;
}
.popup-banner-container img {
    width: 100%;
    height: auto;
    display: block;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.popup-body-content {
    padding: 25px 35px;
    text-align: center; /* Center align most content */
}

.webinar-invitation {
    font-size: 1.1em;
    color: #903D7A; /* Dark Purple */
    margin-bottom: 12px;
}

.webinar-main-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #020102;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.3;
}

.webinar-description {
    font-size: 0.95em;
    color: #060006;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: left; /* Justify or left-align description */
}

.webinar-datetime {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px; /* Space between icon and text */
    margin-bottom: 25px;
}

.webinar-icon {
    width: 1.2em; /* Set a size relative to the font */
    height: 1.2em;
}

.webinar-datetime span {
    font-size: 1em;
    font-weight: 500;
    color: #060006;
}

.qr-code-container {
    margin-bottom: 10px;
}

.qr-code-container img {
    width: 140px;
    height: 140px;
    display: inline-block;
}

.qr-cta {
    font-size: 1em;
    color: #060006;
    margin: 0 0 8px 0;
}

.popup-footer {
    padding: 0 20px 10px;
    text-align: center;
}

.clario-logo-container {
    margin-top: 0px;
}

.clario-logo-container img {
    max-width: 140px;
    height: auto;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .popup-body-content {
        padding: 20px 25px;
    }
    .webinar-invitation {
        font-size: 1em;
    }
    .webinar-main-title {
        font-size: 1.2em;
    }
    .webinar-description {
        font-size: 0.9em;
    }
    .webinar-datetime svg {
        width: 1.35em;
        height: 1.35em;
    }
    .webinar-datetime span {
        font-size: 0.95em;
    }
    .qr-code-container img {
        width: 120px;
        height: 120px;
    }
    .qr-cta {
        font-size: 0.9em;
    }
    .qr-subtext {
        font-size: 0.8em;
    }
    .clario-logo-container img {
        max-width: 120px;
    }
}
