/* === LEAD FORM: floating button + modal === */

/* Floating button */
.lead-fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    background: var(--gradient, linear-gradient(135deg,#2baee8,#7b5ea7));
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 26px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(43,174,232,0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.4s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
}
.lead-fab.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.lead-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(43,174,232,0.45);
}
.lead-fab svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Modal overlay */
.lead-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.lead-modal.open { display: flex; }

/* Modal card */
.lead-card {
    background: #131929;
    border-radius: 20px;
    padding: 44px 40px;
    max-width: 440px;
    width: 100%;
    position: relative;
    box-shadow: 0 32px 80px rgba(0,0,0,0.5);
    animation: lead-in 0.3s ease;
}
@keyframes lead-in {
    from { opacity:0; transform: scale(0.94) translateY(16px); }
    to   { opacity:1; transform: scale(1) translateY(0); }
}

/* Close button */
.lead-close {
    position: absolute;
    top: 16px; right: 20px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    transition: color 0.2s;
}
.lead-close:hover { color: #fff; }

/* Modal text */
.lead-card h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}
.lead-card p.lead-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 28px;
    line-height: 1.5;
}

/* Form fields */
.lead-form { display: flex; flex-direction: column; gap: 12px; }
.lead-form input {
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 14px 18px;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    color: #fff;
    transition: border-color 0.2s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}
.lead-form input::placeholder { color: rgba(255,255,255,0.3); }
.lead-form input:focus { border-color: rgba(43,174,232,0.7); }

/* Submit */
.lead-submit {
    margin-top: 4px;
    background: linear-gradient(135deg,#2baee8,#7b5ea7);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 700;
    padding: 16px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    width: 100%;
}
.lead-submit:hover { opacity: 0.9; transform: translateY(-1px); }
.lead-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Privacy note */
.lead-privacy {
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.25);
    margin-top: 12px;
    line-height: 1.5;
}

/* Success state */
.lead-success {
    text-align: center;
    padding: 20px 0;
}
.lead-success-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg,#2baee8,#7b5ea7);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.lead-success-icon svg { width: 28px; height: 28px; stroke: white; }
.lead-success h3 { color: #fff; font-family: 'Manrope', sans-serif; font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.lead-success p { color: rgba(255,255,255,0.55); font-size: 14px; line-height: 1.6; }

/* Error message */
.lead-error {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: -4px;
    display: none;
}
.lead-error.show { display: block; }

/* Mobile */
@media (max-width: 480px) {
    .lead-fab { bottom: 20px; right: 16px; font-size: 14px; padding: 12px 20px; }
    .lead-card { padding: 32px 24px; }
    .lead-card h3 { font-size: 19px; }
}
