*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:"Hind Siliguri",Arial,sans-serif;color:#17324d;background:#eef5fb}body{overflow:auto}.site-shell{min-height:100vh;background:linear-gradient(180deg,#f6fbff,#eef5fb)}.topbar{height:92px;background:#fff;display:flex;align-items:center;gap:28px;padding:12px 3%;border-bottom:1px solid #dce8f2}.brand{display:flex;align-items:center;gap:12px;min-width:340px}.brand-mark{width:58px;height:58px;border-radius:18px;background:linear-gradient(135deg,#e4f5ff,#fff);display:grid;place-items:center;font-size:30px;border:1px solid #d4e8f6}.brand strong{display:block;font-size:27px;line-height:1.05;color:#12395e}.brand span{display:block;color:#6a7e90;font-size:13px;margin-top:5px}.top-message{flex:1;border-left:2px solid #0d6efd;padding-left:22px}.top-message strong{display:block;font-size:18px}.top-message span{display:block;color:#65788a;font-size:13px;margin-top:3px}.ai-pill{display:flex;align-items:center;gap:10px;background:linear-gradient(135deg,#145db4,#0d83d8);color:#fff;border-radius:24px;padding:10px 18px;min-width:260px}.ai-pill>span{font-size:29px}.ai-pill b{display:block;font-size:18px}.ai-pill small{display:block;font-size:11px;opacity:.85}.workspace{max-width:1500px;margin:12px auto;padding:0 12px;display:grid;grid-template-columns:300px minmax(520px,1fr) 300px;gap:14px;min-height:calc(100vh - 116px)}.left-panel,.chat-panel,.right-panel>div{background:#fff;border:1px solid #dbe8f2;box-shadow:0 5px 22px rgba(22,65,100,.06)}.left-panel{border-radius:16px;overflow:hidden;height:calc(100vh - 140px);position:sticky;top:12px}.panel-heading{background:#083f70;color:#fff;padding:18px 20px;font-size:18px;font-weight:700}.category-list{padding:8px}.category-item{width:100%;display:flex;align-items:center;gap:10px;border:0;background:#fff;color:#23445f;padding:10px 10px;border-radius:11px;font:inherit;text-align:left;cursor:pointer;margin:2px 0}.category-item:hover,.category-item.active{background:#eef7ff;color:#075eae}.category-item .cat-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#edf5ff;font-size:18px}.category-item b{margin-left:auto;font-size:22px;color:#8aa0b2}.category-item.more{margin:8px;border-top:1px solid #e5edf4;padding-top:13px}.chat-panel{border-radius:18px;overflow:hidden;display:flex;flex-direction:column;min-height:calc(100vh - 140px)}.chat-top{height:86px;background:linear-gradient(135deg,#0d72d8,#0876c6);color:#fff;display:flex;align-items:center;padding:12px 18px;gap:12px}.chat-avatar{width:54px;height:54px;border-radius:50%;background:#fff;display:grid;place-items:center;font-size:29px}.chat-title{flex:1}.chat-title strong{display:block;font-size:21px}.chat-title span{font-size:12px;opacity:.9}.chat-title i{display:inline-block;width:8px;height:8px;background:#37e39a;border-radius:50%;margin-right:5px}.smart-badge{display:flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.55);border-radius:18px;padding:8px 12px}.smart-badge>b{}.smart-badge span{display:flex;flex-direction:column}.smart-badge b{font-size:13px}.smart-badge small{font-size:10px}.chat-scroll{flex:1;overflow:auto;padding:18px 18px 12px;background:#fbfdff}.bot-row,.user-row{display:flex;gap:9px;margin:0 0 13px}.user-row{justify-content:flex-end}.avatar-small{width:36px;height:36px;flex:0 0 36px;border-radius:50%;background:#e7f3ff;display:grid;place-items:center}.bubble{max-width:78%;padding:11px 14px;border-radius:16px;font-size:14px;line-height:1.65;box-shadow:0 2px 9px rgba(27,73,107,.05)}.bubble.bot{background:#edf6ff;border:1px solid #dcebf7;border-bottom-left-radius:5px}.bubble.user{background:#1685ed;color:#fff;border-bottom-right-radius:5px}.welcome-card{background:#f0f7ff;border:1px solid #d8e9f7;border-radius:17px;padding:14px;margin:4px 0 14px}.welcome-title{font-weight:700;color:#154d7d;margin-bottom:10px}.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.quick-card{border:1px solid #d3e4f3;background:#fff;border-radius:11px;padding:9px 7px;font:inherit;font-size:12px;color:#174665;cursor:pointer;min-height:54px}.quick-card span{display:block;font-size:20px;margin-bottom:2px}.quick-card:hover{border-color:#75b8f2;background:#f8fcff}.result-card{background:#fff;border:1px solid #dce8f1;border-radius:15px;padding:12px;margin:8px 0;box-shadow:0 3px 12px rgba(20,67,105,.05)}.result-name{font-size:16px;font-weight:700;color:#16456b}.result-designation{font-size:12px;color:#728596}.result-detail{font-size:12px;line-height:1.7;color:#5d6f7f;margin-top:8px;border-top:1px solid #edf2f6;padding-top:8px}.result-actions{display:flex;gap:8px;margin-top:10px}.action-btn{display:inline-flex;align-items:center;justify-content:center;padding:7px 12px;border-radius:9px;background:#0d78d4;color:#fff;text-decoration:none;font-size:12px}.typing{display:none;width:max-content;padding:9px 13px;background:#fff;border:1px solid #dfe9f1;border-radius:15px}.typing span{display:inline-block;width:6px;height:6px;border-radius:50%;background:#8da6b9;margin:0 2px;animation:t 1s infinite}.typing span:nth-child(2){animation-delay:.15s}.typing span:nth-child(3){animation-delay:.3s}@keyframes t{50%{transform:translateY(-4px)}}.chat-input{display:flex;gap:8px;padding:10px;background:#fff;border-top:1px solid #dfe8ef}.chat-input textarea{flex:1;resize:none;border:1px solid #d3e1eb;border-radius:23px;padding:11px 15px;min-height:44px;max-height:120px;font:inherit;outline:none}.chat-input textarea:focus{border-color:#1585e6}.chat-input button{width:46px;height:46px;border:0;border-radius:50%;background:#0c7bdd;color:#fff;font-size:20px;cursor:pointer}.right-panel{display:flex;flex-direction:column;gap:12px}.right-panel>div{border-radius:16px;overflow:hidden}.place-card{min-height:176px;position:relative;background:linear-gradient(135deg,#0e628f,#0b3e67);color:#fff}.place-image{height:115px;background:linear-gradient(135deg,#79c8ec,#d9f2ff);display:grid;place-items:center;font-size:70px}.place-overlay{padding:11px 14px;display:flex;gap:10px}.place-overlay>span{font-size:28px}.place-overlay b{display:block;font-size:18px}.place-overlay small{display:block;opacity:.85}.info-card{padding:15px 17px}.info-card h3{margin:0 0 9px;color:#14527f;font-size:17px}.info-card ul,.info-card ol{margin:0;padding-left:21px;color:#536b7d;font-size:12px;line-height:2}.privacy{background:#eefbf5!important}.privacy h3{color:#19855b}.privacy p{font-size:12px;color:#5e7569;line-height:1.7;margin:0}.motto{text-align:center;border:0!important;background:transparent!important;box-shadow:none!important;color:#27526e;font-weight:600;padding:10px!important}.gate-backdrop{display:none;position:fixed;inset:0;background:rgba(8,35,57,.55);backdrop-filter:blur(5px);z-index:100}.gate-backdrop.open{display:grid;place-items:center}.gate-modal{width:min(430px,calc(100vw - 30px));background:#fff;border-radius:22px;padding:26px;position:relative;box-shadow:0 20px 70px rgba(0,0,0,.2)}.gate-close{position:absolute;right:14px;top:10px;border:0;background:none;font-size:27px;color:#789;cursor:pointer}.gate-logo{width:66px;height:66px;border-radius:20px;background:#e9f5ff;display:grid;place-items:center;font-size:33px;margin:0 auto 10px}.gate-modal h2{text-align:center;margin:0;color:#11466d}.gate-modal>p{text-align:center;color:#6a7d8d;font-size:13px;line-height:1.6}.gate-modal label{display:block;font-size:13px;font-weight:700;color:#36546b;margin:12px 0}.gate-modal input{display:block;width:100%;margin-top:6px;border:1px solid #d2e1ec;border-radius:11px;padding:11px;font:inherit;outline:none}.start-btn{width:100%;border:0;border-radius:12px;padding:12px;background:#0c7bdd;color:#fff;font:inherit;font-weight:700;cursor:pointer}.gate-modal small{display:block;text-align:center;color:#8092a0;font-size:11px;margin-top:10px}@media(max-width:1100px){.workspace{grid-template-columns:240px minmax(0,1fr)}.right-panel{display:none}.brand{min-width:250px}.top-message{display:none}}@media(max-width:760px){.topbar{height:70px;padding:8px 12px}.brand-mark{width:44px;height:44px;font-size:23px}.brand strong{font-size:20px}.brand span{font-size:10px}.ai-pill{margin-left:auto;min-width:0;padding:8px 10px}.ai-pill div{display:none}.workspace{display:block;margin:0;padding:0}.left-panel{display:none}.chat-panel{border-radius:0;min-height:calc(100vh - 70px);border:0}.chat-top{height:70px}.chat-title strong{font-size:16px}.smart-badge{display:none}.quick-grid{grid-template-columns:repeat(2,1fr)}.bubble{max-width:88%}}

/* ===== Final UX polish ===== */
.gate-modal{border:1px solid #dcecf8;padding:30px;max-width:450px}
.gate-step{font-size:10px;letter-spacing:1.5px;font-weight:700;color:#0d78d4;text-align:center;margin:4px 0 7px}
.gate-modal h2{font-size:24px}
.gate-modal>p{margin:8px 0 20px}
.category-list{max-height:calc(100vh - 205px);overflow:auto}
.category-item{min-height:48px}
.category-item span:nth-child(2){white-space:normal;line-height:1.35}
.quick-card{line-height:1.35;word-break:break-word}
@media(max-width:760px){
 .left-panel{display:block;height:auto;position:static;border:0;border-radius:0;box-shadow:none;background:#f5faff;overflow:visible}
 .panel-heading{padding:11px 14px;font-size:15px}
 .category-list{display:flex;overflow-x:auto;gap:8px;padding:9px 10px;background:#fff;max-height:none}
 .category-item{min-width:150px;width:auto;min-height:50px;flex:0 0 auto;border:1px solid #dce9f3;background:#fff;margin:0;padding:8px 10px}
 .category-item b{display:none}
 .category-item.more{display:none}
 .chat-panel{min-height:calc(100vh - 135px)}
 .chat-scroll{padding:14px 11px 10px}
 .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .quick-card{min-height:62px;padding:8px 5px}
 .gate-modal{padding:25px 19px}
}

/* ========================= FINAL USER UI ========================= */
:root{--primary:#0b73d1;--primary-dark:#075aa8;--ink:#17324d;--muted:#6f8190;--line:#dce8f2}
body{background:#f3f8fc;color:var(--ink)}
.topbar{height:auto;min-height:82px;padding:12px 24px;gap:20px;background:rgba(255,255,255,.97);position:sticky;top:0;z-index:20;box-shadow:0 2px 15px rgba(15,67,105,.06)}
.brand{min-width:290px}.brand-mark{box-shadow:0 7px 18px rgba(13,114,216,.10)}
.ai-pill{min-width:235px;justify-content:center}
.workspace{max-width:1540px;grid-template-columns:285px minmax(0,1fr) 285px;gap:16px;padding:16px 16px 20px}
.left-panel{height:calc(100vh - 115px);top:98px;border-radius:20px;box-shadow:0 8px 28px rgba(23,67,100,.08)}
.panel-heading{display:flex;align-items:center;gap:10px;padding:15px 16px;background:linear-gradient(135deg,#075da8,#0b7bd5)}
.panel-heading>span{font-size:23px}.panel-heading b{display:block;font-size:17px}.panel-heading small{display:block;font-size:11px;font-weight:400;opacity:.85;margin-top:1px}
.category-list{padding:9px;scrollbar-width:thin}.category-item{min-height:51px;padding:8px 9px;border:1px solid transparent;transition:.18s}.category-item:hover{border-color:#cfe4f5;box-shadow:0 3px 10px rgba(20,92,145,.05)}
.category-item .cat-icon{background:#edf7ff}.category-item span:nth-child(2){font-weight:600;font-size:13px}
.chat-panel{min-height:calc(100vh - 115px);border-radius:20px;box-shadow:0 8px 28px rgba(23,67,100,.08)}
.chat-top{height:82px;background:linear-gradient(135deg,#075da8,#0d82d8)}
.chat-scroll{background:linear-gradient(180deg,#fafdff,#f5faff)}
.welcome-card{box-shadow:0 4px 16px rgba(20,82,125,.04)}
.quick-card{font-weight:600}
.result-card{transition:.18s}.result-card:hover{transform:translateY(-1px);box-shadow:0 7px 20px rgba(20,67,105,.08)}
.chat-input{padding:12px 14px}.chat-input textarea{background:#fbfdff}
.right-panel{gap:14px}.place-card{box-shadow:0 7px 22px rgba(20,70,100,.08)}
.gate-backdrop{background:rgba(5,31,52,.62);backdrop-filter:blur(8px)}
.gate-modal{border:1px solid #d7e9f6;border-radius:25px;padding:30px 28px;box-shadow:0 25px 90px rgba(0,0,0,.25)}
.gate-logo{width:72px;height:72px;background:linear-gradient(135deg,#e7f5ff,#f5fbff);border:1px solid #d6eaf8;box-shadow:0 10px 25px rgba(10,110,190,.10)}
.gate-modal h2{font-size:25px;margin-top:3px}.gate-modal label{margin:14px 0}.gate-modal input{height:50px;padding:0 14px;margin-top:7px;background:#fbfdff}.gate-modal input:focus{border-color:#0d7bd2;box-shadow:0 0 0 4px rgba(13,123,210,.08)}
.start-btn{height:50px;background:linear-gradient(135deg,#0871ca,#0d88df);box-shadow:0 9px 22px rgba(10,116,204,.20)}
.start-btn:hover{transform:translateY(-1px)}
@media(max-width:1100px){.workspace{grid-template-columns:250px minmax(0,1fr)}.right-panel{display:none}}
@media(max-width:760px){
 body{background:#f4f8fc}.topbar{position:static;padding:9px 12px;min-height:64px}.brand{min-width:0}.brand strong{font-size:19px}.brand span{font-size:9px}.ai-pill{padding:7px 9px}
 .workspace{padding:0;display:block}.left-panel{height:auto;position:static;border-radius:0;box-shadow:none;border-bottom:1px solid #dbe7f0}.panel-heading{padding:10px 13px}.panel-heading b{font-size:14px}.panel-heading small{font-size:10px}.category-list{gap:7px;padding:9px 10px}
 .category-item{min-width:145px;min-height:49px;border:1px solid #dce8f1;box-shadow:none}.category-item span:nth-child(2){font-size:12px}.category-item .cat-icon{width:28px;height:28px;font-size:16px}
 .chat-panel{min-height:calc(100vh - 130px);border-radius:0;box-shadow:none}.chat-top{height:67px;padding:8px 12px}.chat-avatar{width:45px;height:45px;font-size:24px}.chat-title strong{font-size:15px}.chat-scroll{padding:12px 10px}.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.quick-card{font-size:11px;min-height:58px}.bubble{font-size:13px}.gate-modal{width:calc(100vw - 24px);padding:25px 18px;border-radius:22px}.gate-modal h2{font-size:21px}.gate-logo{width:64px;height:64px}
}

.more-results-link{margin-top:10px;text-align:center}.more-results-link a{display:inline-block;padding:9px 14px;border-radius:10px;text-decoration:none;font-weight:700}



/* =========================================================
   FIXED CHAT NAVIGATION
========================================================= */
.bottom-chat-nav{
    position:fixed !important;
    left:50% !important;
    bottom:14px !important;
    transform:translateX(-50%) !important;
    z-index:99999 !important;
    display:flex !important;
    align-items:center;
    justify-content:center;
    gap:8px;
    width:min(360px,calc(100% - 24px));
    padding:8px;
    background:rgba(255,255,255,.98);
    border:1px solid #cfdfea;
    border-radius:18px;
    box-shadow:0 12px 38px rgba(15,50,80,.22);
    box-sizing:border-box;
    visibility:visible !important;
    opacity:1 !important;
}
.bottom-nav-btn{
    appearance:none;
    -webkit-appearance:none;
    flex:1;
    min-height:50px;
    display:flex !important;
    align-items:center;
    justify-content:center;
    gap:7px;
    border:0;
    border-radius:13px;
    background:#eef7ff;
    color:#075eae;
    cursor:pointer;
    font:600 13px "Hind Siliguri",Arial,sans-serif;
}
.bottom-nav-btn span{font-size:24px;line-height:1}
.bottom-nav-btn small{font:700 13px "Hind Siliguri",Arial,sans-serif}
.bottom-nav-btn.close{background:#fff1f1;color:#c62828}
.bottom-nav-btn:hover{filter:brightness(.97)}

.more-results-link{
    display:block !important;
    width:100%;
    margin:12px 0 18px;
    text-align:center;
    clear:both;
}
.more-results-link a{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:8px 18px;
    border-radius:12px;
    background:#0b73d1;
    color:#fff !important;
    text-decoration:none !important;
    font:700 14px "Hind Siliguri",Arial,sans-serif;
    box-shadow:0 5px 16px rgba(11,115,209,.18);
}

.chat-scroll{padding-bottom:90px !important}

/* top breathing space */
.site-shell{padding-top:10px}

@media(max-width:760px){
    .site-shell{padding-top:6px}
    .bottom-chat-nav{
        bottom:9px !important;
        width:calc(100% - 18px);
        padding:6px;
        border-radius:16px;
    }
    .bottom-nav-btn{min-height:46px}
    .bottom-nav-btn small{font-size:12px}
    .chat-scroll{padding-bottom:78px !important}
}
\n\n/* =========================================================\n   FINAL CHAT NAVIGATION OVERRIDE\n   Keep Home / Chat Close visible above every chat element.\n========================================================= */\n#chatBottomNav.bottom-chat-nav{\n  position:fixed !important;\n  display:flex !important;\n  visibility:visible !important;\n  opacity:1 !important;\n  left:50% !important;\n  right:auto !important;\n  bottom:12px !important;\n  transform:translateX(-50%) !important;\n  width:min(360px,calc(100vw - 24px)) !important;\n  height:auto !important;\n  min-height:60px !important;\n  z-index:2147483000 !important;\n  pointer-events:auto !important;\n  padding:7px !important;\n  margin:0 !important;\n  background:#ffffff !important;\n  border:1px solid #c8d9e6 !important;\n  border-radius:18px !important;\n  box-shadow:0 12px 40px rgba(0,0,0,.22) !important;\n}\n#chatBottomNav .bottom-nav-btn{\n  display:flex !important;\n  visibility:visible !important;\n  opacity:1 !important;\n  pointer-events:auto !important;\n  flex:1 1 0 !important;\n  min-height:48px !important;\n  align-items:center !important;\n  justify-content:center !important;\n  border:0 !important;\n  border-radius:13px !important;\n  background:#eef7ff !important;\n  color:#075eae !important;\n  font-family:"Hind Siliguri",Arial,sans-serif !important;\n  cursor:pointer !important;\n}\n#chatBottomNav .bottom-nav-btn.close{\n  background:#fff0f0 !important;\n  color:#c62828 !important;\n}\n#chatBottomNav .bottom-nav-btn span{font-size:24px !important;line-height:1 !important}\n#chatBottomNav .bottom-nav-btn small{font-size:13px !important;font-weight:700 !important}\n.chat-scroll{padding-bottom:12px !important}\n\n/* Global More Details button */\n#chatMessages .more-results-link{\n  display:block !important;\n  visibility:visible !important;\n  opacity:1 !important;\n  width:100% !important;\n  clear:both !important;\n  text-align:center !important;\n  margin:14px 0 22px !important;\n}\n#chatMessages .more-results-link a{\n  display:inline-flex !important;\n  visibility:visible !important;\n  align-items:center !important;\n  justify-content:center !important;\n  min-height:44px !important;\n  padding:8px 20px !important;\n  border-radius:12px !important;\n  background:#0b73d1 !important;\n  color:#fff !important;\n  text-decoration:none !important;\n  font-weight:700 !important;\n}\n@media(max-width:760px){\n  #chatBottomNav.bottom-chat-nav{bottom:8px !important;width:calc(100vw - 16px) !important;min-height:56px !important}\n  #chatBottomNav .bottom-nav-btn{min-height:44px !important}\n  #chatBottomNav .bottom-nav-btn small{font-size:12px !important}\n  .chat-scroll{padding-bottom:12px !important}\n}\n

/* Intro card chat input: keep it directly below the intro text and above the bottom navigation */
.chat-intro-content{flex:1;min-width:0;width:100%;}
.chat-intro-card{display:flex;align-items:flex-start;gap:12px;}
.intro-chat-form{width:100%;display:flex;align-items:flex-end;gap:8px;margin-top:12px;padding:0 !important;box-sizing:border-box;}
.intro-chat-form textarea{flex:1;min-width:0;min-height:46px;max-height:120px;padding:11px 13px;resize:none;outline:none;border:1px solid #d0d5dd;border-radius:13px;background:#fff;color:#344054;font-family:"Hind Siliguri",Arial,sans-serif;font-size:14px;box-sizing:border-box;}
.intro-chat-form textarea:focus{border-color:#0d6efd;box-shadow:0 0 0 3px rgba(13,110,253,.10);}
.intro-chat-form button{width:46px;height:46px;min-width:46px;border:0;border-radius:50%;background:#0d6efd;color:#fff;display:flex;align-items:center;justify-content:center;font-size:21px;cursor:pointer;}
.intro-chat-form button:hover{background:#0b5ed7;}
.chat-scroll{padding-bottom:110px !important;}
#chatMessages .more-results-link a{background:#dc3545 !important;border-color:#dc3545 !important;color:#fff !important;}
#chatMessages .more-results-link a:hover{background:#c82333 !important;border-color:#c82333 !important;color:#fff !important;}
@media(max-width:760px){.chat-scroll{padding-bottom:96px !important;}.intro-chat-form textarea{min-height:44px;font-size:14px;}.intro-chat-form button{width:44px;height:44px;min-width:44px;}}

/* Chat input is below the answer area, never fixed. */
.chat-panel > .intro-chat-form{
  position:static !important;
  width:100% !important;
  flex:0 0 auto !important;
  margin:0 !important;
  padding:10px !important;
  border-top:1px solid #dfe8ef !important;
  background:#fff !important;
  z-index:auto !important;
}
@media(max-width:760px){.chat-panel > .intro-chat-form{position:static !important;}}

/* FINAL: answer area first, chat input directly underneath; nothing fixed */
#chatBottomNav.bottom-chat-nav{
  position:static !important;
  left:auto !important;
  right:auto !important;
  bottom:auto !important;
  transform:none !important;
  width:100% !important;
  margin:0 !important;
  border-radius:0 !important;
  z-index:auto !important;
}
.chat-panel > .chat-scroll{
  position:relative !important;
  flex:1 1 auto !important;
  overflow:auto !important;
  padding-bottom:12px !important;
}
.chat-panel > .intro-chat-form{
  position:static !important;
  flex:0 0 auto !important;
  width:100% !important;
  margin:0 !important;
  z-index:auto !important;
}

/* FINAL POSITION: input sits slightly closer to the answers */
.chat-panel > .intro-chat-form{
  margin-top:-4px !important;
  padding:4px 10px 8px !important;
  border-top:0 !important;
}
@media(max-width:760px){
  .chat-panel > .intro-chat-form{margin-top:-5px !important;padding:3px 8px 7px !important;}
}


/* FINAL: compact animated circular close button in the bottom-right corner.
   It stays clear of the chat input/send button. */
#chatBottomNav.bottom-chat-nav{
  position:fixed !important;
  left:auto !important;
  right:14px !important;
  bottom:76px !important;
  transform:none !important;
  width:58px !important;
  height:58px !important;
  min-height:58px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:50% !important;
  background:transparent !important;
  box-shadow:none !important;
  z-index:2147483000 !important;
  display:block !important;
  pointer-events:none !important;
}
#chatBottomNav .bottom-nav-btn.close{
  width:58px !important;
  height:58px !important;
  min-height:58px !important;
  padding:0 !important;
  margin:0 !important;
  border:2px solid rgba(255,255,255,.95) !important;
  border-radius:50% !important;
  background:#dc3545 !important;
  color:#fff !important;
  box-shadow:0 8px 22px rgba(220,53,69,.30),0 2px 7px rgba(0,0,0,.16) !important;
  display:flex !important;
  flex-direction:column !important;
  gap:0 !important;
  pointer-events:auto !important;
  animation:chatCloseFloat 2.4s ease-in-out infinite,chatClosePulse 2.4s ease-in-out infinite !important;
}
#chatBottomNav .bottom-nav-btn.close span{
  font-size:29px !important;
  line-height:25px !important;
  font-family:Arial,sans-serif !important;
  font-weight:300 !important;
}
#chatBottomNav .bottom-nav-btn.close small{
  display:none !important;
}
#chatBottomNav .bottom-nav-btn.close:hover{
  background:#c82333 !important;
  transform:scale(1.05) !important;
}
@keyframes chatCloseFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-5px)}
}
@keyframes chatClosePulse{
  0%,100%{box-shadow:0 8px 22px rgba(220,53,69,.30),0 2px 7px rgba(0,0,0,.16)}
  50%{box-shadow:0 10px 28px rgba(220,53,69,.40),0 2px 7px rgba(0,0,0,.16)}
}
/* Keep the input/send area comfortably above the floating close button. */
.chat-panel > .intro-chat-form{
  position:relative !important;
  z-index:2 !important;
  margin-bottom:8px !important;
}
@media(max-width:760px){
  #chatBottomNav.bottom-chat-nav{right:10px !important;bottom:72px !important;width:52px !important;height:52px !important;min-height:52px !important}
  #chatBottomNav .bottom-nav-btn.close{width:52px !important;height:52px !important;min-height:52px !important}
  #chatBottomNav .bottom-nav-btn.close span{font-size:26px !important;line-height:23px !important}
  .chat-panel > .intro-chat-form{margin-bottom:6px !important}
}
@media(prefers-reduced-motion:reduce){
  #chatBottomNav .bottom-nav-btn.close{animation:none !important}
}


/* FINAL UI: keep the message box pinned to the bottom of the visible chat screen. */
.chat-panel{position:relative !important;}
.chat-panel > .chat-scroll{
  min-height:0 !important;
  padding-bottom:86px !important;
}
.chat-panel > .intro-chat-form{
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  width:100% !important;
  margin:0 !important;
  padding:8px 10px !important;
  background:rgba(255,255,255,.98) !important;
  border-top:1px solid #dfe8ef !important;
  box-shadow:0 -5px 16px rgba(20,67,105,.06) !important;
  z-index:20 !important;
}
#chatBottomNav.bottom-chat-nav{
  right:12px !important;
  left:auto !important;
  bottom:88px !important;
  width:auto !important;
  height:auto !important;
  min-height:0 !important;
  pointer-events:none !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  z-index:30 !important;
}
#chatBottomNav .bottom-nav-btn.close{
  width:auto !important;
  min-width:112px !important;
  height:40px !important;
  min-height:40px !important;
  padding:0 14px !important;
  border-radius:22px !important;
  flex-direction:row !important;
  gap:6px !important;
  pointer-events:auto !important;
}
#chatBottomNav .bottom-nav-btn.close span{
  font-size:23px !important;
  line-height:1 !important;
}
#chatBottomNav .bottom-nav-btn.close small{
  display:block !important;
  font-size:13px !important;
  font-weight:700 !important;
  line-height:1 !important;
  white-space:nowrap !important;
}
@media(max-width:760px){
  .chat-panel > .chat-scroll{padding-bottom:82px !important;}
  .chat-panel > .intro-chat-form{
    padding:6px 8px 8px !important;
  }
  #chatBottomNav.bottom-chat-nav{
    right:9px !important;
    bottom:82px !important;
  }
  #chatBottomNav .bottom-nav-btn.close{
    min-width:108px !important;
    height:38px !important;
    min-height:38px !important;
    padding:0 12px !important;
  }
  #chatBottomNav .bottom-nav-btn.close span{font-size:21px !important;}
  #chatBottomNav .bottom-nav-btn.close small{font-size:12px !important;}
}

/* =========================================================
   FINAL MOBILE CHAT UI FIX
   Keep message box attached to the visible screen bottom and
   keep the Close button visible above it without covering Send.
========================================================= */
@media(max-width:760px){
  .chat-panel > .intro-chat-form{
    position:fixed !important;
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    width:100vw !important;
    margin:0 !important;
    padding:7px 9px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    background:rgba(255,255,255,.98) !important;
    border-top:1px solid #d7e2eb !important;
    box-shadow:0 -5px 18px rgba(20,67,105,.12) !important;
    z-index:2147483001 !important;
  }
  .chat-panel > .intro-chat-form textarea{
    min-height:44px !important;
    max-height:96px !important;
  }
  .chat-panel > .intro-chat-form button{
    width:44px !important;
    min-width:44px !important;
    height:44px !important;
    min-height:44px !important;
  }
  .chat-panel > .chat-scroll{
    padding-bottom:78px !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch !important;
  }
  #chatBottomNav.bottom-chat-nav{
    position:fixed !important;
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    left:auto !important;
    right:10px !important;
    bottom:calc(70px + env(safe-area-inset-bottom, 0px)) !important;
    width:auto !important;
    height:auto !important;
    min-height:0 !important;
    padding:0 !important;
    margin:0 !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    transform:none !important;
    pointer-events:none !important;
    z-index:2147483002 !important;
  }
  #chatBottomNav .bottom-nav-btn.close{
    display:flex !important;
    width:auto !important;
    min-width:124px !important;
    height:40px !important;
    min-height:40px !important;
    padding:0 15px !important;
    align-items:center !important;
    justify-content:center !important;
    flex-direction:row !important;
    gap:6px !important;
    border-radius:22px !important;
    background:#e52f45 !important;
    color:#fff !important;
    border:2px solid #fff !important;
    box-shadow:0 5px 16px rgba(229,47,69,.30) !important;
    pointer-events:auto !important;
    animation:chatCloseFloat 2.2s ease-in-out infinite !important;
  }
  #chatBottomNav .bottom-nav-btn.close span{
    display:inline !important;
    font-size:22px !important;
    line-height:1 !important;
  }
  #chatBottomNav .bottom-nav-btn.close small{
    display:inline !important;
    font-size:12px !important;
    font-weight:700 !important;
    line-height:1 !important;
    white-space:nowrap !important;
  }
}
@keyframes chatCloseFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-4px)}
}
@media(prefers-reduced-motion:reduce){
  #chatBottomNav .bottom-nav-btn.close{animation:none !important}
}



