:root {
    --csipkefa-ink: #2d2547;
    --csipkefa-purple: #51428f;
    --csipkefa-purple-dark: #3c316f;
    --csipkefa-lilac: #eeeafd;
    --csipkefa-cream: #fffdf8;
    --csipkefa-accent: #e98573;
    --csipkefa-success: #287a55;
}

.cookie-banner {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1400;
    width: min(470px, calc(100% - 36px));
    border: 1px solid rgba(81, 66, 143, .2);
    border-radius: 18px;
    padding: 20px;
    background: #fffdf8;
    color: #2d2547;
    box-shadow: 0 18px 55px rgba(28, 21, 61, .3);
    font: 400 14px/1.55 'Quicksand', sans-serif;
}
.cookie-banner p { margin: 0 0 14px; color: #2d2547; }
.cookie-banner div { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.cookie-banner button {
    border: 1px solid #51428f;
    border-radius: 999px;
    padding: 9px 13px;
    background: #fff;
    color: #3c316f;
    font: 600 13px/1.2 'Quicksand', sans-serif;
    cursor: pointer;
}
.cookie-banner button.is-primary { background: #51428f; color: #fff; }
.cookie-banner a { margin-left: auto; color: #51428f; font-weight: 700; }

.meta-consent-settings {
    position: fixed;
    left: 12px;
    bottom: 10px;
    z-index: 1100;
    border: 1px solid rgba(81, 66, 143, .28);
    border-radius: 999px;
    padding: 7px 10px;
    background: rgba(255, 253, 248, .94);
    color: #51428f;
    font: 600 11px/1.2 'Quicksand', sans-serif;
    box-shadow: 0 5px 16px rgba(28, 21, 61, .15);
    cursor: pointer;
}

.meta-consent-settings:focus-visible { outline: 3px solid #51428f; outline-offset: 2px; }

.lead-trigger {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1200;
    border: 0;
    border-radius: 999px;
    padding: 14px 20px;
    background: var(--csipkefa-accent);
    color: #fff;
    font: 600 16px/1.2 'Quicksand', sans-serif;
    box-shadow: 0 10px 28px rgba(45, 37, 71, .28);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.lead-trigger:hover,
.lead-trigger:focus-visible {
    transform: translateY(-2px);
    background: #d97361;
    box-shadow: 0 14px 32px rgba(45, 37, 71, .34);
}

.lead-trigger:focus-visible,
.lead-panel button:focus-visible,
.lead-panel input:focus-visible,
.lead-panel select:focus-visible,
.lead-panel a:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.lead-panel {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 1250;
    width: min(720px, calc(100% - 28px));
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translate(-50%, calc(100% + 48px));
    opacity: 0;
    visibility: hidden;
    border: 1px solid rgba(81, 66, 143, .16);
    border-radius: 24px;
    background: rgba(255, 253, 248, .98);
    color: var(--csipkefa-ink);
    box-shadow: 0 24px 70px rgba(28, 21, 61, .34);
    transition: transform .32s ease, opacity .25s ease, visibility .32s;
}

.lead-panel.is-open {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
}

.lead-panel__inner {
    position: relative;
    padding: 28px 30px 26px;
}

.lead-panel__close {
    position: absolute;
    top: 13px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--csipkefa-lilac);
    color: var(--csipkefa-purple-dark);
    font: 600 25px/1 sans-serif;
    cursor: pointer;
}

.lead-panel__eyebrow {
    margin: 0 48px 7px 0;
    color: var(--csipkefa-purple);
    font: 700 12px/1.2 'Quicksand', sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.lead-panel h2 {
    margin: 0 45px 9px 0;
    color: var(--csipkefa-ink);
    text-align: left;
    font: 700 clamp(24px, 4vw, 32px)/1.12 'Quicksand', sans-serif;
}

.lead-panel__intro {
    margin: 0 0 20px;
    color: #5e5870;
    font: 400 16px/1.55 'Quicksand', sans-serif;
}

.lead-form__grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 13px;
}

.lead-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lead-form__field label {
    color: var(--csipkefa-ink);
    font: 600 13px/1.25 'Quicksand', sans-serif;
}

.lead-form__field input,
.lead-form__field select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cbc5df;
    border-radius: 11px;
    background: #fff;
    color: var(--csipkefa-ink);
    padding: 10px 12px;
    font: 500 16px/1.2 'Quicksand', sans-serif;
}

.lead-form__field input:focus,
.lead-form__field select:focus {
    border-color: var(--csipkefa-purple);
    box-shadow: 0 0 0 3px rgba(81, 66, 143, .13);
    outline: 0;
}

.lead-form__consent {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 9px;
    align-items: start;
    margin-top: 15px;
    color: #5e5870;
    font: 400 12px/1.45 'Quicksand', sans-serif;
}

.lead-form__consent input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--csipkefa-purple);
}

.lead-form__consent a {
    color: var(--csipkefa-purple-dark);
    font-weight: 700;
}

.lead-form__honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.lead-form__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 17px;
}

.lead-form__submit {
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    padding: 12px 22px;
    background: var(--csipkefa-purple);
    color: #fff;
    font: 700 15px/1.2 'Quicksand', sans-serif;
    cursor: pointer;
}

.lead-form__submit:hover { background: var(--csipkefa-purple-dark); }
.lead-form__submit:disabled { cursor: wait; opacity: .65; }

.lead-form__status {
    min-height: 22px;
    margin: 0;
    color: #a13f34;
    font: 600 13px/1.35 'Quicksand', sans-serif;
}

.lead-form__status.is-success { color: var(--csipkefa-success); }

.lead-panel__success {
    padding: 20px 0 8px;
    text-align: center;
}

.lead-panel__success h2 {
    margin: 0 0 10px;
    text-align: center;
}

.lead-panel__success p {
    margin: 0;
    color: #5e5870;
    font: 400 16px/1.55 'Quicksand', sans-serif;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin: 26px auto 0;
    color: rgba(255,255,255,.9);
    font: 500 13px/1.5 'Quicksand', sans-serif;
}

.site-footer-links a { color: #fff; }

@media (max-width: 720px) {
    .lead-form__grid { grid-template-columns: 1fr; }
    .lead-panel {
        top: max(8px, env(safe-area-inset-top));
        bottom: auto;
        width: calc(100% - 16px);
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px - env(safe-area-inset-top));
        border-radius: 20px;
    }
    .lead-panel__inner { padding: 12px 18px 20px; }
    .lead-panel__close {
        position: sticky;
        top: 8px;
        z-index: 3;
        display: block;
        width: 44px;
        height: 44px;
        margin: 0 0 -44px auto;
        box-shadow: 0 4px 14px rgba(45, 37, 71, .2);
    }
    .lead-trigger {
        right: 12px;
        bottom: 12px;
        padding: 12px 16px;
        font-size: 14px;
    }
    .lead-form__actions { align-items: stretch; flex-direction: column; }
    .lead-form__submit { width: 100%; }
    .cookie-banner { left: 8px; right: 8px; bottom: 8px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .lead-panel,
    .lead-trigger { transition: none; }
}
