.vapi-btn-is-idle {
  display: none !important;
}
#vapi-support-btn {
  display: none !important;
}
.hexa-chatbot-section {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}
/* Chatbox initial small state */
.hexa-cb-chatbox {
  width: 200px;
  height: 56px;
  background: #1f2023;
  border-radius: 18px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
  display: flex;
  flex-direction: column-reverse;
  /* flex-direction: column; */
  /* justify-content: space-between; */
}
.hexa-cb-chat-transcript {
  width: 100%;
  height: 100%;
}

.hexa-cb-icon {
  width: 20px;
  transition: transform 0.2s ease; /* Smooth rotation */
  transform-origin: center; /* Rotate around center */
}
.hexa-cb-chatbox.open .hexa-cb-icon {
  transform: rotate(180deg);
}

.hexa-cb-icon-text-cont {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
/* .hexa-cb-main-cont {
  background: linear-gradient(to right, #12c2e9, #c471ed, #f64f59);
  border-radius: 18px;
  padding: 1px;
} */

.hexa-cb-main-cont {
  position: relative;
  border-radius: 18px;
  padding: 1px; /* content space */
  background: #18191d; /* parent background */
  z-index: 0;
  overflow: visible;
}

/* animated glowing border with outer glow */
.hexa-cb-main-cont::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;

  z-index: -1;
  border-radius: 2px; /* parent radius + extra */
  background: linear-gradient(270deg, #12c2e9, #c471ed, #f64f59, #12c2e9);
  background-size: 600% 600%;
  filter: blur(14px);
  opacity: 0.5;
  animation: moveGlow 5s linear infinite, pulseGlow 3s ease-in-out infinite;
}

@keyframes moveGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.5;
  }
}

/* Expanded state */
.hexa-cb-chatbox.open {
  width: 400px;
  height: 520px;
  border-radius: 18px;
}

/* Header */
.hexa-cb-chatbox-header {
  height: 75px;
  background: #18191d;
  font-size: 14px;
  text-align: center;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hexa-cb-chatbox-content {
  height: 65px;
  background: #18191d;
  font-size: 14px;
  text-align: center;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Content hidden initially */

/* Show content when open */
.hexa-cb-chatbox.open .hexa-cb-chatbox-content {
  opacity: 1;
  transform: translateY(0);
}

.hexa-cb-close-btn {
  display: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  margin-left: 10px;
  transition: opacity 0.3s ease;
  opacity: 0;
}
.hexa-cb-chatbox.open .hexa-cb-close-btn {
  display: inline-block;
  opacity: 1;
}

.hexa-cb-mic-cont {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #18191d;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hexa-cb-secondary-box p {
  text-align: center;
}
.hexa-cb-mic-cont i {
  font-size: 24px;
}
.hexa-cb-mic-main-cont {
  /* height: 390px; */
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;
}
.hexa-cb-secondary-box {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.hexa-cb-title {
  margin: 0;
  font-size: 14px;
  color: #fff;
  display: inline-block;
  transition: all 0.4s ease-in-out;
  opacity: 1;
  transform: scale(1);
}

/* Optional: button style for Start text */
.hexa-cb-title.button-style {
  background: linear-gradient(to right, #12c2e9, #c471ed, #f64f59);
  padding: 4px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.hexa-cb-chat-transcript {
  max-height: 390px;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: none;
}

.hexa-cb-chat-transcript::-webkit-scrollbar {
  width: 0px;
  background: transparent; /* Chrome/Safari */
}
.hexa-cb-message-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px; /* har message ke beech gap */
  margin-top: 10px;
}

.hexa-cb-message {
  padding: 6px 10px;
  border-radius: 12px;
  max-width: 70%;
  word-wrap: break-word;
  font-size: 14px;
  transition: all 0.3s ease-in-out;
}

.hexa-cb-message.user {
  background: #18191d;
  color: #fff;
  align-self: flex-end;
}

.hexa-cb-message.ai {
  background: #18191d;
  color: #fff;
  align-self: flex-start;
}

.rotate-svg {
  animation: rotate360 1s linear infinite;
}

@keyframes rotate360 {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.gradient-button-uni-cb {
  border-radius: 50px;
  font-family: sans-serif;
  font-size: 14px;
  /* padding: 12px 60px; */
  padding: 6px 24px;
  position: relative;
  cursor: pointer;
}

.gradient-button-uni-cb::before,
.gradient-button-uni-cb::after {
  content: "";
  position: absolute;
  transition: 0.3s ease-in-out;
  z-index: -1;
}

.gradient-button-uni-cb::before {
  background: linear-gradient(to right, #12c2e9, #c471ed, #f64f59);
  border-radius: 50px;
  height: 100%;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 50%;
}
.gradient-button-uni-cb::after {
  background: #111215;
  border-radius: 50px;
  /* height: calc(100% - (3px * 2));
  left: 3px;
  top: 3px;
  width: calc(100% - (3px * 2)); */
  opacity: 50%;
  height: calc(100% - (2px * 2));
  left: 2px;
  top: 2px;
  width: calc(100% - (2px * 2));
}

.gradient-button-uni-cb:hover::before {
  background: linear-gradient(to right, #12c2e9, #c471ed, #f64f59);
  opacity: 100%;
}

.gradient-button-uni-cb:hover::after {
  background: transparent;
  opacity: 100%;
}

.hexa-loader-cb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  animation: loader-rotate 1.5s linear infinite;
}

@keyframes loader-rotate {
  0% {
    transform: rotate(90deg);
    box-shadow: 0 10px 20px 0 #fff inset, 0 20px 30px 0 #ad5fff inset,
      0 60px 60px 0 #471eec inset;
  }
  50% {
    transform: rotate(270deg);
    box-shadow: 0 10px 20px 0 #fff inset, 0 20px 10px 0 #d60a47 inset,
      0 40px 60px 0 #311e80 inset;
  }
  100% {
    transform: rotate(450deg);
    box-shadow: 0 10px 20px 0 #fff inset, 0 20px 30px 0 #ad5fff inset,
      0 60px 60px 0 #471eec inset;
  }
}

.hexa-cb-mic-on-cont {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1f2023;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hexa-cb-mic-on-cont::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(to right, #12c2e9, #c471ed, #f64f59);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 0;
}

.hexa-cb-mic-on-cont i {
  position: relative;
  z-index: 1;
  color: #fff;
}

.hexa-cb-mic-on-cont:hover::after {
  opacity: 1;
}

.hexa-cb-mic-on-cont i {
  font-size: 16px;
}

#hexa-cb-mic-off {
  display: none;
}
