/* Chatbot Tanya JDIH */
.jc-root { position: fixed; right: 22px; bottom: 92px; z-index: 9990; font-family: inherit; }
.jc-fab { width: 62px; height: 62px; border-radius: 50%; border: 3px solid #e7cf7a; background: linear-gradient(145deg, #1a3a8f, #0b1b45); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 12px 30px rgba(7, 18, 48, .45); transition: transform .2s; position: relative; }
.jc-fab:hover { transform: translateY(-3px) scale(1.04); }
.jc-fab svg { width: 28px; height: 28px; }
.jc-fab .jc-dot { position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
.jc-tip { position: absolute; right: 74px; bottom: 12px; background: #fff; color: #0b1b45; font-size: 13.5px; font-weight: 700; padding: 9px 14px; border-radius: 12px; box-shadow: 0 8px 24px rgba(7, 18, 48, .25); white-space: nowrap; animation: jcIn .4s ease both 1.5s; opacity: 0; }
.jc-tip::after { content: ''; position: absolute; right: -6px; bottom: 14px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); }
.jc-root.open .jc-tip, .jc-root.seen .jc-tip { display: none; }
@keyframes jcIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
.jc-panel { position: absolute; right: 0; bottom: 78px; width: 384px; max-width: calc(100vw - 28px); height: 580px; max-height: calc(100vh - 190px); background: #fff; border-radius: 20px; box-shadow: 0 24px 64px rgba(7, 18, 48, .4); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #dfe4ef; opacity: 0; visibility: hidden; transform: translateY(14px) scale(.98); transform-origin: bottom right; transition: opacity .2s, transform .2s, visibility .2s; }
.jc-root.open .jc-panel { opacity: 1; visibility: visible; transform: none; }
.jc-head { background: linear-gradient(135deg, #0b1b45, #1a3a8f); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 12px; border-bottom: 3px solid #c9a227; flex: 0 0 auto; }
.jc-av { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; overflow: hidden; } .jc-av img { width: 30px; height: 30px; object-fit: contain; }
.jc-head b { display: block; font-size: 15.5px; font-family: 'Playfair Display', Georgia, serif; } .jc-head small { font-size: 12px; color: #e7cf7a; display: flex; align-items: center; gap: 5px; } .jc-head small::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.jc-x { margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; } .jc-x:hover { background: rgba(255, 255, 255, .25); }
.jc-body { flex: 1; overflow-y: auto; padding: 16px 14px; background: #f5f6fa; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.jc-m { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 14.2px; line-height: 1.55; overflow-wrap: anywhere; }
.jc-m.bot { background: #fff; color: #1e293b; border: 1px solid #e3e7ef; border-bottom-left-radius: 4px; align-self: flex-start; }
.jc-m.user { background: #0f2460; color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.jc-m a { color: #0f2460; font-weight: 700; text-decoration: underline; text-decoration-color: #c9a227; text-underline-offset: 2px; word-break: break-all; }
.jc-m ul { margin: 6px 0 2px; padding-left: 18px; } .jc-m p { margin: 0 0 6px; } .jc-m p:last-child { margin: 0; }
.jc-m.err { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.jc-sug { display: flex; flex-wrap: wrap; gap: 7px; align-self: flex-start; }
.jc-sug button { border: 1.5px solid #c9a227; background: #fff; color: #0f2460; border-radius: 99px; padding: 7px 13px; font-size: 13px; font-weight: 700; cursor: pointer; } .jc-sug button:hover { background: #c9a227; color: #071230; }
.jc-typing { display: inline-flex; gap: 4px; padding: 4px 2px; } .jc-typing i { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: jcB 1.1s infinite; } .jc-typing i:nth-child(2) { animation-delay: .15s; } .jc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes jcB { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.jc-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #e3e7ef; background: #fff; flex: 0 0 auto; }
.jc-form textarea { flex: 1; resize: none; border: 1.5px solid #cfd6e4; border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 14.2px; max-height: 96px; outline: 0; line-height: 1.4; } .jc-form textarea:focus { border-color: #c9a227; box-shadow: 0 0 0 3px rgba(201, 162, 39, .2); }
.jc-send { width: 44px; border: 0; border-radius: 12px; background: #0f2460; color: #e7cf7a; cursor: pointer; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; } .jc-send:hover { background: #c9a227; color: #071230; } .jc-send:disabled { opacity: .5; cursor: not-allowed; }
.jc-note { text-align: center; font-size: 11px; color: #64748b; padding: 0 12px 9px; background: #fff; }
@media (max-width: 575px) { .jc-root { right: 14px; bottom: 84px; } .jc-panel { position: fixed; right: 0; left: 0; bottom: 0; width: 100%; max-width: none; height: 86vh; max-height: none; border-radius: 20px 20px 0 0; } .jc-tip { display: none; } }
@media (prefers-reduced-motion: reduce) { .jc-panel, .jc-fab, .jc-typing i { transition: none; animation: none; } }