/* =====================================================
   LinkedIn Event Registration — V2 (Premium)
   Quadrafort × LinkedIn Partner Connect
   ===================================================== */

/* ---------- Defensive reset ----------
   Global.css applies `* { background-color: black; }`.
   Neutralize it for every descendant of the V2 components,
   so only the elements we explicitly style carry a background. */
.li-v2-nav,
.li-v2-nav *,
.li-v2-nav *::before,
.li-v2-nav *::after,
.li-v2-atmosphere,
.li-v2-atmosphere *,
.li-v2-wrapper,
.li-v2-wrapper *,
.li-v2-wrapper *::before,
.li-v2-wrapper *::after,
#li-v2-snackbar,
#li-v2-snackbar * {
    background-color: transparent;
}

:root {
    --li-blue: #0A66C2;
    --li-blue-soft: #2f8be8;
    --li-blue-glow: rgba(10, 102, 194, 0.55);
    --qf-magenta: #FF2D8D;
    --qf-purple: #4B0D67;
    --qf-magenta-glow: rgba(255, 45, 141, 0.45);
    --bg-deep: #050505;
    --bg-panel: rgba(15, 16, 24, 0.55);
    --bg-panel-strong: rgba(20, 22, 32, 0.78);
    --border-soft: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(10, 102, 194, 0.35);
    --text-main: #ffffff;
    --text-soft: rgba(255, 255, 255, 0.72);
    --text-muted: rgba(255, 255, 255, 0.5);
}

/* ---------- Base ---------- */
html, body {
    background: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Lato', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ---------- Animated Atmosphere ---------- */
.li-v2-atmosphere {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(1400px 900px at 5% -5%, rgba(10, 102, 194, 0.45), transparent 60%),
        radial-gradient(1100px 900px at 100% 5%, rgba(255, 45, 141, 0.32), transparent 60%),
        radial-gradient(1300px 1000px at 50% 115%, rgba(75, 13, 103, 0.55), transparent 65%),
        linear-gradient(180deg, #07070f 0%, #0a0a16 50%, #07070f 100%);
}

.li-v2-blob {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.6;
    animation: liFloat 22s ease-in-out infinite alternate;
}
.li-v2-blob.b1 { top: -160px; left: -160px; background: var(--li-blue); opacity: 0.32; }
.li-v2-blob.b2 { top: 22%; right: -220px; background: var(--qf-magenta); opacity: 0.22; animation-duration: 26s; }
.li-v2-blob.b3 { bottom: -200px; left: 28%; background: var(--qf-purple); opacity: 0.38; animation-duration: 28s; }

@keyframes liFloat {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(40px, -30px) scale(1.08); }
    100% { transform: translate(-30px, 30px) scale(0.96); }
}

.li-v2-particles { display: none; }
@keyframes liDrift {
    from { background-position: 0 0; }
    to   { background-position: 600px 600px; }
}

/* ---------- Sticky Navbar ---------- */
.li-v2-nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    padding: 14px 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(5, 5, 5, 0.35);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}
.li-v2-nav.scrolled {
    background: rgba(5, 5, 5, 0.78);
    border-bottom: 1px solid var(--border-glow);
    box-shadow: 0 1px 0 rgba(10, 102, 194, 0.25), 0 8px 30px rgba(0, 0, 0, 0.4);
    padding: 10px 38px;
}
.li-v2-nav .li-v2-logo img { height: 36px; }
.li-v2-nav .li-v2-event-title {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    background: linear-gradient(90deg, #fff 0%, #cfe5ff 50%, #ffd2ec 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}
.li-v2-nav .li-v2-li-logo {
    display: inline-flex;
    align-items: center;
    background: transparent;
    text-decoration: none;
}
.li-v2-nav .li-v2-li-logo .li-brand {
    height: 28px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .li-v2-nav { padding: 12px 16px; }
    .li-v2-nav .li-v2-event-title { display: none; }
    .li-v2-nav .li-v2-logo img { height: 30px; }
    .li-v2-nav .li-v2-li-logo .li-brand { height: 24px; }
}

/* ---------- Wrapper ---------- */
.li-v2-wrapper {
    position: relative;
    z-index: 1;
    padding: 140px 6vw 80px;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .li-v2-wrapper { padding: 110px 18px 50px; }
}

/* ---------- Layout Grid ---------- */
.li-v2-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}
@media (max-width: 992px) {
    .li-v2-grid { grid-template-columns: 1fr; gap: 32px; align-items: start; }
}

.li-v2-left {
    display: flex;
    flex-direction: column;
}

/* ---------- Left Content ---------- */
.li-v2-left { animation: liReveal 0.9s ease both; }

@keyframes liReveal {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.li-v2-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 16px;
}
.li-v2-eyebrow .sep {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}
.li-v2-eyebrow .qf {
    background: linear-gradient(90deg, var(--qf-magenta), #ff8fc1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}
.li-v2-eyebrow .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--li-blue);
    box-shadow: 0 0 8px var(--li-blue-glow);
}

.li-v2-title {
    font-size: clamp(32px, 4.6vw, 54px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.6px;
    margin: 0 0 14px;
    color: #fff;
}
.li-v2-title .accent {
    color: var(--li-blue-soft);
}

.li-v2-subtitle {
    color: var(--text-soft);
    font-size: clamp(14px, 1.4vw, 16px);
    font-weight: 400;
    margin: 0 0 22px;
    max-width: 640px;
    line-height: 1.5;
}

/* ---------- Venue + Time Pill Bar ---------- */
.li-v2-pillbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(10, 102, 194, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 0 1px rgba(10, 102, 194, 0.08), 0 8px 30px rgba(0, 0, 0, 0.35);
    margin-bottom: 32px;
    width: fit-content;
    max-width: 100%;
    animation: liPillGlow 4s ease-in-out infinite;
}
@keyframes liPillGlow {
    0%, 100% { box-shadow: 0 0 0 1px rgba(10, 102, 194, 0.08), 0 0 22px rgba(10, 102, 194, 0.18); }
    50%      { box-shadow: 0 0 0 1px rgba(10, 102, 194, 0.20), 0 0 32px rgba(255, 45, 141, 0.28); }
}

.li-v2-pillbar .live-dot {
    position: relative;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--li-blue);
    box-shadow: 0 0 10px var(--li-blue);
    flex-shrink: 0;
}
.li-v2-pillbar .live-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--li-blue);
    opacity: 0.6;
    animation: liPing 1.6s ease-out infinite;
}
@keyframes liPing {
    0%   { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

.li-v2-pillbar .pill-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 12px;
    white-space: nowrap;
}
.li-v2-pillbar .pill-item i { color: var(--li-blue-soft); }
.li-v2-pillbar .pill-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.18);
}

/* Simple inline tease line — venue/time hidden until reveal */
.li-v2-tease-line {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 32px;
    padding: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.2px;
}
.li-v2-tease-line .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--li-blue);
    box-shadow: 0 0 10px var(--li-blue);
    animation: liBlink 1.4s ease-in-out infinite;
}
.li-v2-tease-line .sep {
    color: rgba(255, 255, 255, 0.35);
}
.li-v2-tease-line .reveal {
    background: linear-gradient(90deg, #9dc9ff, #ff7fbe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Tease variant — venue/time hidden until reveal */
.li-v2-pillbar.li-v2-tease .pill-item {
    color: rgba(255, 255, 255, 0.85);
}
.li-v2-pillbar.li-v2-tease .pill-item i { color: rgba(207, 229, 255, 0.7); }
.li-v2-pillbar .tease-text {
    background: linear-gradient(90deg, #9dc9ff, #ff7fbe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.li-v2-pillbar .tease-text i {
    -webkit-text-fill-color: initial;
    color: var(--qf-magenta);
    text-shadow: 0 0 8px var(--qf-magenta-glow);
    animation: liBlink 1.6s ease-in-out infinite;
}

@media (max-width: 600px) {
    .li-v2-pillbar { border-radius: 18px; padding: 12px 14px; }
    .li-v2-pillbar .pill-divider { display: none; }
    .li-v2-pillbar .pill-item { white-space: normal; font-size: 13px; }
}

/* ---------- Date Card (compact) ---------- */
.li-v2-datecard {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 14px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(10, 102, 194, 0.10), rgba(255, 45, 141, 0.05));
    border: 1px solid rgba(10, 102, 194, 0.32);
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    margin-bottom: 24px;
    overflow: hidden;
    width: fit-content;
    max-width: 100%;
}

.li-v2-datecard .dc-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
}
.li-v2-datecard .dc-stamp {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: rgba(207, 229, 255, 0.75);
}
.li-v2-datecard .dc-date {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    line-height: 1;
}
.li-v2-datecard .dc-day {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1;
}
.li-v2-datecard .dc-month {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
    line-height: 1;
}
.li-v2-datecard .dc-year {
    font-size: 13px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    line-height: 1;
}
.li-v2-datecard .dc-divider {
    width: 1px;
    align-self: stretch;
    background: linear-gradient(180deg, transparent, rgba(10, 102, 194, 0.45), rgba(255, 45, 141, 0.35), transparent);
    margin: 4px 0;
}
.li-v2-datecard .dc-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #cfe5ff;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
    flex-shrink: 0;
}
.li-v2-datecard .dc-tag .pulse {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--qf-magenta);
    box-shadow: 0 0 8px var(--qf-magenta-glow);
    animation: liBlink 1.4s ease-in-out infinite;
}

@media (max-width: 520px) {
    .li-v2-datecard {
        flex-wrap: wrap;
        gap: 12px;
    }
    .li-v2-datecard .dc-divider {
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(10, 102, 194, 0.45), rgba(255, 45, 141, 0.35), transparent);
        margin: 0;
    }
}
@keyframes liBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.35; transform: scale(0.85); }
}

/* ---------- Expect List ---------- */
.li-v2-expect-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: rgba(207, 229, 255, 0.85);
    margin: 0 0 12px;
}
.li-v2-expect-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}
.li-v2-expect-list li {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.4;
    padding: 6px 0;
    transition: color 0.2s ease, transform 0.2s ease;
}
.li-v2-expect-list li:hover {
    color: #fff;
    transform: translateX(2px);
}
.li-v2-expect-list li:hover .ico {
    box-shadow: 0 0 14px rgba(255, 45, 141, 0.45);
    border-color: rgba(255, 45, 141, 0.55);
}
.li-v2-expect-list .ico {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(10, 102, 194, 0.22), rgba(255, 45, 141, 0.20));
    border: 1px solid rgba(10, 102, 194, 0.45);
    color: #cfe5ff;
    font-size: 12px;
    box-shadow: 0 0 10px rgba(10, 102, 194, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.li-v2-expect-list .ico i {
    display: inline-block;
    background: linear-gradient(135deg, #9dc9ff, #ff7fbe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- Right Form (Glassmorphism) ---------- */
.li-v2-right { position: relative; animation: liReveal 1.0s ease 0.15s both; }

.li-v2-form-card {
    position: relative;
    padding: 32px 30px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(20, 22, 32, 0.28), rgba(12, 14, 22, 0.32));
    border: 1px solid rgba(10, 102, 194, 0.32);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    box-shadow:
        0 0 0 1px rgba(10, 102, 194, 0.10),
        0 30px 80px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.li-v2-form-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--li-blue), var(--qf-magenta), transparent);
    opacity: 0.7;
}
.li-v2-form-card::after { display: none; }

.li-v2-form-card h3 {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px;
    letter-spacing: -0.2px;
}
.li-v2-form-card .form-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 22px;
}

/* Form fields */
.li-v2-form .field {
    position: relative;
    margin-bottom: 16px;
}
.li-v2-form label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(207, 229, 255, 0.85);
    margin-bottom: 6px;
}
.li-v2-form .input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.li-v2-form .input-wrap i {
    color: var(--li-blue-soft);
    font-size: 14px;
    flex-shrink: 0;
}
.li-v2-form input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    width: 100%;
    padding: 2px 0;
}
.li-v2-form input::placeholder { color: rgba(255, 255, 255, 0.45); }

.li-v2-form .input-wrap:hover {
    border-color: rgba(10, 102, 194, 0.45);
}
.li-v2-form .input-wrap:focus-within {
    border-color: var(--li-blue);
    background: rgba(10, 102, 194, 0.06);
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.18), 0 0 22px rgba(10, 102, 194, 0.22);
}
.li-v2-form .input-wrap.has-error {
    border-color: rgba(255, 80, 90, 0.7);
    box-shadow: 0 0 0 3px rgba(255, 80, 90, 0.15);
}

.li-v2-form .err {
    color: #ff7a85;
    font-size: 12px;
    margin: 6px 4px 0;
    display: none;
}
.li-v2-form .err.show { display: block; }

.li-v2-form .row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 480px) {
    .li-v2-form .row-2 { grid-template-columns: 1fr; gap: 0; }
}

/* Submit Button — Quadrafort theme */
.li-v2-btn {
    position: relative;
    width: 100%;
    margin-top: 10px;
    padding: 14px 18px;
    border: none;
    outline: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(90deg, #0A66C2 0%, #1f86e6 50%, #0A66C2 100%);
    background-size: 200% 100%;
    transition: background-position 0.5s ease, transform 0.18s ease, box-shadow 0.25s ease;
    box-shadow:
        0 10px 28px rgba(10, 102, 194, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    overflow: hidden;
}
.li-v2-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.20) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.li-v2-btn:hover {
    background-position: 100% 0;
    transform: translateY(-1px);
    box-shadow:
        0 14px 36px rgba(10, 102, 194, 0.45),
        0 0 22px rgba(255, 45, 141, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.li-v2-btn:hover::after { transform: translateX(100%); }
.li-v2-btn:active { transform: translateY(0); }
.li-v2-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.li-v2-form .disclaimer {
    margin-top: 14px;
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
}
.li-v2-form .disclaimer a { color: var(--li-blue-soft); text-decoration: none; }

/* ---------- Snackbar ---------- */
#li-v2-snackbar {
    visibility: hidden;
    opacity: 0;
    min-width: 260px;
    background: rgba(10, 12, 18, 0.92);
    color: #fff;
    text-align: center;
    border-radius: 12px;
    padding: 14px 18px;
    position: fixed;
    z-index: 10000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(10, 102, 194, 0.4);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease, bottom 0.3s ease;
}
#li-v2-snackbar.show { visibility: visible; opacity: 1; bottom: 50px; }
#li-v2-snackbar.error { border-color: rgba(255, 80, 90, 0.6); }
#li-v2-snackbar.success { border-color: rgba(10, 102, 194, 0.6); }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 600px) {
    .li-v2-datecard { padding: 18px 18px; gap: 16px; border-radius: 18px; }
    .li-v2-form-card { padding: 24px 20px; border-radius: 18px; }
}
