.cem-form-shell {
    --cem-primary: #2563eb;
    --cem-bg: #16233d;
    --cem-bg-2: #0b1428;
    --cem-accent: #60a5fa;
    --cem-accent-2: #dbeafe;
    --cem-accent-3: #1d4ed8;
    --cem-ink: #f8fbff;
    --cem-soft: #cbd5e1;
    --cem-border: rgba(147, 197, 253, .32);
    max-width: 480px;
    margin: 24px auto;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.cem-form {
    position: relative;
    overflow: hidden;
    padding: clamp(20px, 4vw, 30px);
    border: 1px solid var(--cem-border);
    border-radius: 28px;
    background:
        radial-gradient(ellipse 85% 62% at 100% 0%, rgba(96, 165, 250, .22), transparent 62%),
        linear-gradient(155deg, rgba(27, 45, 78, .98), rgba(10, 20, 40, .98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .08),
        0 18px 52px rgba(2, 8, 23, .32),
        0 0 44px rgba(59, 130, 246, .10);
    color: var(--cem-ink);
}

.cem-form::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 68% 42% at 7% 100%, rgba(14, 165, 233, .11), transparent 65%);
}

.cem-form::after {
    content: "";
    position: absolute;
    top: 0;
    left: 15%;
    z-index: 0;
    width: 70%;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(219, 234, 254, .70), transparent);
}

.cem-form > * {
    position: relative;
    z-index: 1;
}

.cem-form-head {
    margin-bottom: 20px;
    text-align: left;
}

.cem-form-kicker {
    display: inline-flex;
    padding: 8px 13px;
    border: 1px solid rgba(147, 197, 253, .34);
    border-radius: 999px;
    background: rgba(96, 165, 250, .16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    color: #dbeafe;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.cem-form h3 {
    margin: 13px 0 8px;
    color: var(--cem-ink);
    font-size: clamp(23px, 4vw, 29px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.02em;
}

.cem-form p {
    margin: 0;
    color: var(--cem-soft);
    line-height: 1.65;
}

.cem-form label {
    display: block;
    margin: 15px 0;
}

.cem-form label span {
    display: block;
    margin-bottom: 8px;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 600;
}

.cem-form input[type='email'] {
    width: 100%;
    box-sizing: border-box;
    padding: 15px;
    border: 1px solid rgba(147, 197, 253, .30);
    border-radius: 15px;
    outline: none;
    background: rgba(5, 13, 28, .72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
    color: var(--cem-ink);
    font-size: 16px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.cem-form input[type='email']::placeholder {
    color: rgba(226, 232, 240, .48);
}

.cem-form input[type='email']:hover {
    border-color: rgba(147, 197, 253, .46);
}

.cem-form input[type='email']:focus {
    border-color: rgba(147, 197, 253, .82);
    background: rgba(7, 18, 39, .92);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, .17), 0 8px 24px rgba(37, 99, 235, .12);
}

.cem-consent-row {
    display: flex !important;
    align-items: flex-start;
    gap: 11px;
    padding: 13px;
    border: 1px solid rgba(147, 197, 253, .25);
    border-radius: 16px;
    background: rgba(96, 165, 250, .10);
}

.cem-consent-row input {
    margin-top: 4px;
    accent-color: var(--cem-primary);
}

.cem-consent-row span {
    margin: 0 !important;
    color: #dbe4f0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.5;
}

.cem-policy-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 13px 0 19px;
    font-size: 13px;
}

.cem-policy-links a {
    color: #bfdbfe;
    font-weight: 600;
    text-decoration: none;
}

.cem-policy-links a:hover,
.cem-policy-links a:focus-visible {
    color: #eff6ff;
    text-decoration: underline;
}

.cem-policy-links span {
    color: rgba(226, 232, 240, .42);
}

.cem-form button {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid rgba(219, 234, 254, .26);
    border-radius: 15px;
    cursor: pointer;
    background: linear-gradient(115deg, #60a5fa 0%, var(--cem-primary) 48%, #1d4ed8 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .24),
        0 14px 38px rgba(37, 99, 235, .42),
        0 0 24px rgba(96, 165, 250, .16);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(15, 23, 42, .30);
    transition: transform .22s, box-shadow .22s, filter .22s;
}

.cem-form button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08) saturate(1.05);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .30),
        0 20px 48px rgba(37, 99, 235, .52),
        0 0 32px rgba(96, 165, 250, .23);
}

.cem-form button:focus-visible {
    outline: 3px solid rgba(219, 234, 254, .92);
    outline-offset: 3px;
}

.cem-form-alert {
    max-width: 480px;
    margin: 18px auto;
    padding: 14px 16px;
    border: 1px solid rgba(147, 197, 253, .38);
    border-radius: 16px;
    background: #132341;
    box-shadow: 0 12px 36px rgba(2, 8, 23, .24);
    color: #dbeafe;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 600;
}

.cem-form-alert-invalid {
    border-color: rgba(248, 113, 113, .44);
    background: #351c20;
    color: #fee2e2;
}

.cem-form-alert-success {
    border-color: rgba(74, 222, 128, .42);
    background: #173324;
    color: #dcfce7;
}

.cem-form-alert-pending,
.cem-form-alert-manual {
    border-color: rgba(96, 165, 250, .40);
    background: #13284d;
    color: #dbeafe;
}

@media (max-width: 600px) {
    .cem-form-shell {
        margin: 16px 0;
    }

    .cem-form {
        padding: 20px;
        border-radius: 22px;
    }

    .cem-form h3 {
        font-size: 22px;
    }

    .cem-policy-links {
        gap: 7px;
    }

    .cem-form button {
        padding: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cem-form *,
    .cem-form *::before,
    .cem-form *::after {
        transition-duration: .01ms !important;
    }
}
