/* Lead pages: /lease-quote, /ask/:listing, /leads/:id, /lease-brokers and the lease negotiation guide
   (views/leads). Loaded after dealdesk.css, whose desk-* classes these pages share. */

/* The offer a lease quote starts from ------------------------------------ */

.lead-offer__eyebrow,
.lead-facts__title,
.lead-toc__title {
    color: var(--text-3);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lead-offer__title {
    margin-top: 8px;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.25;
}

.lead-offer__sub {
    margin-top: 2px;
    color: var(--text-2);
    font-size: 0.875rem;
}

.lead-offer__price {
    margin-top: 12px;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.lead-offer__price span {
    margin-left: 2px;
    color: var(--text-2);
    font-size: 1rem;
    font-weight: 500;
}

.lead-offer__dl {
    margin-bottom: 12px;
}

.lead-facts .desk-dl {
    margin-top: 10px;
}

.desk-start__side > * + * {
    margin-top: 16px;
}

.lead-hero-offer {
    margin: 8px 0 4px;
    color: var(--text-2);
    font-size: 0.9375rem;
}

.lead-hero-offer strong {
    color: var(--text);
}

/* Question topics ---------------------------------------------------------- */

.lead-topics {
    display: grid;
    gap: 8px;
}

.lead-topic {
    position: relative;
    cursor: pointer;
}

.lead-topic input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.lead-topic span {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: var(--surface);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.35;
}

.lead-topic input:checked + span {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--on-ink);
}

.lead-topic input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(11, 11, 12, 0.18);
}

/* Upsells and next steps --------------------------------------------------- */

.lead-upsell {
    border-color: var(--line-strong);
}

.lead-upsell__title {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 700;
}

.lead-upsell .muted {
    margin: 6px 0 14px;
    font-size: 0.9375rem;
}

.lead-while__list {
    display: grid;
    gap: 14px;
    margin-top: 10px;
    list-style: none;
}

.lead-while__list a {
    font-weight: 600;
}

.lead-while__list span {
    display: block;
    margin-top: 2px;
    color: var(--text-2);
    font-size: 0.875rem;
    line-height: 1.5;
}

.lead-heard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.lead-partner-note {
    margin-top: 20px;
}

/* The lease guide ---------------------------------------------------------- */

.lead-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.lead-stats div {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.lead-stats dt {
    color: var(--text-3);
    font-size: 0.8125rem;
}

.lead-stats dd {
    margin-top: 4px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.lead-stats dd span {
    color: var(--text-2);
    font-size: 0.9375rem;
    font-weight: 500;
}

.lead-toc {
    margin-top: 24px;
    padding: 16px 20px;
    border-left: 3px solid var(--brand);
    background: var(--surface-2);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.lead-toc ol {
    display: grid;
    gap: 6px;
    margin-top: 8px;
    padding-left: 20px;
    font-size: 0.9375rem;
}

/* The broker program ------------------------------------------------------- */

.lead-includes {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding-left: 18px;
    color: var(--on-ink-2);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.lead-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 28px);
    padding-left: 20px;
    color: var(--text-2);
    line-height: 1.55;
}

.lead-steps strong {
    display: block;
    color: var(--text);
}

.lead-states {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    gap: 6px;
    margin-top: 12px;
}

.lead-states.is-invalid {
    padding: 6px;
    border: 1px solid var(--bad);
    border-radius: var(--radius-md);
}

.lead-state {
    position: relative;
    cursor: pointer;
}

.lead-state input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.lead-state span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: var(--surface);
    font-size: 0.875rem;
    font-weight: 600;
}

.lead-state input:checked + span {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--on-ink);
}

.lead-state input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(11, 11, 12, 0.18);
}

.lead-nationwide:has(input:checked) + .lead-states {
    opacity: 0.4;
}

/* The honeypot: hidden from people, filled by bots */
.lead-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 860px) {
    .lead-steps {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .lead-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .lead-heard-actions .btn {
        width: 100%;
    }
}
