/* ===== External Lead Intake — public page ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 50%, #ecfeff 100%);
    color: #1e293b;
    min-height: 100vh;
    direction: rtl;
    overflow-x: hidden;
}

.li-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; width: 100%; max-width: 100%; overflow-x: hidden; }
.li-card {
    width: 100%; max-width: 560px; background: #fff; border-radius: 20px;
    box-shadow: 0 20px 60px rgba(30, 41, 59, .12); overflow: hidden; padding: 28px;
}
.li-footer { margin-top: 16px; font-size: 12px; color: #94a3b8; }

/* States */
.li-state { text-align: center; padding: 40px 20px; }
.li-spinner { font-size: 34px; color: #6366f1; margin-bottom: 12px; }
.li-state-icon { font-size: 64px; margin-bottom: 14px; }
.li-state-icon.success { color: #10b981; }
.li-state-icon.danger { color: #ef4444; }
.li-state h2 { margin: 8px 0; font-size: 22px; }
.li-state p { color: #64748b; margin: 6px 0 18px; }

/* Header */
.li-header { text-align: center; margin-bottom: 22px; }
.li-logo { max-height: 64px; margin-bottom: 10px; }
.li-header h1 { font-size: 24px; margin: 0 0 4px; color: #0f172a; }
.li-group { color: #64748b; font-size: 14px; margin: 0; }

/* Sections */
.li-section { display: block; }
.li-row { display: flex; gap: 14px; }
.li-row .li-field { flex: 1; }
.li-field { margin-bottom: 16px; position: relative; }
.li-field > label { display: block; font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 6px; }
.li-field .req { color: #ef4444; }
.li-field input, .li-field textarea, .li-select {
    width: 100%; padding: 12px 14px; border: 1.5px solid #e2e8f0; border-radius: 12px;
    font-size: 15px; font-family: inherit; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.li-field input:focus, .li-field textarea:focus, .li-select:focus {
    outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}
.li-static-value { padding: 12px 14px; background: #f1f5f9; border-radius: 12px; font-weight: 600; color: #334155; }

/* Honeypot — hidden from real users (visually-hidden pattern, ללא גרירת פריסה/גלילה) */
.li-hp {
    position: absolute !important; width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important; overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; opacity: 0 !important;
}

/* Anti-bot arming bar — קצר וברור, חוסם שליחה מיידית של בוטים */
.li-arm { height: 4px; background: #eef2f7; border-radius: 999px; overflow: hidden; margin-bottom: 16px; display: none; }
.li-arm.active { display: block; }
.li-arm-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #6366f1, #4f46e5); }

/* Autocomplete */
.li-ac-list {
    position: absolute; top: 100%; inset-inline: 0; z-index: 30; background: #fff;
    border: 1px solid #e2e8f0; border-radius: 12px; margin-top: 4px; box-shadow: 0 12px 30px rgba(0,0,0,.1);
    max-height: 220px; overflow-y: auto; display: none;
}
.li-ac-item { padding: 10px 14px; cursor: pointer; font-size: 14px; }
.li-ac-item:hover { background: #eef2ff; }

/* Buttons */
.li-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 14px 18px; border: none; border-radius: 12px; font-size: 16px; font-weight: 700;
    cursor: pointer; transition: transform .1s, box-shadow .15s, opacity .15s; font-family: inherit;
}
.li-btn:active { transform: translateY(1px); }
.li-btn:disabled { opacity: .6; cursor: default; }
.li-btn-primary { background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff; box-shadow: 0 8px 20px rgba(79, 70, 229, .3); }
.li-btn-primary:hover { box-shadow: 0 10px 26px rgba(79, 70, 229, .4); }
.li-btn-secondary { background: #f1f5f9; color: #334155; }
.li-submit { margin-top: 6px; }
.li-link-btn { background: none; border: none; color: #6366f1; cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }

/* Auth step */
.li-auth-intro { display: flex; align-items: center; gap: 10px; background: #eef2ff; border-radius: 12px; padding: 14px; margin-bottom: 18px; color: #4338ca; }
.li-auth-intro i { font-size: 22px; }
.li-auth-intro p { margin: 0; font-size: 14px; }
.li-otp-input { text-align: center; letter-spacing: 8px; font-size: 22px; font-weight: 700; }
#liResendOtp { display: block; margin: 10px auto 0; }

/* Privacy */
.li-privacy { margin: 8px 0 18px; }
.li-check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: #475569; cursor: pointer; }
.li-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: #6366f1; }

/* Modal */
.li-modal-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.li-modal { background: #fff; border-radius: 16px; max-width: 560px; width: 100%; max-height: 80vh; display: flex; flex-direction: column; overflow: hidden; }
.li-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #e2e8f0; }
.li-modal-head h3 { margin: 0; font-size: 18px; }
.li-modal-close { background: none; border: none; font-size: 20px; color: #94a3b8; cursor: pointer; }
.li-modal-body { padding: 20px; overflow-y: auto; line-height: 1.7; color: #475569; font-size: 14px; }

/* Toast */
.li-toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: #1e293b; color: #fff; padding: 12px 22px; border-radius: 12px; font-size: 14px; font-weight: 600;
    opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 200; max-width: 90vw;
}
.li-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.li-toast.success { background: #059669; }
.li-toast.error { background: #dc2626; }

@media (max-width: 520px) {
    .li-card { padding: 20px; border-radius: 16px; }
    .li-row { flex-direction: column; gap: 0; }
}
