/* ==========================================================================
   JH Web Solutions - Professional AI Chatbot Styles
   Modern, Floating, Glassmorphism, Fully Responsive
   ========================================================================== */

:root {
  --jh-navy-dark: #042449;
  --jh-navy-mid: #0b366a;
  --jh-blue-primary: #0066cc;
  --jh-blue-gradient: linear-gradient(135deg, #042449 0%, #035eb7 100%);
  --jh-bubble-user: linear-gradient(135deg, #0066cc 0%, #035eb7 100%);
  --jh-bubble-ai: #f4f6fa;
  --jh-border-color: #e5e9f2;
  --jh-text-main: #1e293b;
  --jh-text-muted: #64748b;
  --jh-success: #10b981;
  --jh-danger: #ef4444;
  --jh-shadow-window: 0 16px 40px -6px rgba(4, 36, 73, 0.22), 0 0 1px rgba(0,0,0,0.1);
  --jh-shadow-btn: 0 8px 24px rgba(0, 102, 204, 0.38);
}

/* Base resets for widget scope */
#jh-chatbot-widget,
#jh-chatbot-widget * {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Floating Launcher Button */
.jh-chat-launcher {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--jh-blue-gradient);
  box-shadow: var(--jh-shadow-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999999;
  border: none;
  outline: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.jh-chat-launcher:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(0, 102, 204, 0.5);
}

.jh-chat-launcher:active {
  transform: scale(0.95);
}

.jh-chat-launcher svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
  transition: all 0.3s ease;
}

.jh-chat-launcher .jh-icon-close {
  display: none;
}

.jh-chat-launcher.is-active .jh-icon-open {
  display: none;
}

.jh-chat-launcher.is-active .jh-icon-close {
  display: block;
}

/* Pulse animation ring around launcher */
.jh-launcher-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #0066cc;
  opacity: 0.8;
  animation: jh-pulse-ring 2.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
  pointer-events: none;
}

@keyframes jh-pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

/* Floating Tooltip / Badge */
.jh-launcher-tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  color: var(--jh-navy-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #eef2f6;
}

.jh-chat-launcher.is-active .jh-launcher-tooltip,
.jh-chat-launcher:hover .jh-launcher-tooltip {
  opacity: 0;
  transform: translateY(-50%) translateX(10px);
}

/* Chat Main Window */
.jh-chat-window {
  position: fixed;
  bottom: 96px;
  right: 25px;
  width: 390px;
  max-width: calc(100vw - 32px);
  height: 590px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: var(--jh-shadow-window);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 999998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px) scale(0.94);
  transform-origin: bottom right;
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.28s ease;
  border: 1px solid rgba(4, 36, 73, 0.08);
}

.jh-chat-window.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Window Header */
.jh-chat-header {
  background: var(--jh-blue-gradient);
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(4, 36, 73, 0.12);
  position: relative;
  z-index: 10;
}

.jh-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.jh-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.jh-avatar-wrap svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

.jh-online-badge {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 11px;
  height: 11px;
  background-color: var(--jh-success);
  border-radius: 50%;
  border: 2px solid #ffffff;
}

.jh-header-text h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.jh-header-text span {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
}

.jh-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.jh-action-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
}

.jh-action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.jh-action-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ==========================================================================
   SCREEN 1: LEAD CAPTURE ONBOARDING
   ========================================================================== */
.jh-screen-onboarding {
  flex: 1;
  padding: 24px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
}

.jh-welcome-card {
  text-align: center;
  margin-bottom: 20px;
}

.jh-welcome-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  background: #e9f2ff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jh-welcome-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--jh-blue-primary);
}

.jh-welcome-card h4 {
  margin: 0 0 6px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--jh-navy-dark);
}

.jh-welcome-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--jh-text-muted);
  line-height: 1.45;
}

.jh-form-group {
  margin-bottom: 16px;
  text-align: left;
}

.jh-form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--jh-text-main);
  margin-bottom: 6px;
}

.jh-form-label .jh-req {
  color: var(--jh-danger);
  margin-left: 2px;
}

.jh-form-label .jh-optional {
  font-weight: 400;
  color: var(--jh-text-muted);
  font-size: 11px;
  margin-left: 4px;
}

.jh-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.jh-input {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  font-size: 14px;
  border: 1.5px solid var(--jh-border-color);
  border-radius: 10px;
  color: var(--jh-text-main);
  background-color: #fbfcfe;
  transition: all 0.2s ease;
  outline: none;
}

.jh-input:focus {
  border-color: var(--jh-blue-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.jh-input.is-invalid {
  border-color: var(--jh-danger) !important;
  background-color: #fff9f9;
}

/* Phone input container with country code */
.jh-phone-wrap {
  display: flex;
  gap: 8px;
  width: 100%;
}

.jh-country-select {
  height: 44px;
  min-width: 100px;
  padding: 0 8px 0 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--jh-navy-dark);
  background: #f8fafc;
  border: 1.5px solid var(--jh-border-color);
  border-radius: 10px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
  appearance: auto;
}

.jh-country-select:focus {
  border-color: var(--jh-blue-primary);
}

.jh-phone-input {
  flex: 1;
}

/* Form validation message */
.jh-field-error {
  font-size: 11.5px;
  color: var(--jh-danger);
  margin-top: 4px;
  display: none;
  font-weight: 500;
}

.jh-field-error.is-visible {
  display: block;
}

.jh-form-alert {
  padding: 10px 12px;
  border-radius: 8px;
  background-color: #fef2f2;
  border: 1px solid #fee2e2;
  color: #b91c1c;
  font-size: 12.5px;
  margin-bottom: 14px;
  display: none;
  line-height: 1.4;
}

.jh-form-alert.is-visible {
  display: block;
}

/* Start Chat Button */
.jh-btn-start {
  width: 100%;
  height: 46px;
  background: var(--jh-blue-gradient);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  margin-top: 10px;
}

.jh-btn-start:hover {
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.45);
  transform: translateY(-1px);
}

.jh-btn-start:active {
  transform: translateY(0);
}

.jh-btn-start:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   SCREEN 2: INTERACTIVE CHAT SCREEN
   ========================================================================== */
.jh-screen-chat {
  flex: 1;
  display: none;
  flex-direction: column;
  height: calc(100% - 76px);
  background: #ffffff;
}

.jh-chat-messages {
  flex: 1;
  padding: 18px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fbfcfe;
}

/* Custom modern scrollbar */
.jh-chat-messages::-webkit-scrollbar,
.jh-screen-onboarding::-webkit-scrollbar {
  width: 5px;
}
.jh-chat-messages::-webkit-scrollbar-thumb,
.jh-screen-onboarding::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* Date Divider */
.jh-date-divider {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  margin: 6px 0;
  position: relative;
}

/* Message Rows */
.jh-msg-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 88%;
  animation: jh-msg-pop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes jh-msg-pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.jh-msg-row.jh-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.jh-msg-row.jh-msg-ai {
  align-self: flex-start;
}

/* Small Bot Avatar in message stream */
.jh-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--jh-blue-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 16px;
}

.jh-msg-avatar svg {
  width: 15px;
  height: 15px;
  fill: #ffffff;
}

/* Message Bubble Content */
.jh-msg-bubble-wrap {
  display: flex;
  flex-direction: column;
}

.jh-msg-bubble {
  padding: 12px 16px;
  font-size: 13.8px;
  line-height: 1.5;
  border-radius: 16px;
  word-break: break-word;
}

.jh-msg-user .jh-msg-bubble {
  background: var(--jh-bubble-user);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.22);
}

.jh-msg-ai .jh-msg-bubble {
  background: var(--jh-bubble-ai);
  color: var(--jh-text-main);
  border-bottom-left-radius: 4px;
  border: 1px solid #eef2f6;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

/* Markdown formatting inside AI bubbles */
.jh-msg-ai .jh-msg-bubble p {
  margin: 0 0 8px 0;
}
.jh-msg-ai .jh-msg-bubble p:last-child {
  margin-bottom: 0;
}
.jh-msg-ai .jh-msg-bubble ul {
  margin: 6px 0 8px 18px;
  padding: 0;
}
.jh-msg-ai .jh-msg-bubble li {
  margin-bottom: 4px;
}
.jh-msg-ai .jh-msg-bubble strong {
  color: var(--jh-navy-dark);
}
.jh-msg-ai .jh-msg-bubble a {
  color: var(--jh-blue-primary);
  text-decoration: underline;
  font-weight: 500;
}

/* Message Timestamp */
.jh-msg-time {
  font-size: 10.5px;
  color: #94a3b8;
  margin-top: 4px;
  padding: 0 4px;
}

.jh-msg-user .jh-msg-time {
  text-align: right;
}

/* Typing Indicator Animation */
.jh-typing-indicator {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  background: var(--jh-bubble-ai);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  width: fit-content;
  border: 1px solid #eef2f6;
  margin-bottom: 4px;
}

.jh-typing-indicator.is-visible {
  display: flex;
}

.jh-typing-dot {
  width: 7px;
  height: 7px;
  background: #94a3b8;
  border-radius: 50%;
  animation: jh-bounce 1.3s infinite ease-in-out;
}

.jh-typing-dot:nth-child(1) { animation-delay: 0s; }
.jh-typing-dot:nth-child(2) { animation-delay: 0.18s; }
.jh-typing-dot:nth-child(3) { animation-delay: 0.36s; }

@keyframes jh-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); background: var(--jh-blue-primary); }
}

/* Chat Footer & Input Area */
.jh-chat-footer {
  padding: 12px 16px 14px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.jh-input-row {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid var(--jh-border-color);
  border-radius: 24px;
  padding: 4px 6px 4px 16px;
  transition: all 0.2s;
}

.jh-input-row:focus-within {
  border-color: var(--jh-blue-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.jh-chat-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 4px;
  font-size: 13.8px;
  color: var(--jh-text-main);
  outline: none;
  resize: none;
  max-height: 100px;
  line-height: 1.4;
}

.jh-chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--jh-blue-gradient);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.jh-chat-send-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 3px 10px rgba(0, 102, 204, 0.4);
}

.jh-chat-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.jh-chat-send-btn svg {
  width: 17px;
  height: 17px;
  fill: #ffffff;
}

.jh-footer-watermark {
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 6px;
}

.jh-footer-watermark a {
  color: var(--jh-blue-primary);
  text-decoration: none;
  font-weight: 500;
}

/* Spinner */
.jh-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: jh-spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes jh-spin {
  to { transform: rotate(360deg); }
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .jh-chat-launcher {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }
  .jh-launcher-tooltip {
    display: none;
  }
  .jh-chat-window {
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    bottom: 84px;
    height: calc(100vh - 100px);
    max-height: none;
    border-radius: 16px;
  }
}

/* ==========================================================================
   SERVICE DROPDOWN & QUICK SERVICES MENU STYLES
   ========================================================================== */

/* Service Select Dropdown in Screen 1 */
.jh-service-select {
  cursor: pointer;
  background-color: #ffffff;
  color: #1e293b;
  font-weight: 500;
}

.jh-service-select optgroup {
  font-weight: 700;
  color: #0f2b48;
  background: #f1f5f9;
  padding: 4px 0;
}

.jh-service-select option {
  font-weight: 400;
  color: #334155;
  background: #ffffff;
  padding: 6px 10px;
}

/* ==========================================================================
   VERTICAL TYPE DESIGN: SERVICE DROPDOWN, BAR & VERTICAL ACCORDION MENU
   ========================================================================== */

/* Service Select Dropdown in Screen 1 */
.jh-service-select {
  cursor: pointer;
  background-color: #ffffff;
  color: #1e293b;
  font-weight: 500;
}

.jh-service-select optgroup {
  font-weight: 700;
  color: #0f2b48;
  background: #f1f5f9;
  padding: 4px 0;
}

.jh-service-select option {
  font-weight: 400;
  color: #334155;
  background: #ffffff;
  padding: 6px 10px;
}

/* 1. Vertical Services Navigation Bar at top of Screen 2 */
.jh-service-vertical-bar {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 12px;
  flex-shrink: 0;
  z-index: 5;
}

.jh-vert-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(2, 102, 200, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.jh-vert-toggle-btn:hover {
  background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
  border-color: #60a5fa;
  box-shadow: 0 3px 10px rgba(2, 102, 200, 0.16);
  transform: translateY(-1px);
}

.jh-vert-toggle-left {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  flex-wrap: wrap;
}

.jh-vert-pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: jh-pulse-green 2s infinite;
  flex-shrink: 0;
}

@keyframes jh-pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.jh-vert-toggle-text {
  font-size: 12.5px;
  color: #0f2b48;
}

.jh-vert-pill-badge {
  font-size: 10.5px;
  font-weight: 600;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 2px 8px;
  border-radius: 12px;
  letter-spacing: 0.2px;
}

.jh-vert-toggle-right {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #0266c8;
  font-size: 11.5px;
  font-weight: 600;
  flex-shrink: 0;
}

.jh-vert-chevron {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

/* 2. Slide-Up Vertical Services Directory Drawer */
.jh-services-drawer {
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  z-index: 25;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 30px rgba(4, 36, 73, 0.18);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.jh-services-drawer.is-open {
  transform: translateY(0);
}

.jh-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(135deg, #042449 0%, #035eb7 100%);
  color: #ffffff;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.jh-drawer-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.jh-drawer-title {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  color: #ffffff;
}

.jh-drawer-subtitle {
  font-size: 11px;
  color: #bfdbfe;
  font-weight: 400;
}

.jh-drawer-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  font-size: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.jh-drawer-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* Realtime Search Input inside Vertical Drawer */
.jh-drawer-search-wrap {
  padding: 10px 16px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.jh-drawer-search-input {
  width: 100%;
  padding: 8px 12px;
  font-size: 12.5px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: all 0.2s;
}

.jh-drawer-search-input:focus {
  border-color: #0266c8;
  box-shadow: 0 0 0 3px rgba(2, 102, 200, 0.15);
}

/* Drawer Body (Vertical Stack) */
.jh-vert-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
}

/* Vertical Category Card */
.jh-vert-cat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.jh-vert-cat-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 2px 8px rgba(2, 102, 200, 0.08);
}

.jh-vert-cat-card.is-highlighted {
  border-color: #0266c8;
  box-shadow: 0 0 0 2px rgba(2, 102, 200, 0.2);
}

.jh-vert-cat-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #ffffff;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.jh-vert-cat-header:hover {
  background: #f8fafc;
}

.jh-vert-cat-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jh-vert-cat-icon {
  font-size: 18px;
  line-height: 1;
}

.jh-vert-cat-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #092648;
}

.jh-vert-cat-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jh-vert-badge-count {
  font-size: 11px;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 7px;
  border-radius: 10px;
}

.jh-vert-cat-arrow {
  font-size: 14px;
  color: #64748b;
  transition: transform 0.25s ease;
}

.jh-vert-cat-card.is-collapsed .jh-vert-cat-arrow {
  transform: rotate(-90deg);
}

/* Vertical Submenu Items List */
.jh-vert-sub-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 12px 12px 12px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  transition: all 0.25s ease;
}

.jh-vert-cat-card.is-collapsed .jh-vert-sub-items {
  display: none;
}

/* Full-Width Vertical Submenu Button */
.jh-vert-sub-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.jh-vert-sub-btn:hover {
  background: #0266c8;
  color: #ffffff;
  border-color: #0266c8;
  box-shadow: 0 2px 8px rgba(2, 102, 200, 0.25);
  transform: translateX(3px);
}

.jh-sub-label {
  font-size: 12.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.jh-sub-bullet {
  color: #0266c8;
  font-weight: 700;
  transition: color 0.2s;
}

.jh-vert-sub-btn:hover .jh-sub-bullet {
  color: #ffffff;
}

.jh-sub-action {
  font-size: 11px;
  font-weight: 600;
  color: #0266c8;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  transition: all 0.2s;
}

.jh-vert-sub-btn:hover .jh-sub-action {
  color: #ffffff;
  opacity: 1;
}

.jh-arrow {
  transition: transform 0.2s ease;
}

.jh-vert-sub-btn:hover .jh-arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   3. IN-CHAT VERTICAL SERVICES CARD (INJECTED IN MESSAGE FLOW)
   ========================================================================== */

.jh-inchat-services-container {
  width: 100%;
  margin: 10px 0 16px 0;
  animation: jh-fade-in 0.35s ease;
}

.jh-inchat-services-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(4, 36, 73, 0.08);
  overflow: hidden;
}

.jh-inchat-header {
  padding: 12px 14px;
  background: linear-gradient(135deg, #042449 0%, #035eb7 100%);
  color: #ffffff;
}

.jh-inchat-title {
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.jh-inchat-subtitle {
  font-size: 11.5px;
  color: #dbeafe;
  margin-top: 3px;
}

.jh-inchat-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #f8fafc;
}

.jh-inchat-cat-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  transition: all 0.2s;
}

.jh-inchat-cat-item:hover {
  border-color: #cbd5e1;
}

.jh-inchat-cat-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #ffffff;
  border: none;
  cursor: pointer;
  text-align: left;
}

.jh-inchat-cat-toggle:hover {
  background: #f8fafc;
}

.jh-inchat-cat-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
}

.jh-inchat-cat-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.jh-inchat-badge {
  font-size: 10.5px;
  font-weight: 600;
  background: #f1f5f9;
  color: #64748b;
  padding: 1px 6px;
  border-radius: 8px;
}

.jh-inchat-arrow {
  font-size: 12px;
  color: #64748b;
  transition: transform 0.2s ease;
}

.jh-inchat-cat-item.is-open .jh-inchat-arrow {
  transform: rotate(180deg);
}

.jh-inchat-sub-list {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px 8px 10px 8px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
}

.jh-inchat-cat-item.is-open .jh-inchat-sub-list {
  display: flex;
}

.jh-inchat-sub-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #ffffff;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.jh-inchat-sub-btn:hover {
  background: #0266c8;
  color: #ffffff;
  border-color: #0266c8;
  transform: translateX(2px);
}

.jh-inchat-sub-btn:hover .jh-sub-action {
  color: #ffffff;
}

.jh-inchat-footer-action {
  padding: 8px 12px;
  text-align: center;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.jh-inchat-viewall-btn {
  background: #eff6ff;
  color: #0266c8;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.jh-inchat-viewall-btn:hover {
  background: #0266c8;
  color: #ffffff;
  border-color: #0266c8;
}

