 
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined');


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

#chatbot-toggler {
  position: fixed;
  bottom: 30px;
  right: 35px;
  border: none;
  height: 50px;
  width: 50px;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #70297c;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.container.show-chatbot #chatbot-toggler {
  transform: rotate(90deg);
}

#chatbot-toggler span {
  color: #fff;
  position: absolute;
}

/* #chatbot-toggler span:last-child,
.container.show-chatbot #chatbot-toggler span:first-child {
  opacity: 0;
} */

.container.show-chatbot #chatbot-toggler span:last-child {
  opacity: 1;
}

.chatbot-popup {
  position: fixed;
  width: 360px;
  height: 450px;  
  opacity: 0;
  right: 35px;
  bottom: 100px; 
  pointer-events: none;
  transform: scale(0.2);
  overflow: hidden;
  background: #fff;
  border-radius: 10px;  
  transform-origin: bottom right;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2), 0 10px 30px -10px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease-in-out;
}

.container.show-chatbot .chatbot-popup {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.chatbot-popup .chat-header {
  display: flex;
  padding: 12px 16px; 
  align-items: center;
  background: #70297c;
  justify-content: space-between;
}

.chat-header .header-info {
  display: flex;
  align-items: center;  
  gap: 5px;  
}

.header-info svg {
  width: 32px;  
  height: 32px;
  flex-shrink: 0;
  padding: 4px;  
  fill: #70297c;
  background: #fff;
  border-radius: 50%;
}

.header-info .logo-text {
  color: #fff;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.02rem;
  line-height: 1;  
  margin: 0;  
}

.chat-header button {
  border: none;
  height: 40px;
  width: 40px;
  color: #fff;
  cursor: pointer;
  padding-top: 2px;
  margin-right: -10px;
  font-size: 1.9rem;
  border-radius: 50%;
  background: none;
  transition: 0.2s ease;
}

.chat-header button:hover {
  background: #7a1c5a;
}

.chat-body {
  display: flex;
  flex-direction: column;
  height: calc(100% - 80px);  
  overflow-y: auto;
  padding: 15px 18px 0px; 
  scrollbar-width: thin;
  scrollbar-color: #DDD3F9 transparent;
}

.bot-message-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.bot-message-container > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.chat-body .message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.chat-body .message svg {
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  padding: 6px;
  fill: #fff;
  align-self: flex-end;
  margin-bottom: 2px;
  background: #70297c;
  border-radius: 50%;
}

.chat-body .message .message-text {
  padding: 12px 16px;
  max-width: 75%;
  font-size: 0.95rem;
  word-wrap: break-word;
  white-space: pre-line;
}

.chat-body .message.error .message-text {
  color: #ff0000;
}

.chat-body .bot-message .message-text {
  background: #F6F2FF;
  border-radius: 13px 13px 13px 3px;
}

.chat-body .user-message {
  flex-direction: column;
  align-items: flex-end;
}

.chat-body .user-message .message-text {
  color: #fff;
  background: #70297c;
  border-radius: 13px 13px 3px 13px;
}

.chat-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #fff;
  padding: 8px 15px;  
}

.chat-footer .chat-form {
  display: flex;
  align-items: center;
  position: relative;
  background: #fff;
  border-radius: 32px;
  outline: 1px solid #CCCCE5;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.06);
  padding: 6px 10px;  
}

.chat-form .message-input {
  width: 100%;
  height: 30px;  
  border: none;
  outline: none;
  font-size: 0.95rem;
  padding: 5px 10px;
  background: none;
}

.chat-form #send-message {
  height: 40px;  
  width: 40px;
  border: none;
  flex-shrink: 0;
  color: #fff;
  cursor: pointer;
  margin-left: 5px;  
  background: #70297c;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: 0.2s ease;
}

.chat-form #send-message:hover {
  background: #7a1c5a;
}


/* POPUP */
.chat-popup {
  position: fixed;
  bottom: 80px;
  right: 40px;
  display: flex;
  align-items: center;
  background: white;
  padding: 12px 15px;
  border-radius: 25px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.chat-popup:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.chat-gif {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

/* chatbot container */
.chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;  
}

 
.chat-animation {
   display: flex;
   background: #70297c;
   align-items: center;
   border-radius: 35px;
   overflow: hidden;
   transform: translateZ(0);  
  backface-visibility: hidden;
  /* padding-left: 10px; */
}


.popup-container {
  position: fixed;
  bottom: 30px;  
  right: 40px;
  z-index: 9999;
}

.chat-animation svg {
  fill: #70297c;
  background: #f5f3f3;
  border-radius: 50%;
  

}
.chat-animation-text{
   color: #fff;
    padding-top: 5px;
    padding-left: 5px;
    padding-right: 10px;
    font-size: 16px;

}



/* popup thanks */

.bot-message-thanks{
  display: flex;
  background: #70297c;
  align-items: center;
  border-radius: 35px;
  overflow: hidden;
  transform: translateZ(0);  
  backface-visibility: hidden;
  
}
.bot-message-thanks svg {
  fill: #70297c;
  background: #f5f3f3;
  border-radius: 50%;
  

}
.thanks-popup{
  position: fixed;
  bottom: 30px;  
  right: 40px;
}

.bot-message-thanks-container{
  position: fixed;
  bottom: 30px;  
  right: 40px;
}
.bot-message-text{
  color: #fff;
   padding-top: 5px;
   padding-left: 5px;
   padding-right: 10px;
   font-size: 16px;

}


.button-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 5px;
}

.chat-button {
  padding: 8px 14px;
  font-size: 0.9rem;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  background-color: #70297c;
  color: #fff;
  transition: background-color 0.2s ease;
}

.chat-button:hover {
  background-color: #7a1c5a;
}

.chat-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(112, 41, 124, 0.5);
}


.bot-message-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.bot-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.bot-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.button-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  margin-left: 45px; /* align with start of message bubble */
}

.email-input-bubble {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.text-input-bubble {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.email-form {
  display: flex;
  align-items: center;
  border-radius: 18px;
  width: 100%;

}

.text-form {
  display: flex;
  align-items: center;
  border-radius: 18px;
  width: 100%;

}
.email-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 0.95rem;
  padding-left: 5px;
}
.text-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 0.95rem;
  padding-left: 5px;
}
.send-button {
  background: none;
  border: none;
  cursor: pointer;
  padding-left: 8px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

.send-button-text {
  background: #70297c;
  margin-left: 5px;
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: bold;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 12px 12px;
}

.chat-body .material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.chatbot-toggler .material-symbols-outlined:hover {
  background: none !important;
}


/* Optional: style just for the icon inside chatbot toggle */
.chatbot-icon-symbol {
  color: white;
  padding: 11px;
  border-radius: 20px;
}




/* Responsive media query for mobile screens */
@media (max-width: 520px) {
  #chatbot-toggler {
    right: 20px;
    bottom: 20px;
  }

  .chatbot-popup {
    right: 0;
    bottom: 0;
    height: 100%;
    border-radius: 0;
    width: 100%;
  }

  .chatbot-popup .chat-header {
    padding: 12px 15px;
  }

  .chat-body {
    height: calc(90% - 55px);
    padding: 25px 15px 90px;
  }

  .chat-footer {
    padding: 10px 15px 15px;
  }
}

.blinking-cursor {
  display: inline-block;
  margin-left: 2px;
  width: 1px;
  background-color: #000;
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}
