/* Chatbot CSS below — footer layout/social: css/style.css (.footer …) */

/* Chat Toggle Button — round logo */
.chat-toggle-button {
  position: fixed;
  bottom: 22px;
  right: 20px;
  z-index: 1035;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18), 0 10px 26px rgba(0, 0, 0, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.chat-toggle-button__logo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.chat-toggle-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22), 0 16px 34px rgba(0, 0, 0, 0.12);
}

.chat-toggle-button:active {
  transform: translateY(0);
}

.chat-toggle-button:focus-visible {
  outline: 3px solid rgba(235, 55, 63, 0.45);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .chat-toggle-button {
    right: 12px;
    bottom: 16px;
    width: 68px;
    height: 68px;
  }
  .chat-toggle-button__logo {
    width: 56px;
    height: 56px;
  }
}

/* Mobile footer polish (loaded with footer — beats stale style.css cache) */
@media (max-width: 767.98px) {
  .footer .footer_top {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .footer > .container,
  .footer .footer_bottom > .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .footer .footer_top > .row {
    --bs-gutter-x: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .footer .footer_top > .row > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 1.15rem !important;
  }
  .footer .footer_top > .row > [class*="col-"]:last-child {
    margin-bottom: 0 !important;
  }
  .footer .footer_first_section .footer_logo img {
    max-width: 140px !important;
    max-height: 40px !important;
    height: auto !important;
  }
  .footer #contactusbtn,
  .footer .footer_content .theme_btn {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 12px !important;
  }
  .footer .footer_registration {
    margin-bottom: 0 !important;
    width: 100%;
    box-sizing: border-box;
  }
  .footer .footer_bottom {
    padding-bottom: 88px !important;
  }
}

/* Header nav — AI Chat pill (gradient ring, opens same panel as floating button) */
.homepage-banner .navbar-nav,
.navbar_class .navbar-nav {
  align-items: center;
}
.kti-nav-ai-chat-item {
  display: flex;
  align-items: center;
  align-self: center;
  margin: 0;
  padding: 0;
  transform: translateY(1px);
}
.homepage-banner .nav-item.small-nav:has(+ .kti-nav-ai-chat-item) > .nav-link,
.navbar_class .nav-item.small-nav:has(+ .kti-nav-ai-chat-item) > .nav-link {
  margin-right: 12px !important;
}
.kti-header-ai-chat-outer {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 999px;
  background: linear-gradient(135deg, #eb373f 0%, #f5a623 28%, #34c759 52%, #007aff 76%, #5856d6 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  line-height: 0;
}
.kti-header-ai-chat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 13px 6px 11px;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #374151;
  cursor: pointer;
  font-family: Poppins, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
  text-decoration: none;
  transition: box-shadow 0.15s ease, filter 0.15s ease;
}
.kti-header-ai-chat:hover {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  filter: brightness(1.02);
  text-decoration: none;
  color: #374151;
}
.kti-header-ai-chat:active {
  filter: brightness(0.98);
}
.kti-header-ai-chat:focus-visible {
  outline: 3px solid rgba(235, 55, 63, 0.45);
  outline-offset: 2px;
}
.kti-header-ai-chat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #4b5563;
  flex-shrink: 0;
}
.kti-header-ai-chat__svg {
  display: block;
  width: 18px;
  height: 18px;
}
.kti-header-ai-chat__text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}
.kti-header-ai-chat__ai {
  color: #374151;
}
.kti-header-ai-chat__chat {
  color: #2563eb;
}
.kti-header-ai-chat--sidenav {
  width: calc(100% - 24px);
  min-height: 40px;
  margin: 10px 12px 6px;
  justify-content: center;
  padding: 10px 16px;
  transform: none;
}
.kti-sidenav-ai-chat {
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 991px) {
  .kti-nav-ai-chat-item {
    display: none;
  }
}

/* Social icons stay left; preferred-source badge is centered on that same row */
.footer_social_row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  pointer-events: none;
}
.footer_social_row .footer_social_icons {
  grid-column: 1;
  justify-self: start;
  width: auto;
  pointer-events: auto;
}
@media (min-width: 992px) {
  .footer .footer_first_section {
    position: relative;
    z-index: 2;
  }
  .footer .footer_social_row {
    width: calc((100% + var(--bs-gutter-x, 1.5rem)) * 12 / 5 - var(--bs-gutter-x, 1.5rem));
  }
}
@media (max-width: 767.98px) {
  .footer .footer_social_row .footer_social_icons {
    width: auto !important;
    margin-bottom: 0 !important;
  }
}

/* Google preferred-source badge — matches the black two-line button */
.kti-google-preferred {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  grid-column: 2;
  justify-self: center;
  margin-top: 0;
  padding: 7px 12px 7px 8px;
  background: #000;
  color: #fff !important;
  border-radius: 8px;
  text-decoration: none !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
  max-width: 100%;
  box-sizing: border-box;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}
.kti-google-preferred:hover,
.kti-google-preferred:focus {
  background: #1a1a1a;
  color: #fff !important;
  text-decoration: none !important;
}
.kti-google-preferred:focus-visible {
  outline: 3px solid rgba(66, 133, 244, 0.55);
  outline-offset: 2px;
}
.kti-google-preferred__mark {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  display: block;
}
.kti-google-preferred__text {
  display: block;
  white-space: normal;
}

/* Old chat-widget styles removed — new ADK panel styled by js/adk_website_chat.js */

.error {
        color: red;
        font-size: 14px;
        display: none; /* Hidden by default */
    }

