/* ─── MeasureFlow Lead Banner + Attribution Survey (Frontend) ─────────── */

/* ─── Lead Banner ─────────────────────────────────────────────────────── */

#mf-lead-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: mf-lead-fadein 0.25s ease;
}

@keyframes mf-lead-fadein { from { opacity: 0; } to { opacity: 1; } }

.mf-lead-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
}

.mf-lead-dialog {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px 28px;
    width: min(420px, calc(100vw - 32px));
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    text-align: center;
    animation: mf-lead-slideup 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@keyframes mf-lead-slideup {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.mf-lead-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 28px;
    height: 28px;
    font-size: 20px;
    line-height: 1;
    color: #9ca3af;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.mf-lead-close:hover { color: #374151; background: #f3f4f6; }

.mf-lead-title { margin: 0 0 8px; font-size: 20px; font-weight: 700; color: #111827; line-height: 1.2; }
.mf-lead-desc { margin: 0 0 16px; font-size: 14px; color: #6b7280; line-height: 1.4; }

.mf-lead-reward-badge {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 600;
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
}

.mf-lead-form { display: flex; gap: 8px; }

.mf-lead-input {
    flex: 1;
    height: 44px;
    padding: 0 14px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.18s;
}

.mf-lead-input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

.mf-lead-submit {
    flex: 0 0 auto;
    height: 44px;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: #111827;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
}

.mf-lead-submit:hover { background: #1f2937; }

.mf-lead-error { margin-top: 8px; font-size: 13px; color: #dc2626; min-height: 18px; }
.mf-lead-success { padding: 12px 0; }

.mf-lead-coupon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.mf-lead-coupon-code { font-size: 18px; font-weight: 700; color: #111827; letter-spacing: 0.05em; }

.mf-lead-copy-btn {
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.mf-lead-copy-btn:hover { background: #dbeafe; }

/* ─── Attribution Survey ──────────────────────────────────────────────── */

#mf-survey-widget {
    margin: 24px auto;
    max-width: 480px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.mf-survey-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
}

.mf-survey-title { margin: 0 0 16px; font-size: 17px; font-weight: 700; color: #111827; }

.mf-survey-options { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.mf-survey-btn {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.mf-survey-btn:hover { border-color: #2563eb; color: #2563eb; background: #eff6ff; }
.mf-survey-btn:active { transform: scale(0.97); }

.mf-survey-thanks p { margin: 0 0 8px; font-size: 14px; color: #16a34a; font-weight: 500; }
.mf-survey-coupon { font-size: 14px; color: #374151; margin-top: 8px; }
