/* Journey to Homeownership Chat - v1.5 */
#jch-bubble-btn {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    background: linear-gradient(135deg, #1a5276, #2e86c1) !important;
    border-radius: 50px !important;
    padding: 12px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 20px rgba(26,82,118,0.5) !important;
    z-index: 999999 !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    font-family: Arial, sans-serif !important;
    text-decoration: none !important;
}
#jch-bubble-btn:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 24px rgba(26,82,118,0.7) !important;
}
#jch-bubble-icon {
    font-size: 22px !important;
    line-height: 1 !important;
    display: inline-block !important;
}
#jch-bubble-label {
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    white-space: nowrap !important;
    display: inline-block !important;
    font-family: Arial, sans-serif !important;
}

#jch-chat-box {
    position: fixed !important;
    bottom: 90px !important;
    right: 24px !important;
    width: 370px !important;
    max-height: 540px !important;
    background: #fff !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18) !important;
    display: none !important;
    flex-direction: column !important;
    z-index: 999998 !important;
    overflow: hidden !important;
    font-family: Arial, sans-serif !important;
}
#jch-chat-box.open {
    display: flex !important;
}

#jch-chat-header {
    background: linear-gradient(135deg, #1a5276, #2e86c1) !important;
    color: #fff !important;
    padding: 14px 16px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}
.jch-header-left {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
.jch-header-icon {
    font-size: 24px !important;
    line-height: 1 !important;
}
.jch-header-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #fff !important;
    display: block !important;
}
#jch-header-sub {
    font-size: 11px !important;
    font-weight: normal !important;
    opacity: 0.85 !important;
    margin-top: 2px !important;
    color: #fff !important;
    display: block !important;
}
#jch-close-btn {
    background: rgba(255,255,255,0.2) !important;
    border: none !important;
    color: #fff !important;
    font-size: 16px !important;
    cursor: pointer !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
}
#jch-close-btn:hover {
    background: rgba(255,255,255,0.35) !important;
}

#jch-messages {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    background: #f0f4f8 !important;
    margin: 0 !important;
}

.jch-msg {
    max-width: 82% !important;
    padding: 10px 14px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    word-wrap: break-word !important;
    list-style: none !important;
}
.jch-msg.bot {
    background: #1a5276 !important;
    color: #fff !important;
    align-self: flex-start !important;
    border-bottom-left-radius: 4px !important;
}
.jch-msg.user {
    background: #fff !important;
    color: #222 !important;
    align-self: flex-end !important;
    border-bottom-right-radius: 4px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
}

.jch-typing {
    background: #1a5276 !important;
    color: rgba(255,255,255,0.85) !important;
    padding: 10px 14px !important;
    border-radius: 14px !important;
    border-bottom-left-radius: 4px !important;
    align-self: flex-start !important;
    font-size: 13px !important;
    font-style: italic !important;
}

#jch-input-area {
    display: flex !important;
    padding: 10px !important;
    border-top: 1px solid #e0e6ed !important;
    background: #fff !important;
    gap: 8px !important;
    align-items: center !important;
    margin: 0 !important;
}
#jch-user-input {
    flex: 1 !important;
    padding: 10px 14px !important;
    border: 1.5px solid #ccd6e0 !important;
    border-radius: 22px !important;
    font-size: 14px !important;
    outline: none !important;
    font-family: Arial, sans-serif !important;
    color: #222 !important;
    background: #fff !important;
}
#jch-user-input:focus {
    border-color: #1a5276 !important;
}
#jch-send-btn {
    background: linear-gradient(135deg, #1a5276, #2e86c1) !important;
    color: #fff !important;
    border: none !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}
#jch-send-btn:hover {
    transform: scale(1.08) !important;
}

@media (max-width: 480px) {
    #jch-chat-box { width: calc(100vw - 32px) !important; right: 16px !important; }
    #jch-bubble-btn { right: 16px !important; bottom: 16px !important; }
}
