/**
 * Live webinar invite modal — matches corporate / home page aesthetic
 * OS 18-Jun-2026
 */

.wtd-webinar-invite-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.wtd-webinar-invite-modal.is-active {
    display: flex;
}

.wtd-webinar-invite-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.wtd-webinar-invite-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 880px;
    max-height: 90vh;
    overflow: hidden;
    background: #eeede9;
    border: 1px solid #f9f9f9;
    border-radius: 32px;
    box-shadow: 0 24px 64px rgba(12, 12, 12, 0.12);
    animation: wtdWebinarInviteIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.wtd-webinar-invite-layout {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 100%;
    max-height: 90vh;
}

.wtd-webinar-invite-visual {
    position: relative;
    flex: 0 0 44%;
    align-self: stretch;
    min-height: 360px;
    overflow: hidden;
    background: #f4ecea;
}

.wtd-webinar-invite-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wtd-webinar-invite-copy {
    flex: 1;
    min-width: 0;
    padding: 40px 40px 36px 32px;
    overflow-y: auto;
}

@keyframes wtdWebinarInviteIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wtd-webinar-invite-close {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    opacity: 0.45;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.wtd-webinar-invite-close:hover {
    opacity: 1;
    background: rgba(12, 12, 12, 0.05);
}

.wtd-webinar-invite-close svg {
    width: 20px;
    height: 20px;
    stroke: #3a3532;
    stroke-width: 2;
}

.wtd-webinar-invite-eyebrow {
    margin: 0 0 20px;
    padding-right: 32px;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5a5a5a;
    line-height: 1.4;
}

.wtd-webinar-invite-title {
    margin: 0 0 20px;
    padding-right: 16px;
    font-family: 'biennale', serif;
    font-size: clamp(28px, 4vw, 34px);
    font-weight: 400;
    line-height: 1.15;
    color: #0c0c0c;
}

.wtd-webinar-invite-lead {
    margin: 0 0 16px;
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.55;
    color: #3a3532;
}

.wtd-webinar-invite-body {
    margin: 0 0 28px;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.65;
    color: #5a5a5a;
}

.wtd-webinar-invite-datetime {
    margin: 0 0 32px;
    padding-top: 24px;
    border-top: 1px solid #d9d9d9;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #0c0c0c;
}

.wtd-webinar-invite-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.wtd-webinar-invite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 14px 28px;
    border: none;
    border-radius: 24px;
    background: #ecc299;
    font-family: 'biennale', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #0c0c0c;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.wtd-webinar-invite-btn:hover {
    filter: brightness(0.95);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .wtd-webinar-invite-layout {
        flex-direction: column;
        max-height: none;
    }

    .wtd-webinar-invite-visual {
        flex: none;
        width: 100%;
        min-height: 220px;
        aspect-ratio: 16 / 10;
    }

    .wtd-webinar-invite-copy {
        padding: 28px 24px 32px;
        overflow-y: visible;
    }
}

@media (max-width: 640px) {
    .wtd-webinar-invite-modal {
        padding: 16px;
        align-items: flex-end;
    }

    .wtd-webinar-invite-content {
        border-radius: 28px 28px 0 0;
        max-height: 92vh;
        overflow-y: auto;
    }

    .wtd-webinar-invite-visual {
        min-height: 200px;
        aspect-ratio: 4 / 3;
    }

    .wtd-webinar-invite-close {
        top: 16px;
        right: 16px;
    }
}
