/* Bonus sign-up form: inline form under the top-10 list, desktop popup, mobile banner and sheet. */

.lead-frame {
    display: block;
    width: 100%;
    min-height: 460px;
    border: 0;
    overflow: hidden;
    background: #fff;
}

/* Inline, under the top-10 list */
.lead-inline {
    max-width: 560px;
    margin: 24px auto 8px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgb(0 0 0 / 45%);
    background: #fff;
}

/* Popup and mobile sheet */
.b10-lead-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgb(0 0 0 / 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity .2s ease;
}
.b10-lead-backdrop.is-in { opacity: 1; }

.b10-lead-dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: #fff;
    border-radius: 10px;
    border-top: 5px solid #1ee600;
    box-shadow: 0 12px 40px rgb(0 0 0 / 55%);
    /* room for the close button so it never covers the form's headline */
    padding-top: 40px;
}

.b10-lead-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #212529;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgb(0 0 0 / 40%);
}
.b10-lead-close:hover,
.b10-lead-close:focus-visible { background: #000; outline: 3px solid #1ee600; outline-offset: 1px; }

body.b10-lead-open { overflow: hidden; }

/* Mobile sheet: slides up from the bottom, never full screen */
.b10-lead-backdrop.is-sheet { align-items: flex-end; padding: 0; }
.b10-lead-backdrop.is-sheet .b10-lead-dialog {
    max-width: none;
    max-height: 85vh;
    border-radius: 14px 14px 0 0;
    transform: translateY(100%);
    transition: transform .25s ease;
}
.b10-lead-backdrop.is-sheet.is-in .b10-lead-dialog { transform: none; }

/* Mobile banner */
.b10-lead-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 999;
    display: flex;
    align-items: stretch;
    border-radius: 10px;
    background: linear-gradient(180deg, #1ee600, #088205);
    box-shadow: 0 6px 20px rgb(0 0 0 / 50%);
    transform: translateY(calc(100% + 24px));
    transition: transform .3s ease;
}
.b10-lead-banner.is-in { transform: none; }
.b10-lead-banner-open {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    color: #fff;
    text-align: left;
    padding: 10px 6px 10px 14px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
}
.b10-lead-banner-text { flex: 1; }
.b10-lead-banner-cta {
    flex: none;
    background: #fff;
    color: #088205;
    border-radius: 6px;
    padding: 6px 10px;
    font-weight: 700;
}
.b10-lead-banner .b10-lead-close {
    position: static;
    flex: none;
    align-self: center;
    margin: 0 8px 0 2px;
    width: 34px;
    height: 34px;
    font-size: 22px;
}
body.b10-lead-banner-on .back-to-top { bottom: 96px; }

@media (prefers-reduced-motion: reduce) {
    .b10-lead-backdrop, .b10-lead-dialog, .b10-lead-banner { transition: none; }
}
