/* Onwaarts Leadbot — frontend */

.olb-lb-launcher {
    position: fixed;
    bottom: 24px;
    z-index: 99998;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s ease;
}
.olb-lb-launcher:hover { transform: scale(1.06); }
.olb-lb-launcher.olb-lb-pulse { animation: olb-lb-pulse .9s ease; }
@keyframes olb-lb-pulse {
    0% { transform: scale(1); }
    30% { transform: scale(1.14); }
    60% { transform: scale(0.97); }
    100% { transform: scale(1); }
}
.olb-lb-launcher__icon { font-size: 24px; line-height: 1; }
.olb-lb-bottom-right { right: 24px; }
.olb-lb-bottom-left { left: 24px; }

/* Zij-paneel in de hoek boven de launcher — géén scherm-vullende overlay of
   dimming, zodat de pagina bruikbaar blijft en het niet opdringerig voelt. */
.olb-lb-overlay {
    position: fixed;
    z-index: 99999;
    display: none;
    bottom: 92px;
    width: 360px;
    max-width: calc(100vw - 32px);
    pointer-events: none;
}
.olb-lb-overlay.olb-lb-bottom-right { right: 24px; }
.olb-lb-overlay.olb-lb-bottom-left { left: 24px; }
.olb-lb-overlay.is-open { display: block; }

.olb-lb-card {
    position: relative;
    width: 100%;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
    padding: 24px 22px 22px;
    box-sizing: border-box;
    pointer-events: auto;
    transform-origin: bottom right;
    animation: olb-lb-in .18s ease-out;
}
@keyframes olb-lb-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.olb-lb-banner {
    display: block;
    width: calc(100% + 44px);
    height: 150px;
    margin: -24px -22px 16px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--olb-radius, 14px) var(--olb-radius, 14px) 0 0;
}
.olb-lb-has-banner .olb-lb-close,
.olb-lb-has-banner .olb-lb-back {
    background: rgba(255, 255, 255, .85);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    line-height: 24px;
    text-align: center;
}

.olb-lb-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: none;
    font-size: 22px;
    line-height: 1;
    color: #8a8f94;
    cursor: pointer;
}
.olb-lb-close:hover { color: #1a1a1a; }

.olb-lb-back {
    position: absolute;
    top: 8px;
    left: 12px;
    border: 0;
    background: none;
    font-size: 28px;
    line-height: 1;
    color: #8a8f94;
    cursor: pointer;
    padding: 0;
}
.olb-lb-back:hover { color: #1a1a1a; }
.olb-lb-has-back .olb-lb-head { padding-left: 26px; }

/* Keuzeknoppen (startstap) */
.olb-lb-choices { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.olb-lb-choice {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d7d9dd;
    border-radius: var(--olb-radius, 8px);
    background: #fff;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}
.olb-lb-choice:hover { opacity: .92; }
.olb-lb-choice--secondary { background: #fff; color: #1a1a1a; }

.olb-lb-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-right: 32px; /* ruimte voor de sluitknop (×) rechtsboven */
    margin-bottom: 14px;
}
.olb-lb-headtext { flex: 1 1 auto; min-width: 0; }
.olb-lb-avatar {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.olb-lb-intro { font-size: 15px; color: #1a1a1a; margin: 4px 0 6px; }
.olb-lb-headtext .olb-lb-intro:last-child { margin-bottom: 0; }
.olb-lb-subtitle { font-size: 13px; margin: 0; }
.olb-lb-form > .olb-lb-intro { margin: 6px 0 10px; }
.olb-lb-form { display: flex; flex-direction: column; }
.olb-lb-field { margin-bottom: 12px; }
.olb-lb-label { display: block; font-size: 13px; font-weight: 600; color: #1a1a1a; margin-bottom: 5px; }
.olb-lb-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cfd3d8;
    border-radius: var(--olb-radius, 7px);
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    color: #1a1a1a;
}
.olb-lb-input:focus { outline: none; border-color: #1a1a1a; box-shadow: 0 0 0 1px #1a1a1a; }
textarea.olb-lb-input { min-height: 90px; resize: vertical; }
.olb-lb-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #50575e; }
.olb-lb-consent input { margin-top: 3px; }
.olb-lb-error { display: block; color: #b32d2e; font-size: 12px; margin-top: 4px; }
.olb-lb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.olb-lb-formerror { color: #b32d2e; font-size: 13px; margin: 4px 0 0; }
.olb-lb-formerror:empty { display: none; }

.olb-lb-submit {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 13px;
    border: 0;
    border-radius: var(--olb-radius, 7px);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}
.olb-lb-submit:hover { opacity: .92; }
.olb-lb-submit[disabled] { opacity: .6; cursor: default; }

.olb-lb-confirm { text-align: center; padding: 10px 0 4px; }
.olb-lb-check {
    width: 64px;
    height: 64px;
    margin: 6px auto 16px;
    border-radius: 50%;
    border: 3px solid #4caf50;
    color: #4caf50;
    font-size: 34px;
    line-height: 58px;
}
.olb-lb-confirm h3 { margin: 0 0 8px; font-size: 20px; color: #1a1a1a; }
.olb-lb-confirm p { margin: 0 0 18px; color: #50575e; font-size: 14px; }

@media (max-width: 480px) {
    .olb-lb-overlay { left: 12px; right: 12px; width: auto; max-width: none; bottom: 84px; }
    .olb-lb-card { max-height: calc(100vh - 110px); }
}
