/* Lead capture (LEAD-001, Task-ID: 81de28) - inline form + signup-abandon prompt */
.lead-capture {
    margin: 28px auto 0;
    max-width: 460px;
    text-align: center;
}
.lead-capture-label {
    font-size: 0.95rem;
    color: #bbbbbb;
    margin: 0 0 10px;
}
.lead-capture-row {
    display: flex;
    gap: 8px;
}
.lead-capture input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    background: #000;
    color: #fff;
    border: 2px solid #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
}
.lead-capture input[type="email"]:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}
.lead-capture button[type="submit"] {
    padding: 12px 18px;
    background: #fff;
    color: #000;
    border: 2px solid #fff;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.lead-capture button[type="submit"]:disabled { opacity: 0.6; cursor: wait; }
.lead-capture-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-capture-msg { display: none; margin: 10px 0 0; font-size: 0.9rem; min-height: 1.2em; }
.lead-capture-msg.is-ok { color: #9be89b; }
.lead-capture-msg.is-error { color: #ff8a8a; }
.lead-capture-fine { font-size: 0.75rem; color: #888; margin: 8px 0 0; }

@media (max-width: 520px) {
    .lead-capture-row { flex-direction: column; }
}

/* Signup-abandon prompt */
.lead-abandon-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.lead-abandon-card {
    position: relative;
    background: #000;
    border: 2px solid #fff;
    max-width: 440px;
    width: 100%;
    padding: 28px 24px 22px;
    color: #fff;
}
.lead-abandon-card h2 { margin: 0 0 8px; font-size: 1.3rem; }
.lead-abandon-card p { margin: 0 0 14px; color: #ccc; font-size: 0.95rem; line-height: 1.5; }
.lead-abandon-card .lead-capture { margin-top: 0; text-align: left; }
.lead-abandon-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
}

/* Variant pages (data-lead-mount): adapt to the host page's own colours so the
   form reads on both light and dark themes. */
.lead-capture-mount .lead-capture-label,
.lead-capture-mount .lead-capture-fine { color: inherit; opacity: 0.75; }
.lead-capture-mount .lead-capture input[type="email"] {
    background: transparent;
    color: inherit;
    border-color: currentColor;
}
.lead-capture-mount .lead-capture input[type="email"]:focus { outline-color: currentColor; }
.lead-capture-mount .lead-capture button[type="submit"] {
    background: transparent;
    color: inherit;
    border-color: currentColor;
}
.lead-capture-mount .lead-capture-msg.is-ok { color: inherit; font-weight: 700; }
.lead-capture-mount .lead-capture-msg.is-error { color: #c0392b; font-weight: 700; }
