/* Onpro sticky lead form — fixed bottom-right, collapsed FAB -> expand panel.
   Loaded AFTER site.min.css so these rules win on specificity ties. */

.onpro-sticky-lead{position:fixed;right:88px;bottom:20px;z-index:10060;font-family:Manrope,system-ui,-apple-system,"Segoe UI",sans-serif}
.onpro-sticky-lead__fab{display:flex;align-items:center;gap:8px;min-height:52px;padding:0 18px;border:0;border-radius:999px;background:linear-gradient(135deg,#d4af37,#b8860b 55%,#9a7209);color:#fff;font:inherit;font-size:15px;font-weight:800;letter-spacing:.01em;cursor:pointer;box-shadow:0 10px 24px rgba(184,134,11,.32);transition:transform .15s ease,filter .15s ease}
.onpro-sticky-lead__fab:hover{filter:brightness(1.04);transform:translateY(-1px)}
.onpro-sticky-lead__fab:active{transform:translateY(0)}
.onpro-sticky-lead__fab-ico{font-size:19px;line-height:1}
.onpro-sticky-lead.is-open .onpro-sticky-lead__fab{display:none}

.onpro-sticky-lead__panel{position:fixed;right:16px;bottom:152px;width:min(340px,calc(100vw - 32px));background:#fff;border:1px solid rgba(196,163,90,.35);border-radius:18px;box-shadow:0 18px 44px rgba(15,23,42,.22);padding:16px 16px 14px;box-sizing:border-box;display:none;z-index:10062}
.onpro-sticky-lead.is-open .onpro-sticky-lead__panel{display:block}

.onpro-sticky-lead__head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}
.onpro-sticky-lead__title{margin:0;font-size:16px;font-weight:800;color:#0f2337;line-height:1.3}
.onpro-sticky-lead__sub{margin:3px 0 0;font-size:12px;color:#64748b;line-height:1.4}
.onpro-sticky-lead__close{width:32px;min-width:32px;height:32px;border:0;border-radius:50%;background:#f1f5f9;color:#475569;font:inherit;font-size:18px;line-height:1;cursor:pointer;display:grid;place-items:center}
.onpro-sticky-lead__close:hover{background:#e2e8f0}

.onpro-sticky-lead__field{margin:0 0 8px}
.onpro-sticky-lead__field input{width:100%;height:46px;min-height:46px;padding:0 12px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;font:inherit;font-size:16px;font-weight:600;color:#0f172a;box-sizing:border-box;-webkit-appearance:none;appearance:none}
.onpro-sticky-lead__field input::placeholder{color:#94a3b8;font-weight:500}
.onpro-sticky-lead__field input:focus{outline:0;border-color:#b8860b;box-shadow:0 0 0 3px rgba(196,163,90,.20)}
.onpro-sticky-lead__proj{display:none}

.onpro-sticky-lead__submit{width:100%;min-height:48px;border:0;border-radius:12px;background:linear-gradient(135deg,#C4A35A,#B8860B);color:#fff;font:inherit;font-size:15px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:filter .15s ease}
.onpro-sticky-lead__submit:hover{filter:brightness(1.04)}
.onpro-sticky-lead__submit:disabled{opacity:.75;cursor:wait}
.onpro-sticky-lead__spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;display:none;animation:onproStickySpin .7s linear infinite}
.onpro-sticky-lead__submit.is-loading .onpro-sticky-lead__spinner{display:block}
.onpro-sticky-lead__submit.is-loading .onpro-sticky-lead__label{opacity:.85}
@keyframes onproStickySpin{to{transform:rotate(360deg)}}

.onpro-sticky-lead__hint{margin:8px 0 0;font-size:11px;line-height:1.45;color:#94a3b8}
.onpro-sticky-lead__msg{margin-top:10px;padding:9px 11px;border-radius:10px;font-size:13px;font-weight:600;line-height:1.4;display:none}
.onpro-sticky-lead__msg.ok{display:block;background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0}
.onpro-sticky-lead__msg.err{display:block;background:#fef2f2;color:#991b1b;border:1px solid #fecaca}

.onpro-sticky-lead__toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);z-index:10070;max-width:min(440px,calc(100vw - 24px));padding:12px 16px;border-radius:12px;font-size:14px;font-weight:700;line-height:1.4;box-shadow:0 14px 34px rgba(15,23,42,.24);opacity:0;visibility:hidden;transition:opacity .2s ease,transform .2s ease,visibility .2s ease;text-align:center}
.onpro-sticky-lead__toast.is-on{opacity:1;visibility:visible;transform:translate(-50%,0)}
.onpro-sticky-lead__toast.ok{background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0}
.onpro-sticky-lead__toast.err{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}

/* Khi panel đang mở: ẩn chatbot float để không chồng lên nhau */
body.onpro-sticky-lead-open .float-stack,
body.onpro-sticky-lead-open .chat-avatar,
body.onpro-sticky-lead-open .chat-box-ui,
body.onpro-sticky-lead-open .zalo-float{opacity:0!important;visibility:hidden!important;pointer-events:none!important}

@media (max-width:640px){
  /* Nhả float-stack lên trên thanh sticky full-width */
  .float-stack{bottom:84px!important}
  .onpro-sticky-lead{right:0;left:0;bottom:0}
  .onpro-sticky-lead__fab{width:100%;min-height:56px;border-radius:0;justify-content:center;font-size:16px;padding:0 16px;box-shadow:0 -6px 18px rgba(15,23,42,.16)}
  .onpro-sticky-lead__panel{right:0;left:0;bottom:0;width:100%;max-width:none;border-radius:18px 18px 0 0;padding-bottom:max(16px,env(safe-area-inset-bottom,0px))}
}
@media (min-width:641px){
  .onpro-sticky-lead__panel{bottom:152px}
}