/* Webinar registration — page & popup */

.webinar-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.webinar-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 640px) {
    .webinar-modal-overlay {
        align-items: center;
        padding: 24px;
    }
}

.webinar-modal {
    background: #fff;
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
    transform: translateY(16px);
    transition: transform 0.25s ease;
}

.webinar-modal-overlay.is-open .webinar-modal {
    transform: translateY(0);
}

@media (min-width: 640px) {
    .webinar-modal {
        border-radius: 16px;
    }
}

.webinar-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 24px 0;
}

.webinar-modal__title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.webinar-modal__intro {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

.webinar-modal__close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
}

.webinar-modal__close:hover,
.webinar-modal__close:focus-visible {
    background: #f1f5f9;
    outline: none;
}

.webinar-form {
    padding: 20px 24px 28px;
}

.webinar-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.webinar-form__field {
    margin-bottom: 16px;
}

.webinar-form__field--half {
    margin-bottom: 0;
}

.webinar-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 6px;
}

.webinar-form .required {
    color: #dc2626;
}

.webinar-form input,
.webinar-form select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.webinar-form input:focus,
.webinar-form select:focus {
    outline: none;
    border-color: #0f1f44;
    box-shadow: 0 0 0 3px rgba(15, 31, 68, 0.12);
}

.webinar-form input.is-invalid,
.webinar-form select.is-invalid {
    border-color: #dc2626;
}

.webinar-form__error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 0.8125rem;
    color: #dc2626;
}

.webinar-form__phone {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
}

.webinar-form__submit {
    margin-top: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: #0f172a;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.webinar-form__submit:hover:not(:disabled) {
    background: #1e293b;
}

.webinar-form__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.webinar-form__success,
.webinar-form__closed {
    padding: 32px 24px;
    text-align: center;
}

.webinar-form__success h3,
.webinar-form__closed h3 {
    margin: 0 0 12px;
    color: #0f1f44;
}

.webinar-form__success p,
.webinar-form__closed p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

/* Landing page */
.webinar-page {
    font-family: 'Inter', system-ui, sans-serif;
    color: #0f172a;
    background: #f8fafc;
    min-height: 100vh;
}

.webinar-banner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 0;
}

.webinar-banner img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(15, 31, 68, 0.12);
}

.webinar-hero__layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: start;
    margin-top: 24px;
}

.webinar-speaker-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 31, 68, 0.08);
}

.webinar-speaker-card img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.webinar-speaker-card__info {
    padding: 16px 20px;
    text-align: center;
}

.webinar-speaker-card__info h2 {
    margin: 0 0 4px;
    font-size: 1.1rem;
    color: #0f1f44;
}

.webinar-speaker-card__info p {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
}

.webinar-platform {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.875rem;
    color: #64748b;
}

.webinar-platform img {
    height: 20px;
    width: auto;
}

@media (max-width: 768px) {
    .webinar-hero__layout {
        grid-template-columns: 1fr;
    }

    .webinar-speaker-card {
        max-width: 320px;
        margin: 0 auto;
    }
}

.webinar-page-header {
    background: linear-gradient(135deg, #0f1f44 0%, #182c59 100%);
    color: #f8fafc;
    padding: 20px 24px;
}

.webinar-page-header__inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.webinar-page-header a {
    color: #f8fafc;
    text-decoration: none;
    font-weight: 600;
}

.webinar-hero {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 24px 32px;
}

.webinar-hero__badge {
    display: inline-block;
    padding: 6px 14px;
    background: #d4af37;
    color: #0f1f44;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    margin-bottom: 16px;
}

.webinar-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin: 0 0 8px;
    line-height: 1.15;
    color: #0f1f44;
}

.webinar-hero__subtitle {
    font-size: 1.15rem;
    color: #475569;
    margin: 0 0 24px;
    line-height: 1.5;
}

.webinar-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 28px;
    font-size: 0.95rem;
    color: #334155;
}

.webinar-hero__meta strong {
    display: block;
    color: #0f1f44;
    margin-bottom: 2px;
}

.webinar-hero__body {
    color: #475569;
    line-height: 1.75;
    margin-bottom: 28px;
}

.webinar-hero__body ul {
    padding-left: 1.25rem;
    margin: 12px 0;
}

.webinar-hero__body li {
    margin-bottom: 6px;
}

.webinar-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #0f1f44;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
}

.webinar-hero__cta:hover {
    background: #182c59;
}

.webinar-page-layout {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px 64px;
    display: grid;
    gap: 32px;
}

@media (min-width: 900px) {
    .webinar-page-layout {
        grid-template-columns: 1fr 400px;
        align-items: start;
    }
}

.webinar-details-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 24px rgba(15, 31, 68, 0.08);
    border: 1px solid rgba(15, 31, 68, 0.06);
}

.webinar-details-card h2 {
    margin: 0 0 16px;
    font-size: 1.15rem;
    color: #0f1f44;
}

.webinar-inline-form-wrap {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(15, 31, 68, 0.08);
    border: 1px solid rgba(15, 31, 68, 0.06);
    overflow: hidden;
}

.webinar-inline-form-wrap .webinar-modal__header {
    padding-bottom: 0;
}

.webinar-inline-form-wrap .webinar-form {
    padding-top: 12px;
}

.webinar-promo-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9990;
    max-width: 280px;
    background: #0f1f44;
    color: #fff;
    padding: 16px 18px;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(15, 31, 68, 0.35);
    font-size: 0.875rem;
    line-height: 1.45;
}

.webinar-promo-banner button {
    margin-top: 10px;
    padding: 8px 16px;
    background: #d4af37;
    color: #0f1f44;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8125rem;
    cursor: pointer;
    font-family: inherit;
}

.webinar-promo-banner__close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
}

@media (max-width: 639px) {
    .webinar-form__row {
        grid-template-columns: 1fr;
    }

    .webinar-form__field--half {
        margin-bottom: 16px;
    }

    .webinar-promo-banner {
        left: 16px;
        right: 16px;
        max-width: none;
    }
}
