.webinar-modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1050;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.webinar-modal[aria-hidden="false"] {
    display: block;
}

.webinar-modal__overlay {
    background: rgba(33, 37, 41, 0.7);
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1051;
}

.webinar-modal__container {
    background: #fff;
    max-width: 500px;
    width: 90%;
    margin: 2.5rem auto;
    border-radius: 0.5rem;
    box-shadow: 0 8px 32px rgba(60, 60, 60, 0.18), 0 1.5px 4px rgba(0, 0, 0, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modal-fade-in 0.25s cubic-bezier(.4, 0, .2, 1);
}

@keyframes modal-fade-in {
    from {
        transform: translateY(40px) scale(0.98);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.webinar-modal__header {
    padding: 1.25rem 1.5rem 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.webinar-modal__header h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.2;
}

.webinar-modal__close {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
    transition: background 0.15s, color 0.15s;
}

.webinar-modal__close:hover,
.webinar-modal__close:focus {
    background: #e9ecef;
    color: #212529;
    outline: none;
}

.webinar-modal__content {
    padding: 1.5rem;
    color: #343a40;
    font-size: 1rem;
    background: #fff;
}

.webinar-modal__footer {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    font-size: 0.95rem;
    color: #6c757d;
    text-align: right;
}