/* NORTHWISE chat: a small helper that collects a message step by step (chat.js). It sits at the bottom right of the pages. */
.chatbot { position: fixed; z-index: 50; right: 12px; bottom: 12px; font-family: var(--text, Inter, system-ui, sans-serif); }
body.opening-held .chatbot { display: none; }
.chat-launch { position: relative; width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #04122a; background: linear-gradient(135deg, #5eead4, #14b8a6); box-shadow: 0 10px 30px -8px rgba(20, 184, 166, .8), 0 0 0 1px rgba(255, 255, 255, .25) inset; cursor: pointer; transition: transform .25s cubic-bezier(.2, 1.3, .35, 1); }
.chat-launch:hover { transform: scale(1.08); } .chat-launch:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.chat-launch svg { width: 26px; height: 26px; }
.chat-launch::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(94, 234, 212, .6); animation: chatPulse 2.6s ease-out infinite; }
@keyframes chatPulse { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.chat-launch::before { content: attr(data-label); position: absolute; right: calc(100% + 10px); top: 50%; transform: translate(6px, -50%); padding: 7px 12px; border-radius: 999px; white-space: nowrap; font: 600 13px var(--text, Inter, sans-serif); color: #fff; background: #0a1f3d; border: 1px solid rgba(255, 255, 255, .18); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.chat-launch:hover::before, .chat-launch:focus-visible::before { opacity: 1; transform: translate(0, -50%); }
.chatbot.open .chat-launch { display: none; }
.chat-panel { display: flex; flex-direction: column; width: min(380px, calc(100vw - 24px)); height: min(580px, calc(100vh - 36px)); overflow: hidden; border: 1px solid rgba(255, 255, 255, .16); border-radius: 22px; background: #07152b; box-shadow: 0 30px 70px -20px #000, 0 0 0 1px rgba(94, 234, 212, .12); transform-origin: bottom right; animation: chatIn .45s cubic-bezier(.2, 1.2, .35, 1); }
.chat-panel[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(18px) scale(.92); } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px 16px; background: linear-gradient(135deg, #0f7a6e, #0a2a4d); color: #fff; }
.chat-head img { width: 38px; height: 38px; border-radius: 12px; background: #07152b; padding: 4px; }
.chat-head b { display: block; font: 800 17px var(--display, Sora, sans-serif); } .chat-head small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.3; color: #c9f4ee; }
.chat-head button { margin-left: auto; width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; color: #fff; font-size: 20px; background: rgba(255, 255, 255, .14); cursor: pointer; } .chat-head button:hover { background: rgba(255, 255, 255, .26); }
.chat-direct { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); background: #0a1f3d; }
.chat-direct a { padding: 6px 11px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; font: 600 12.5px var(--text, Inter, sans-serif); color: #fff; text-decoration: none; } .chat-direct a:hover { border-color: #5eead4; background: rgba(94, 234, 212, .12); }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; padding: 14px; scrollbar-width: thin; scrollbar-color: #1d4b78 transparent; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; animation: msgIn .35s cubic-bezier(.2, 1.2, .35, 1); white-space: pre-wrap; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.msg.bot { align-self: flex-start; border-bottom-left-radius: 5px; color: #eaf1f8; background: #12294a; }
.msg.me { align-self: flex-end; border-bottom-right-radius: 5px; color: #04122a; font-weight: 600; background: linear-gradient(135deg, #5eead4, #2dd4bf); }
.msg.typing { display: flex; gap: 5px; padding: 13px 14px; } .msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: #7fa3c9; animation: typing 1s ease-in-out infinite; } .msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { transform: translateY(-4px); opacity: .5; } }
.msg a { color: #5eead4; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 7px; align-self: flex-start; max-width: 100%; animation: msgIn .35s ease; }
.chat-chips button { padding: 9px 14px; border: 1px solid #2dd4bf; border-radius: 999px; color: #5eead4; background: transparent; font: 600 13.5px var(--text, Inter, sans-serif); cursor: pointer; transition: background .2s, color .2s, transform .2s; } .chat-chips button:hover { color: #04122a; background: #5eead4; transform: translateY(-2px); }
.chat-chips button.main { color: #04122a; background: #5eead4; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid rgba(255, 255, 255, .08); background: #0a1f3d; }
.chat-form[hidden] { display: none; }
.chat-form input, .chat-form textarea { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; color: #fff; background: #07152b; font: 15px var(--text, Inter, sans-serif); resize: none; } .chat-form input:focus, .chat-form textarea:focus { outline: 2px solid #2dd4bf; outline-offset: 0; border-color: transparent; }
.chat-form button { flex: none; width: 44px; border: 0; border-radius: 14px; color: #04122a; font-size: 20px; font-weight: 800; background: #5eead4; cursor: pointer; } .chat-form button:disabled { opacity: .5; }
@media (max-width: 560px) { .chatbot { right: 8px; bottom: 8px; } .chat-panel { height: min(78vh, 600px); width: calc(100vw - 16px); } .chat-launch::before { display: none; } }
@media (prefers-reduced-motion: reduce) { .chat-launch::after, .msg.typing i { animation: none; } .chat-panel, .msg, .chat-chips { animation: none; } }
