.rankhero-floating-lead {
    --rh-fl-navy: #08224a;
    --rh-fl-ink: #111827;
    --rh-fl-muted: #536173;
    --rh-fl-line: rgba(123, 142, 166, 0.28);
    --rh-fl-soft: #f4f7fb;
    --rh-fl-accent: #efa81a;
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 300000;
    width: min(378px, calc(100vw - 32px));
    color: var(--rh-fl-ink);
    font-family: inherit;
}

.rankhero-floating-lead *,
.rankhero-floating-lead *::before,
.rankhero-floating-lead *::after {
    box-sizing: border-box;
}

.rankhero-floating-lead__launcher {
    display: none;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 48px;
    margin-left: auto;
    padding: 13px 18px;
    color: #111827;
    background: var(--rh-fl-accent);
    border: 0;
    border-radius: 0;
    box-shadow: 0 16px 34px rgba(8, 34, 74, 0.24);
    font: inherit;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.2;
    cursor: pointer;
}

.rankhero-floating-lead__launcher-wrap {
    display: none;
    align-items: stretch;
    justify-content: flex-end;
    gap: 8px;
}

.rankhero-floating-lead__dismiss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-height: 48px;
    padding: 0;
    color: #ffffff;
    background: rgba(8, 34, 74, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0;
    box-shadow: 0 16px 34px rgba(8, 34, 74, 0.18);
    font: inherit;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.rankhero-floating-lead__dismiss:hover,
.rankhero-floating-lead__dismiss:focus {
    background: rgba(8, 34, 74, 0.94);
}

.rankhero-floating-lead__panel {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--rh-fl-line);
    border-top: 5px solid var(--rh-fl-accent);
    box-shadow: 0 24px 60px rgba(8, 34, 74, 0.26);
}

.rankhero-floating-lead.is-open .rankhero-floating-lead__panel {
    display: block;
}

.rankhero-floating-lead__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px 0;
}

.rankhero-floating-lead__head p {
    margin: 0;
    color: var(--rh-fl-navy);
    font-size: 13px;
    font-weight: 950;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0;
}

.rankhero-floating-lead__head button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: var(--rh-fl-muted);
    background: var(--rh-fl-soft);
    border: 1px solid var(--rh-fl-line);
    border-radius: 0;
    font: inherit;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.rankhero-floating-lead__body {
    padding: 10px 20px 20px;
}

.rankhero-floating-lead h2 {
    margin: 0 0 10px;
    color: var(--rh-fl-ink);
    font-size: 26px;
    font-weight: 950;
    line-height: 1.14;
    letter-spacing: 0;
}

.rankhero-floating-lead__copy {
    margin: 0 0 16px;
    color: var(--rh-fl-muted);
    font-size: 14px;
    line-height: 1.55;
}

.rankhero-floating-lead__notice {
    margin: 0 0 14px;
    padding: 11px 12px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    border: 1px solid var(--rh-fl-line);
}

.rankhero-floating-lead__notice--success {
    color: #14532d;
    background: #dcfce7;
    border-color: #86efac;
}

.rankhero-floating-lead__notice--error {
    color: #7f1d1d;
    background: #fee2e2;
    border-color: #fecaca;
}

.rankhero-floating-lead__form {
    display: grid;
    gap: 10px;
}

.rankhero-floating-lead__form label {
    display: grid;
    gap: 6px;
    margin: 0;
}

.rankhero-floating-lead__form span {
    color: var(--rh-fl-ink);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
}

.rankhero-floating-lead .rankhero-floating-lead__form input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--rh-fl-ink) !important;
    background: #ffffff !important;
    border: 1px solid rgba(83, 97, 115, 0.3) !important;
    border-radius: 0;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    box-shadow: inset 0 0 0 1px rgba(8, 34, 74, 0.02);
}

.rankhero-floating-lead .rankhero-floating-lead__form input::placeholder {
    color: #7b8797 !important;
    opacity: 1;
}

.rankhero-floating-lead .rankhero-floating-lead__form input:focus {
    outline: 3px solid rgba(239, 168, 26, 0.28);
    border-color: var(--rh-fl-accent);
}

.rankhero-floating-lead__form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin-top: 4px;
    padding: 12px 16px;
    color: #111827;
    background: var(--rh-fl-accent);
    border: 0;
    border-radius: 0;
    font: inherit;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.2;
    cursor: pointer;
}

.rankhero-floating-lead__response-time,
.rankhero-floating-lead__privacy {
    margin: 0;
    color: var(--rh-fl-muted);
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}

.rankhero-floating-lead__response-time {
    color: var(--rh-fl-navy);
    font-weight: 900;
}

.rankhero-floating-lead__form button[type="submit"]:hover,
.rankhero-floating-lead__form button[type="submit"]:focus,
.rankhero-floating-lead__launcher:hover,
.rankhero-floating-lead__launcher:focus {
    background: #d88f00;
}

.rankhero-floating-lead__company {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.rankhero-floating-lead.is-minimized .rankhero-floating-lead__panel {
    display: none;
}

.rankhero-floating-lead.is-minimized {
    width: auto;
}

.rankhero-floating-lead.is-minimized .rankhero-floating-lead__launcher {
    display: inline-flex;
}

.rankhero-floating-lead.is-minimized .rankhero-floating-lead__launcher-wrap {
    display: flex;
}

.rankhero-floating-lead.is-dismissed {
    display: none;
}

@media (max-width: 640px) {
    .rankhero-floating-lead {
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        width: calc(100vw - 20px);
    }

    .rankhero-floating-lead.is-minimized {
        width: calc(100vw - 20px);
    }

    .rankhero-floating-lead__launcher {
        width: auto;
        flex: 1 1 auto;
        min-height: 46px;
        margin-left: 0;
        padding: 12px 16px;
        box-shadow: 0 12px 28px rgba(8, 34, 74, 0.22);
    }

    .rankhero-floating-lead__launcher-wrap {
        width: 100%;
    }

    .rankhero-floating-lead__dismiss {
        width: 44px;
        min-height: 46px;
    }

    .rankhero-floating-lead__panel {
        max-height: min(78vh, 620px);
        overflow-y: auto;
        border-top-width: 4px;
        border-radius: 10px 10px 0 0;
    }

    .rankhero-floating-lead__head {
        padding: 14px 16px 0;
    }

    .rankhero-floating-lead__body {
        padding: 8px 16px 16px;
    }

    .rankhero-floating-lead h2 {
        max-width: 320px;
        font-size: 22px;
        line-height: 1.16;
    }

    .rankhero-floating-lead__copy {
        margin-bottom: 12px;
        font-size: 13px;
    }

    .rankhero-floating-lead__form {
        gap: 6px;
    }

    .rankhero-floating-lead .rankhero-floating-lead__form input {
        min-height: 38px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .rankhero-floating-lead__response-time {
        font-size: 11px;
    }

    .rankhero-floating-lead__privacy {
        font-size: 10px;
        line-height: 1.35;
    }
}
