#chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    display: flex;
    /* align-items: center; */
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    border: 3px solid #ADD8E6;
    animation: borderPulse 3s infinite alternate;
}


#chat-logo {
   width: 40px;
    height: 40px;
    display: block;
    margin: auto;
    pointer-events: none; /* Let the drag handler work on the parent */
}


@keyframes chatWidgetFadeIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

#finbotchat-widget-container {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 360px;
  max-width: 100vw;
  max-height: 150vh;
  min-height:70vh;
  background: white;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border: 1px solid rgb(227, 227, 227);
  box-sizing: border-box;
  font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';

  /* 🎬 Animation */
  animation: chatWidgetFadeIn 0.4s ease-out;
  transform-origin: bottom right;
  will-change: transform, opacity;
  
}


.botsheader,#enquiry_form button{
	margin: 10px;
	background-color: #1A56F5;
	border-radius: 24px;
	border: 1px solid rgb(227, 227, 227);
}
/* /////////////////////////////////////////////// */
#finbot-closebtn {
  cursor: pointer;
  color: #fff;
  transition: color 0.3s;
  margin-left: 250px;
}

#finbot-closebtn i {
  font-size: 20px;
  cursor: pointer;
}

#finbotchat-widget-container.closing {
  animation: chatWidgetFadeOut 0.3s ease-in forwards;
}

@keyframes chatWidgetFadeOut {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0;
  }
}
/* /////////////////////////////////////////////// */

#chat-header,#verify-email-button {
  padding: 12px 16px;
  font-size: 1.2rem;
  font-weight: bold;
  border-bottom: 1px solid #eee;
  text-align: left;
  color: #ffffffff;
  justify-content: space-between;
  gap: 10px; /* Adjust the gap size as needed */
}

#chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}


/* Chat output */
#chat-output {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #ccc; /* optional styling */
  border-radius:5px;
  background-color: #fff; /* optional */
  max-height: 250px;
}

.bot-message{
  padding: 10px;
  margin-top:5px;
  border-radius:5px;
  background-color: #fff; /* optional */
  max-height: 350px;
}

/* Question container */
#question-container {
  flex: 1;
  overflow-y: auto;
  padding: 5px;
  background-color: #fff; /* optional */
  min-height: 300px;
}

/* Chat input container */
#chat-input-container {
  display: flex;
  gap: 5px;
  padding: 10px;
  border-top: 1px solid #ccc;
}

#chat-input-container input {
  flex: 1;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

#chat-input-container button {
  padding: 10px 15px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
}

#chat-output .user-message, #chat-output .bot-message {
  margin: 5px 0;
  padding: 8px 12px;
  border-radius: 10px;
  max-width: 80%;
}

.user-message {
  align-self: flex-end;
  background-color: #e6f7ff;
}

.bot-message {
  align-self: flex-start;
  background-color: #fff;
}

#question-list {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

#question-list li {
  padding: 8px;
  background: #e8f3ff; 
  margin-bottom: 5px;
  border-radius: 5px;
  cursor: pointer;
  text-align: left;
}

#question-list li:hover {
  background: #d2e7ff;        /* hover effect */
}

/* Enquiry form */
#enquiry_form {
   flex: 1;                      /* 🔥 makes it stretch to fill available space */
  display: flex;
  flex-direction: column;
  overflow-y: auto;              /* enables vertical scrolling if needed */
  padding: 16px;
  background: #e8f3ff;
  margin: 10px;
  border-radius: 7px;
  max-width: 95%;
  scrollbar-width: thin;         /* Firefox */
  scrollbar-color: #888 #f1f1f1; /* scrollbar thumb and track colors */
  box-sizing: border-box;
  
}

#enquiry_form.show {
  animation: chatWidgetFadeIn 0.4s ease-out;
  transform-origin: bottom right;
  will-change: transform, opacity;
}

/* Chrome, Edge, Safari */
#enquiry_form::-webkit-scrollbar {
  width: 8px;
}

#enquiry_form::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 8px;
}

#enquiry_form::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 8px;
}

#enquiry_form::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}


#enquiry_form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
  text-align:left;
  font-size: 12px;
}

.finbotinput-box{
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  transition: border-color 0.3s;
  border-color: #007BFF;
  font-size: 10px;
}

#email-verification-form {
  margin-top: 20px;
}

#email-verification-form button {
  background-color: #28a745;
}

#email-verification-form button:hover {
  background-color: #218838;
}



/* Chat action buttons (Enquiry and Chat with us) */
.chat-action-button {
  width: 100%;
  max-width: 200px;
  padding: 8px 12px;
  font-size: 0.9rem;
  text-align: center;
}

/* Question and Answer side-by-side layout */
.qa-container {
  display: flex;
  flex-direction: row;
  margin: 10px 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
}

.qa-question {
  flex: 1;
  padding: 15px;
  background-color: #ffffff;
  border-right: 1px solid #e0e0e0;
  font-weight: bold;
}

.qa-answer {
  flex: 2;
  padding: 15px;
  background-color: #e3f2fd;
}


/* ////////////////////////////////////////////////////////////////////// */



.chatbot-body {
  display: flex;
  flex-direction: column; /* stack vertically */
  align-items: center;    /* optional: center horizontally */
}


.chatbot-body-items {
  align-items: center;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 44px;
  justify-content: center;
  transition: color .15s ease-in;
  width: 100%;
  background-color: #fff;
  text-align: center;
  padding: 10px;
  box-shadow: #fff;
  align-content: center;
  z-index: 2;
  margin: 10px;
	background-color: #1A56F5;
	border-radius: 24px;
	border: 1px solid rgb(227, 227, 227);
}

#connect-withus{
	display: flex;
}

/* //////////////////////////////////////////////////////////////////////// */

.finbot-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;      /* adjust as needed */
  text-align: center;
  padding: 8px 0;
  font-size: 10px;
  color: black;
  border-top: 1px solid #ccc;
  z-index: 1000;
  align-items: center;
}


/* ///////////////////////////////////////////////////
 */
 
 .maximize-hint {
  position: absolute;
  bottom: 5px; /* adjust depending on your layout */
  right: 2px;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  animation: pulse 2s infinite;
}


@keyframes handBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
 
 
 .chatbot-maximized {
  width: 100%;
  height: 90vh;
}

.chatbot-body,
.connect-withus,
#enquiry_form,
#chat-questionanswer-body ,
#finbot-subcontainer{
  flex: 1;
  height: 100%;
}



/* Popup bubble styling */
.finbot-popup {
  position: fixed;
  bottom: 80px;            /* adjust based on chatbot position */
  right: 10px;            /* 👈 offset to appear left of chatbot (chatbot width ≈ 380px) */
  background: #2C8DFF;     /* matches your bot color */
  color: #fff;
  padding: 10px 16px;
  border-radius: 18px 18px 18px 18px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  cursor: pointer;
  z-index: 9998;
  animation: finbotFadeIn 0.8s ease forwards, finbotPulse 2.5s infinite;
}

/* Fade in smoothly */
@keyframes finbotFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* Optional: small “tail” bubble triangle */
.finbot-popup::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 15px;
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: #2C8DFF transparent transparent transparent;
}
