    /* =====================Chatbot Widget===================== */

    /* Core Wrapper */
    .chatbot-wrapper {
      position: fixed;
      bottom: 20px;
      right: 25px;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 12px;
      z-index: 1100;
      max-width: 100vw;
      overflow-x: hidden;
      padding: 10px;
    }

    /* Toggle Button */
    .chatbot-toggle {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      border: none;
      color: #ffffff;
      padding: 12px 20px;
      border-radius: 50px;
      font-weight: 600;
      font-size: 0.95rem;
      background: linear-gradient(135deg, #ff7b00, #ff9500);
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    }

    .chatbot-wrapper.chatbot-panel-open .chatbot-toggle {
      display: none;
    }

    .chatbot-toggle:hover {
      transform: translateY(-3px) scale(1.05);
      background: linear-gradient(135deg, #e96a00, #ff7b00);
    }

    .chatbot-toggle__icon {
      display: flex;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: rgba(0, 0, 0, 0.12);
      align-items: center;
      justify-content: center;
      font-size: 1rem;
    }

    /* Panel */
    .chatbot-panel {
      width: min(420px, calc(100vw - 32px));
      height: min(750px, calc(100vh - 50px));
      max-height: 90vh;
      background: #ffffff;
      border-radius: 22px;
      box-shadow: 0 6px 12px rgba(15, 28, 45, 0.074);
      border: 1px solid rgba(15, 28, 45, 0.1);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      backdrop-filter: blur(8px);
      transition: width 0.3s ease, height 0.3s ease;
      max-width: 100vw;
      overflow-x: hidden;
    }

    .chatbot-panel[hidden] {
      display: none;
    }

    .chatbot-panel.fullscreen {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      width: 100vw;
      height: 100vh;
      max-height: 100vh;
      border-radius: 0;
      z-index: 1200;
    }

    /* Header */
    .chatbot-header {
      background: linear-gradient(135deg, #041a3c, #0a2a60);
      color: #ffffff;
      padding: 18px;
    }

    .chatbot-header-content {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
    }

    .chatbot-panel.fullscreen .chatbot-header-content {
      max-width: 1200px;
      margin: 0 auto;
      width: 100%;
      padding: 0 20px;
    }

    .chatbot-header-actions {
      display: flex;
      gap: 8px;
      align-items: center;
      flex-shrink: 0;
    }

    .chatbot-title {
      font-size: 1rem;
      font-weight: 600;
      margin: 0;
    }

    .chatbot-status {
      display: flex;
      align-items: center;
      font-size: 0.82rem;
      color: rgba(255, 255, 255, 0.85);
      margin: 4px 0 0 0;
      gap: 6px;
    }

    .chatbot-status-indicator {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #38c172;
      box-shadow: 0 0 0 6px rgba(56, 193, 114, 0.25);
      animation: pulseOnline 2.4s ease infinite;
    }

    @keyframes pulseOnline {
      0% {
        transform: scale(1);
        opacity: 0.8;
      }

      100% {
        transform: scale(2.6);
        opacity: 0;
      }
    }

    .chatbot-fullscreen,
    .chatbot-close {
      background: transparent;
      border: none;
      color: rgba(255, 255, 255, 0.8);
      cursor: pointer;
      font-size: 1rem;
      padding: 4px;
      transition: color 0.2s ease;
    }

    .chatbot-fullscreen:hover,
    .chatbot-close:hover {
      color: #ffffff;
    }
        @media (max-width: 720px) {
        .chatbot-fullscreen{
          display: none;
        }
    }

    /* Messages Container */
    .chatbot-messages-container {
      background: #f6f7fb;
      flex: 1;
      overflow-y: auto;
      scroll-behavior: smooth;
      max-width: 100vw;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
    }

    .chatbot-messages {
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding: 22px;
      min-height: 0;
      max-width: 100vw;
      overflow-x: hidden;
    }

    .chatbot-panel.fullscreen .chatbot-messages {
      max-width: 1200px;
      margin: 0 auto;
      padding: 30px 20px;
    }

    .chatbot-messages-container::-webkit-scrollbar {
      width: 6px;
    }

    .chatbot-messages-container::-webkit-scrollbar-thumb {
      background: rgba(4, 26, 60, 0.15);
      border-radius: 50px;
    }

    .chatbot-message {
      padding: 10px 14px;
      border-radius: 14px;
      font-size: 0.92rem;
      line-height: 1.4;
      max-width: 85%;
      width: fit-content;
      box-shadow: 0 10px 18px rgba(15, 28, 45, 0.08);
      white-space: pre-wrap;
      word-wrap: break-word;
      overflow-wrap: break-word;
      word-break: break-word;
    }

    .chatbot-message--bot {
      background: #ffffff;
      color: #0f1c2d;
      border-top-left-radius: 4px;
    }

    .chatbot-message--bot strong,
    .chatbot-message--bot b {
      font-weight: 700;
      color: #041a3c;
    }

    .chatbot-message--bot ul,
    .chatbot-message--bot ol {
      margin: 8px 0;
      padding-left: 20px;
    }

    .chatbot-message--bot li {
      margin: 4px 0;
    }

    .chatbot-message--user {
      margin-left: auto;
      background: linear-gradient(135deg, #ff7b00, #ff9500);
      color: #ffffff;
      border-top-right-radius: 4px;
    }

    /* Typing Animation */
    .chatbot-typing-wrapper {
      background: #f6f7fb;
      padding: 0 22px 12px 22px;
      max-width: 100vw;
      overflow-x: hidden;
    }

    .chatbot-typing-wrapper[hidden] {
      display: none !important;
    }

    .chatbot-panel.fullscreen .chatbot-typing-wrapper {
      padding: 0;
    }

    .chatbot-panel.fullscreen .chatbot-typing-content {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px 12px 20px;
    }

    .chatbot-typing {
      display: flex;
      gap: 6px;
      padding: 12px 16px;
      border-radius: 14px;
      background: #ffffff;
      width: fit-content;
      max-width: 85%;
      box-shadow: 0 10px 18px rgba(15, 28, 45, 0.08);
    }

    .chatbot-typing span {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #041a3c;
      animation: typingDot 1.4s ease-in-out infinite;
    }

    .chatbot-typing span:nth-child(2) {
      animation-delay: 0.2s;
    }

    .chatbot-typing span:nth-child(3) {
      animation-delay: 0.4s;
    }

    @keyframes typingDot {

      0%,
      60%,
      100% {
        transform: translateY(0);
        opacity: 0.4;
      }

      30% {
        transform: translateY(-10px);
        opacity: 1;
      }
    }

    /* Suggestions */
    .chatbot-suggestions-wrapper {
      background: #f6f7fb;
      padding: 0 22px 12px 22px;
      max-width: 100vw;
      overflow-x: hidden;
    }

    .chatbot-panel.fullscreen .chatbot-suggestions-wrapper {
      padding: 0;
    }

    .chatbot-panel.fullscreen .chatbot-suggestions {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px 12px 20px;
    }

    .chatbot-suggestions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      max-width: 100%;
      overflow-x: hidden;
    }

    .chatbot-suggestion {
      padding: 10px 16px;
      background: linear-gradient(135deg, #ff7b00, #ff9500);
      border: none;
      border-radius: 20px;
      font-size: 0.85rem;
      color: #ffffff;
      cursor: pointer;
      transition: all 0.2s ease;
      box-shadow: 0 6px 12px rgba(255, 123, 0, 0.25);
      max-width: 100%;
    }

    .chatbot-suggestion:hover {
      background: linear-gradient(135deg, #e96a00, #ff7b00);
      transform: translateY(-2px);
      box-shadow: 0 10px 20px rgba(255, 123, 0, 0.35);
    }

    /* Footer */
    .chatbot-footer {
      background: #ffffff;
      border-top: 1px solid rgba(4, 26, 60, 0.08);
    }

    .chatbot-panel.fullscreen .chatbot-footer-content {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }

    .chatbot-powered {
      text-align: center;
      padding: 8px 0;
      font-size: 0.75rem;
      color: #999;
      border-bottom: 1px solid rgba(4, 26, 60, 0.05);
    }

    .chatbot-powered p {
      text-decoration: none;
      color: #999;
      padding: 10px;
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      transition: background-color 0.3s ease, box-shadow 0.3s ease;
    }

    .chatbot-powered span {
      font-weight: 600;
      color: #041a3c;
      transition: color 0.3s ease;
    }

    .chatbot-powered p:hover {
      background: #20282d;
      box-shadow: 0 0 8px rgba(159, 241, 78, 0.25);
      color: #999;
    }

    .chatbot-powered p:hover span {
      color: #9ff14e;
    }

    /* Form */
    .chatbot-form {
      display: flex;
      align-items: flex-end;
      gap: 10px;
      padding: 18px 20px 22px 20px;
    }

    .chatbot-form[hidden] {
      display: none !important;
    }

    .chatbot-form textarea {
      flex: 1;
      border: 1px solid rgba(4, 26, 60, 0.12);
      border-radius: 16px;
      padding: 14px 18px;
      font-size: 1rem;
      outline: none;
      transition: border 0.2s ease, box-shadow 0.2s ease;
      resize: none;
      min-height: 48px;
      max-height: 120px;
      font-family: inherit;
      line-height: 1.4;
      max-width: 100%;
      overflow-x: hidden;
    }

    .chatbot-form textarea:focus {
      border-color: #ff7b00;
      box-shadow: 0 0 0 3px rgba(255, 123, 0, 0.15);
    }

    .chatbot-send {
      width: 48px;
      height: 48px;
      flex-shrink: 0;
      border-radius: 50%;
      border: none;
      background: #041a3c;
      color: #ffffff;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      transition: background 0.2s ease, transform 0.2s ease;
    }

    .chatbot-send:hover {
      background: #062a60;
      transform: translateY(-1px);
    }

    .chatbot-send:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    /* Divider */
    .chatbot-divider {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 8px 0 4px 0;
      gap: 12px;
    }

    .chatbot-divider::before,
    .chatbot-divider::after {
      content: "";
      flex: 1;
      height: 1px;
      background: rgba(4, 26, 60, 0.12);
      border-radius: 2px;
    }

    .chatbot-divider span {
      font-size: 0.85rem;
      color: #666;
      font-weight: 500;
      white-space: nowrap;
    }

    .chatbot-panel.fullscreen .chatbot-divider span {
      font-size: 0.9rem;
    }

    /* Utility */
    .visually-hidden {
      position: absolute !important;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      border: 0;
    }

    /* Welcome Form - Updated with Scrolling */
    .chatbot-welcome-form {
      display: flex;
      flex-direction: column;
      padding: 20px 25px 30px 25px;
      background: #f6f7fb;
      flex: 1;
      min-height: 0;
      gap: clamp(12px, 2vh, 20px);
      align-items: center;
      overflow-y: auto;
      /* Enable vertical scrolling */
      overflow-x: hidden;
      scroll-behavior: smooth;
    }

    .chatbot-welcome-form[hidden] {
      display: none;
    }

    /* Hide messages container when welcome form is visible */
    .chatbot-welcome-form:not([hidden])~.chatbot-footer .chatbot-form,
    .chatbot-messages-container:has(~ .chatbot-welcome-form:not([hidden])) {
      display: none;
    }

    /* Custom Scrollbar for Welcome Form */
    .chatbot-welcome-form::-webkit-scrollbar {
      width: 6px;
    }

    .chatbot-welcome-form::-webkit-scrollbar-track {
      background: rgba(4, 26, 60, 0.05);
      border-radius: 50px;
    }

    .chatbot-welcome-form::-webkit-scrollbar-thumb {
      background: rgba(4, 26, 60, 0.15);
      border-radius: 50px;
    }

    .chatbot-welcome-form::-webkit-scrollbar-thumb:hover {
      background: rgba(4, 26, 60, 0.25);
    }

    .chatbot-welcome-form-wrapper {
      max-width: 500px;
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: clamp(12px, 4vh, 20px);
      overflow: visible !important;
    }

    .chatbot-panel.fullscreen .chatbot-welcome-form-wrapper {
      max-width: 600px;
    }

    /* Update mobile styles to maintain scrolling */
    @media (max-width: 768px) {
      .chatbot-welcome-form {
        padding: 20px;
        overflow-y: auto;
        /* Ensure scrolling on mobile */
      }
    }

    /* Update small mobile fix to maintain scrolling */
    @media (max-width: 380px) {
      .chatbot-welcome-logo {
        margin-bottom: 120px;
        max-width: 260px;
        display: none;
      }

      .chatbot-welcome-form,
      .chatbot-welcome-form-wrapper {
        overflow-y: auto !important;
        /* Keep vertical scroll */
        overflow-x: hidden !important;
        /* Hide horizontal scroll */
        justify-content: flex-start;
        padding-top: 20px;
        padding-bottom: 20px;
      }
    }

    @media (max-height: 520px) {
      .chatbot-welcome-form {
        justify-content: flex-start;
        overflow-y: auto;
        /* Important for short screens */
      }
    }


    .chatbot-panel.fullscreen .chatbot-welcome-form-wrapper {
      max-width: 600px;
    }

    .chatbot-welcome-form h3 {
      font-size: 1.3rem;
      font-weight: 600;
      color: #041a3c;
      margin: 0 0 12px 0;
      text-align: center;
    }

    .chatbot-panel.fullscreen .chatbot-welcome-form h3 {
      font-size: 1.6rem;
      margin-bottom: 12px;
    }

    .chatbot-welcome-form>p {
      font-size: 0.9rem;
      color: #666;
      margin: 0 0 35px 0;
      text-align: center;
    }

    .chatbot-panel.fullscreen .chatbot-welcome-form>p {
      font-size: 1rem;
      margin-bottom: 30px;
    }

    .chatbot-welcome-form-content {
      display: flex;
      flex-direction: column;
      gap: 15px;
      padding-top: 20px;
    }

    .chatbot-welcome-form-content input {
      width: 100%;
      padding: 14px 18px;
      border: 1px solid rgba(4, 26, 60, 0.15);
      border-radius: 10px;
      font-size: 0.95rem;
      outline: none;
      transition: border 0.2s ease, box-shadow 0.2s ease;
      box-sizing: border-box;
    }

    .chatbot-panel.fullscreen .chatbot-welcome-form-content input {
      padding: 15px 20px;
      font-size: 1rem;
    }

    .chatbot-welcome-form-content input:focus {
      border-color: #ff7b00;
      box-shadow: 0 0 0 3px rgba(255, 123, 0, 0.15);
    }





    .chatbot-start-btn {
      width: 100%;
      padding: 14px 20px;
      border: none;
      border-radius: 10px;
      background: linear-gradient(135deg, #ff7b00, #ff9500);
      color: #ffffff;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.2s ease, transform 0.2s ease;
      margin-top: 5px;
    }

    .chatbot-panel.fullscreen .chatbot-start-btn {
      padding: 15px 24px;
      font-size: 1.05rem;
    }

    .chatbot-start-btn:hover {
      background: linear-gradient(135deg, #e96a00, #ff7b00);
      transform: translateY(-1px);
    }

    .chatbot-start-btn:active {
      transform: translateY(0);
    }

    /* Welcome Logo */
    .chatbot-welcome-logo {
      display: block;
      /* max-width: 320px; */
      height: auto;
      /* margin: 0 auto 150px auto; */
    }

    .chatbot-welcome-logo {
      display: block;
      width: 100%;
      max-width: clamp(200px, 45vw, 320px);
      height: auto;
      margin: 0 auto;
    }

    /* .chatbot-panel.fullscreen .chatbot-welcome-logo {
  max-width: 450px;
  margin-bottom: 250px;
} */

    /* Google Sign-In */
    .chatbot-google-signin {
      margin-top: 16px;
      display: flex;
      justify-content: center;
      width: 100%;
    }

    .chatbot-google-signin iframe {
      max-width: 100% !important;
    }

    #googleSignInBtn {
      min-height: 44px;
      width: 100%;
      display: flex;
      justify-content: center;
      margin-top: 15px;
    }



    /* Subtle footer disclaimer */
    .chatbot-disclaimer {
      text-align: center;
      font-size: 0.68rem;
      line-height: 1.3;
      color: rgba(0, 0, 0, 0.45);
      max-width: 90%;
      margin: 0 auto;
      user-select: none;
    }

    /* Large Desktop - 1920px and above */
    @media (min-width: 1920px) {

      .chatbot-panel.fullscreen .chatbot-header-content,
      .chatbot-panel.fullscreen .chatbot-messages,
      .chatbot-panel.fullscreen .chatbot-typing-content,
      .chatbot-panel.fullscreen .chatbot-suggestions,
      .chatbot-panel.fullscreen .chatbot-footer-content {
        padding-left: 40px;
        padding-right: 40px;
      }
    }

    /* High DPI Displays */
    @media (min-resolution: 144dpi) and (min-width: 1920px) {

      .chatbot-panel.fullscreen .chatbot-messages,
      .chatbot-panel.fullscreen .chatbot-typing-content,
      .chatbot-panel.fullscreen .chatbot-suggestions,
      .chatbot-panel.fullscreen .chatbot-form {
        font-size: 0.95rem;
      }

      .chatbot-panel.fullscreen .chatbot-welcome-form h3 {
        font-size: 1.4rem;
      }

      .chatbot-panel.fullscreen .chatbot-welcome-form>p {
        font-size: 0.95rem;
      }
    }

    /* Tablets and Small Laptops */
    @media (max-width: 1024px) {
      .chatbot-panel {
        width: min(400px, calc(100vw - 20px));
        height: min(700px, calc(100vh - 40px));
      }

      .chatbot-panel.fullscreen .chatbot-header-content,
      .chatbot-panel.fullscreen .chatbot-messages,
      .chatbot-panel.fullscreen .chatbot-typing-content,
      .chatbot-panel.fullscreen .chatbot-suggestions,
      .chatbot-panel.fullscreen .chatbot-footer-content {
        padding-left: 20px;
        padding-right: 20px;
      }
    }

    /* Mobile Devices */
    @media (max-width: 768px) {
      .chatbot-wrapper {
        bottom: 10px;
        right: 10px;
      }

      .chatbot-toggle {
        padding: 10px 16px;
        font-size: 0.9rem;
      }

      .chatbot-toggle__icon {
        width: 32px;
        height: 32px;
      }

      .chatbot-panel {
        width: calc(100vw - 20px);
        height: calc(100dvh - 20px);
        max-height: calc(100dvh - 20px);
        border-radius: 16px;
      }

      .chatbot-panel.fullscreen {
        width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
      }

      .chatbot-header {
        padding: 14px 16px;
      }

      .chatbot-panel.fullscreen .chatbot-header-content {
        padding: 0;
      }

      .chatbot-title {
        font-size: 0.95rem;
      }

      .chatbot-status {
        font-size: 0.75rem;
      }

      .chatbot-messages {
        padding: 16px;
        gap: 10px;
      }

      .chatbot-panel.fullscreen .chatbot-messages {
        padding: 20px 16px;
      }

      .chatbot-message {
        font-size: 0.88rem;
        max-width: 90%;
      }

      .chatbot-typing-wrapper {
        padding: 0 16px 10px 16px;
      }

      .chatbot-panel.fullscreen .chatbot-typing-content {
        padding: 0 16px 10px 16px;
      }

      .chatbot-suggestions-wrapper {
        padding: 0 16px 10px 16px;
      }

      .chatbot-panel.fullscreen .chatbot-suggestions {
        padding: 0 16px 10px 16px;
      }

      .chatbot-suggestion {
        padding: 8px 14px;
        font-size: 0.8rem;
      }

      .chatbot-form {
        padding: 14px 16px 18px 16px;
      }

      .chatbot-panel.fullscreen .chatbot-footer-content {
        padding: 0;
      }

      .chatbot-form textarea {
        font-size: 0.95rem;
        padding: 12px 16px;
      }

      .chatbot-send {
        width: 44px;
        height: 44px;
      }

      .chatbot-welcome-form {
        padding: 20px;
      }

      .chatbot-panel.fullscreen .chatbot-welcome-form h3 {
        font-size: 1.25rem;
      }

      .chatbot-panel.fullscreen .chatbot-welcome-form>p {
        font-size: 0.9rem;
      }

      .chatbot-panel.fullscreen .chatbot-welcome-form-content input {
        padding: 14px 18px;
        font-size: 0.95rem;
      }

      .chatbot-panel.fullscreen .chatbot-start-btn {
        padding: 14px 20px;
        font-size: 1rem;
      }

      .chatbot-powered {
        font-size: 0.7rem;
        padding: 6px 0;
      }

      .chatbot-welcome-logo {
        max-width: 320px;
        /* margin-bottom: 220px; */
      }

      .chatbot-panel.fullscreen .chatbot-welcome-logo {
        max-width: 320px;
        margin-bottom: 220px;
      }

      .chatbot-footer {
        padding-bottom: env(safe-area-inset-bottom);
      }

      .chatbot-divider {
        margin: 6px 0 2px 0;
        gap: 10px;
      }

      .chatbot-divider span {
        font-size: 0.8rem;
      }
    }

    /* iOS Safe Viewport Fix */
    @supports (-webkit-touch-callout: none) {
      @media (max-width: 768px) {
        .chatbot-panel {
          height: calc(100svh - 20px);
          max-height: calc(100svh - 20px);
        }

        .chatbot-panel.fullscreen {
          height: 100svh;
          max-height: 100svh;
        }
      }
    }

    /* Small Mobile */
    @media (max-width: 480px) {
      .chatbot-toggle__text {
        display: none;
      }

      .chatbot-toggle {
        padding: 12px;
        border-radius: 50%;
      }

      .chatbot-message {
        font-size: 0.85rem;
      }
    }

    /* ===================== Small Mobile Fix (≤380px) ===================== */
    @media (max-width: 380px) {

      /* Reduce logo spacing so Google button stays visible */
      .chatbot-welcome-logo {
        margin-bottom: 120px;
        max-width: 260px;
        display: none;
      }

      /* Force Google button container visibility */
      .chatbot-google-signin {
        width: 100%;
        display: flex;
        justify-content: center;
        overflow: visible !important;
      }

      /* Fix iframe scaling issue */
      .chatbot-google-signin iframe {
        width: 100% !important;
        /* min-width: 0 !important;
    transform: scale(0.95); */
        transform-origin: center;
      }

      /* Ensure button wrapper never collapses */
      #googleSignInBtn {
        width: 100%;
        min-height: 44px;
        overflow: visible;
      }

      /* Prevent parent from clipping iframe */
      .chatbot-welcome-form,
      .chatbot-welcome-form-wrapper {
        overflow: visible !important;
        justify-content: flex-start;
        /* push content down if needed */
        padding-top: 20px;
        padding-bottom: 20px;
      }
    }

    .chatbot-google-signin {
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .chatbot-google-signin iframe {
      width: 100% !important;
      max-width: 260px !important;
      min-width: 220px !important;
      height: auto !important;
    }

    @media (max-height: 520px) {
      .chatbot-welcome-form {
        justify-content: flex-start;
      }
    }