#vj-chat {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 10000;
    font-family: inherit;
}

/* ==========================================================================
   INTERACTIVE ANIMATED MASCOT FAB (COMPACT MYREPUBLIC-STYLE CALLOUT)
   ========================================================================== */
.vj-fab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    border: 2px solid #F59E0B;
    border-radius: 22px 22px 22px 8px;
    padding: 12px 50px 12px 14px;
    background: linear-gradient(145deg, #145CB5 0%, #0B3878 100%);
    color: #FFFFFF;
    box-shadow: 0 10px 26px rgba(11, 56, 120, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    cursor: pointer;
    text-align: left;
    animation: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vj-fab:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 32px rgba(11, 56, 120, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.vj-fab__card {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vj-fab__kicker {
    display: none;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 600;
    color: #FDE68A;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.vj-fab__logo {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #FFFFFF;
    padding: 1px;
    object-fit: contain;
}

.vj-fab__title {
    font-size: 13px;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.vj-fab__pill {
    display: none;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #FFFFFF;
    color: #0B3878;
    font-size: 10.5px;
    font-weight: 700;
    width: fit-content;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
}

.vj-fab__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.28);
    animation: vj-pulse-dot 1.8s ease-in-out infinite;
}

.vj-fab__mascot {
    position: absolute;
    right: -6px;
    bottom: -2px;
    width: 54px;
    height: 58px;
    pointer-events: none;
    filter: drop-shadow(0 4px 8px rgba(11, 34, 64, 0.28));
}

.vj-fab__wave-arm {
    transform-origin: 53px 44px;
    animation: vj-mascot-wave 2.2s ease-in-out infinite;
}

@keyframes vj-fab-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes vj-mascot-wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(14deg); }
    50% { transform: rotate(-6deg); }
    75% { transform: rotate(12deg); }
}

@keyframes vj-pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.75; }
}

@media (prefers-reduced-motion: reduce) {
    .vj-fab,
    .vj-fab__wave-arm,
    .vj-fab__dot {
        animation: none !important;
    }
}

/* ==========================================================================
   CHATBOT PANEL (ROUNDED & BLUE THEME)
   ========================================================================== */
#vj-chat-panel {
    position: absolute;
    bottom: 78px;
    right: 0;
    width: 375px;
    max-width: calc(100vw - 24px);
    background: #FFFFFF;
    box-shadow: 0 16px 44px rgba(15, 29, 51, 0.22);
    border: 1px solid #DCE4EF;
    border-radius: 20px;
    overflow: hidden;
}

#vj-chat-panel[hidden] {
    display: none;
}

#vj-chat-panel header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #145CB5;
    color: #FFFFFF;
    padding: 14px 18px;
}

.vj-chat-header__brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vj-chat-header__brand img {
    background: #FFFFFF;
    border-radius: 50%;
    padding: 2px;
}

#vj-chat-close {
    border: 0;
    background: transparent;
    color: #FFFFFF;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

#vj-chat-reset {
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: transparent;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 11px;
    margin-left: auto;
    margin-right: 10px;
    cursor: pointer;
}

#vj-chat-reset:hover {
    background: rgba(255, 255, 255, 0.15);
}

.vj-chat-note {
    padding: 10px 16px;
    margin: 0;
    font-size: 12px;
    background: #F4F7FB;
    color: #526277;
}

#vj-chat-messages {
    height: 340px;
    max-height: 46vh;
    overflow-y: auto;
    padding: 14px;
}

.vj-chat-message {
    padding: 11px 14px;
    margin: 0 0 10px;
    background: #EEF4FA;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.6;
    color: #19324D;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.vj-chat-user {
    background: #145CB5;
    color: #FFFFFF;
    margin-left: 28px;
    border-bottom-right-radius: 4px;
}

.vj-chat-result {
    border-left: 3px solid #145CB5;
    background: #F8FAFC;
}

.vj-chat-result a {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.45;
    color: #145CB5;
    display: block;
}

.vj-chat-result img {
    width: 100%;
    height: 105px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 8px;
}

.vj-chat-result p {
    font-size: 13px;
    margin: 8px 0;
}

.vj-chat-result small {
    display: block;
    margin-top: 5px;
    color: #526277;
}

#vj-chat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
}

.vj-chat-chip {
    border: 1px solid #C5D7EE;
    background: #FFFFFF;
    color: #145CB5;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.vj-chat-chip:hover {
    background: #145CB5;
    color: #FFFFFF;
}

.vj-chat-chip:disabled,
#vj-chat-reset:disabled {
    opacity: 0.5;
    cursor: wait;
}

#vj-chat-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #E4ECF5;
    background: #FFFFFF;
}

#vj-chat-question {
    width: 100%;
    min-width: 0;
    margin: 0;
    border: 1px solid #C5D7EE;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
}

#vj-chat-form button:disabled {
    opacity: 0.5;
}

.vj-chat-choices {
    margin: 12px 0;
    white-space: normal;
    color: #19334D;
}

.vj-chat-choices fieldset {
    min-width: 0;
    margin: 0;
    padding: 14px;
    border: 1px solid #C5D7EE;
    border-radius: 14px;
    background: #F8FBFF;
}

.vj-chat-choices legend {
    float: none;
    width: auto;
    max-width: 100%;
    padding: 0 4px;
    font-size: 14px;
    line-height: 1.5;
}

.vj-choice-heading {
    font-weight: 700;
    font-size: 14px;
    margin: 0 0 8px;
}

.vj-choice-hint {
    font-size: 12px;
    line-height: 1.5;
    margin: 0 0 12px;
    color: #526277;
}

.vj-choice-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    margin: 6px 0;
    border: 1px solid #CBD9E8;
    border-radius: 12px;
    background: #FFFFFF;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.vj-choice-option:has(input:checked) {
    background: #E8F2FF;
    border-color: #145CB5;
}

.vj-choice-option input[type=radio], .vj-choice-option input[type=checkbox] {
    appearance: auto;
    position: static;
    opacity: 1;
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 18px;
    accent-color: #145CB5;
}

.vj-choice-submit {
    width: 100%;
    min-height: 42px;
    background: #145CB5;
    color: #FFFFFF;
    border: 0;
    border-radius: 999px;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.vj-choice-submit:disabled {
    background: #E1E8EF;
    color: #637386;
    cursor: not-allowed;
}

.vj-chat-choices .vj-chat-chip {
    margin: 4px;
    min-height: 38px;
}

.vj-choices-complete {
    opacity: 0.65;
}

.vj-choices-complete input,
.vj-choices-complete label {
    cursor: default;
}

#vj-chat-chips.vj-chat-choices {
    display: block;
    padding: 0;
}

#vj-chat-chips[hidden] {
    display: none;
}

#vj-chat button:focus-visible,
#vj-chat input:focus-visible {
    outline: 3px solid #F59E0B;
    outline-offset: 2px;
}

@media (max-width: 575px) {
    #vj-chat {
        right: 12px;
        bottom: 14px;
    }
    .vj-fab {
        padding: 7px 44px 7px 12px;
    }
    .vj-fab__title {
        font-size: 12px;
    }
    .vj-fab__mascot {
        width: 48px;
        height: 52px;
    }
}

/* Compact travel assistant: one scroll area, clear welcome and quiet controls. */
#vj-chat{font-family:Arial,'Helvetica Neue',sans-serif;bottom:calc(20px + var(--vj-keyboard-offset,0px))}
#vj-chat [hidden]{display:none!important}
#vj-chat-panel{bottom:0;width:420px;max-width:calc(100vw - 32px);height:min(900px, calc(var(--vj-viewport-height,100dvh) - 36px));max-height:calc(var(--vj-viewport-height,100dvh) - 36px);display:flex;flex-direction:column;border-radius:22px;border-color:#dce3ed;box-shadow:0 22px 64px rgba(16, 46, 86, 0.28), 0 4px 14px rgba(16, 46, 86, 0.08);animation:vj-panel-enter 200ms cubic-bezier(.2,.8,.2,1)}
#vj-chat-panel header{flex:none;background:#102e56;padding:16px;gap:6px;border-bottom:3px solid #f5c842}
.vj-chat-header__brand{flex:1;min-width:0;gap:10px}.vj-chat-header__brand img{width:36px;height:36px;border-radius:9px;padding:4px}.vj-chat-header__brand strong{font-size:15px;display:block;line-height:1.4}.vj-chat-header__brand small{display:block;font-size:11px;color:#d0ddef;margin-top:2px}
#vj-chat-reset,#vj-chat-close{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;padding:0;margin:0;border:1px solid #ffffff30;border-radius:8px;background:transparent;font-size:23px;font-weight:400;color:white}
#vj-chat-reset:hover,#vj-chat-close:hover{background:#ffffff14}
#vj-chat-messages{flex:1;min-height:0;height:auto;max-height:none;overflow-y:auto;overscroll-behavior:contain;padding:22px 18px;scrollbar-width:thin;scrollbar-color:#c5d3e5 transparent}
#vj-chat-welcome{padding:10px 2px}#vj-chat-welcome .vj-chat-eyebrow{font-size:10px;letter-spacing:.13em;font-weight:700;color:#155cb4;margin:0 0 14px}
#vj-chat-welcome h2{font-size:27px;line-height:1.18;letter-spacing:-.035em;color:#172b49;margin:0 0 14px;font-weight:700;max-width:15ch}
#vj-chat-welcome>p{font-size:14px;line-height:1.65;color:#52627a;margin:0 0 22px}
#vj-chat-chips.vj-chat-shortcuts{display:grid;grid-template-columns:repeat(2, 1fr);gap:8px;padding:0;margin:0 0 16px 0}
.vj-chat-shortcuts .vj-chat-chip{display:flex;align-items:center;gap:8px;height:50px;min-height:50px;padding:8px 10px;border:1px solid #dce3ed;border-radius:10px;background:#fff;color:#172b49;text-align:left;font-size:12px;font-weight:600;line-height:1.3;white-space:nowrap;box-shadow:0 1px 3px rgba(16,46,86,0.04);transition:all .15s ease;cursor:pointer;overflow:hidden}
.vj-chat-shortcuts .vj-chat-chip>span:first-child{font-size:18px;color:#155cb4;flex:none}
.vj-chat-shortcuts .vj-shortcut-arrow{margin-left:auto;font-size:13px;color:#8a9cb0;flex:none}
.vj-chat-shortcuts .vj-chat-chip:hover{background:#eef4fc;border-color:#8aaddb;color:#155cb4}
#vj-chat-welcome .vj-chat-example{font-size:12px;color:#52627a;border-top:1px solid #e5ebf3;padding-top:16px;margin-bottom:0}
.vj-chat-message{font-size:14px;background:#f0f5fb;color:#172b49;border-radius:12px 12px 12px 3px;margin-bottom:14px;padding:12px 14px}
.vj-chat-user{margin-left:42px;background:#155cb4;color:white;border-radius:12px 12px 3px 12px}
.vj-chat-result{background:#fff;border:1px solid #dce3ed;border-radius:10px}.vj-chat-result a{color:#155cb4}.vj-chat-result small{font-size:11px;color:#52627a}
.vj-chat-choices fieldset{border-radius:10px;background:#f8faff;padding:12px}.vj-choice-option{border-radius:7px}.vj-choice-submit{border-radius:7px}.vj-chat-choices .vj-chat-chip{border-radius:7px;min-height:40px}
#vj-chat-form{flex:none;margin:0 14px;padding:10px 0 0;gap:8px;border:0;border-top:1px solid #e5ebf3;align-items:center}
#vj-chat-question{height:46px;border:1px solid #bacbe0;border-radius:9px;background:#fff;padding:11px 12px;color:#172b49;font-size:14px;box-shadow:none}
#vj-chat-form .vj-button{display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0;background:#155cb4;color:#fff;border-radius:9px;box-shadow:none;transform:none;font-size:24px;line-height:1;border:0}
#vj-chat-form .vj-button:hover{background:#102e56;transform:none}.vj-chat-footnote{flex:none;margin:0;padding:10px 16px 12px;text-align:center;font-size:10px;line-height:1.4;color:#52627a}
#vj-chat button:focus-visible,#vj-chat input:focus-visible{outline:2px solid #155cb4;outline-offset:2px}#vj-chat header button:focus-visible{outline-color:#f5c842}
.vj-fab{background:#155cb4;box-shadow:0 6px 20px #102e5626}.vj-fab__wave-arm{animation:none}
#vj-chat-panel{height:min(900px, calc(var(--vj-viewport-height,100dvh) - 36px))}
#vj-chat .vj-choice-option input{display:block!important}
@keyframes vj-panel-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:575px){#vj-chat{right:10px;bottom:calc(10px + var(--vj-keyboard-offset,0px))}#vj-chat-panel{width:calc(100vw - 20px);max-width:none;height:calc(var(--vj-viewport-height,100dvh) - 20px);max-height:calc(var(--vj-viewport-height,100dvh) - 20px);border-radius:14px}#vj-chat-question{font-size:16px}#vj-chat-panel header{padding:12px}.vj-chat-footnote{padding-bottom:max(12px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){#vj-chat-panel{animation:none}#vj-chat *,#vj-chat *::before{transition:none!important;animation:none!important}}

/* Data Completeness Request Button (Using Font Awesome Icons) */
.vj-request-box {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed #dce3ed;
}
.vj-request-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 11.5px;
    font-weight: 600;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.vj-request-btn:hover {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}
.vj-request-btn--success {
    color: #065f46;
    background: #ecfdf5;
    border-color: #a7f3d0;
    cursor: default;
}

/* Winding Snake Roadmap (Curvy Roadmap Timeline) */
.vj-snake-roadmap {
    position: relative;
    margin: 12px 0 6px 0;
    padding: 10px 4px 6px 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px dashed #dce3ed;
}

.vj-snake-header {
    font-size: 11.5px;
    font-weight: 700;
    color: #102e56;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vj-snake-roadmap::before {
    content: '';
    position: absolute;
    top: 36px;
    bottom: 18px;
    left: 17px;
    width: 3px;
    background: repeating-linear-gradient(to bottom, #f59e0b 0, #f59e0b 6px, transparent 6px, transparent 10px);
    border-radius: 999px;
    z-index: 0;
}

.vj-snake-node {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    z-index: 1;
}

.vj-snake-pin {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f59e0b;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(16, 46, 86, 0.2);
    display: grid;
    place-items: center;
    color: #102e56;
    font-weight: 800;
    font-size: 11px;
    line-height: 1;
}

.vj-snake-node:nth-child(even) .vj-snake-pin {
    background: #102e56;
    color: #f59e0b;
}

.vj-snake-content {
    flex: 1;
    min-width: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 7px 10px;
}

.vj-snake-node:nth-child(even) .vj-snake-content {
    background: #fffbeb;
    border-color: #fef08a;
}

.vj-snake-content strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #102e56;
    line-height: 1.3;
}

.vj-snake-content p {
    font-size: 11px;
    color: #64748b;
    margin: 3px 0 0 0 !important;
    line-height: 1.35;
}
