/* Chat Toggle Button */
#chatToggleBtn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: white url('https://www.mastervijayram.com/images/chatlogo.png') no-repeat center center;
  background-size: 110%;
  border: 1px solid rgb(45, 45, 45);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  z-index: 9999;
  cursor: pointer;
  font-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}


.chat-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}





/* Chat Toggle Button */
#chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  border-radius: 50%;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 1000;
  animation: bounce 2s infinite;
}

/* Bounce Animation */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

#chat-toggle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Green Notification Dot */
#chat-toggle::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 12px;
  height: 12px;
  background-color: #00c853;
  border: 1.5px solid white;
  border-radius: 50%;
  z-index: 1001;
  
}

#chat-form label {    
    margin-bottom: .2rem;
}

/* Chat Widget Box */
#chat-widget {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 350px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
}

/* Responsive Chat Widget */
@media (max-width: 480px) {
  #chat-widget {
    width: 90%;
    right: 5%;
    bottom: 90px;
  }

  #chat-toggle {
    bottom: 90px;
    right: 15px;
    width: 55px;
    height: 55px;
  }

  #chat-toggle::after {
    top: 3px;
    right: 3px;
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 768px) and (min-width: 481px) {
  #chat-widget {
    width: 300px;
    right: 15px;
    bottom: 90px;
  }
  #chat-form label {
    font-weight: 600;
    display: block;
    margin-top: 2px;
}
#chat-form label {
    display: inline-block;
    margin-bottom:3.2px;}


    #chat-toggle {
      bottom: 90px;
      right: 15px;
      width: 55px;
      height: 55px;
    }
  
    #chat-toggle::after {
      top: 3px;
      right: 3px;
      width: 10px;
      height: 10px;
    }
  }

/* Chat Header */
#chat-header {
  background: linear-gradient(45deg, #ff5f6d, #ffc371);
  padding: 10px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Chat Form */
#chat-form {
  padding: 15px;
  background: #fff;
}

#chat-form label {
  font-weight: 600;
  display: block;
  margin-top: 5px;
}

#chat-form input,
#chat-form textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid #fcae5e;
  border-radius: 10px;
  margin-top: 2px;
  font-size: 16px;
  line-height: 5px;
}


#chat-form button {
  width: 100%;
  padding: 10px;
  margin-top: 15px;
  background: linear-gradient(45deg, #ff5f6d, #ffc371);
  color: white;
  border: none;
  font-size: 22px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

/* Close Button */
.close-chat {
  font-size: 28px;
  cursor: pointer;
  font-weight: bold;
}



/* Green Online Dot */
#chatToggleBtn::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background-color: #00c853;
  border: 0.5px solid white;
  border-radius: 50%;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
}

/* Hint Text */
#chatHint {
  position: fixed;
  bottom: 30px;
  left: 90px;
  background: #ffffff;
  color: #000;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 9999;
}

/* Chatbox Container */
#chatbot {
  display: none;
  position: fixed;
  bottom: 90px;
  left: 20px;
  width: 90%;
  max-width: 360px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  overflow: hidden;
  font-family: Arial, sans-serif;
  z-index: 9999;
}

/* Header Bar */
.chat-header {
  background: linear-gradient(90deg, #ff512f, #f09819);
  color: white;
  padding: 10px;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  position: relative;
}

/* Close Button in Top Right */
#chatCloseBtn {
  position: absolute;
  top: 16px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 18px;
  color: white;
  cursor: pointer;
  z-index: 10001;
}
#chatCloseBtn:hover {
  color: #ff0000;
}

/* Chat Body */
.chat-body {
  padding: 10px;
  margin: 0;
}
.chat-body label {
  font-weight: bold;
  display: block;
  margin-top: 5px;
  margin-bottom: 3px;
  text-align: center;
}

/* Input and Textarea Fields */
.chat-body input,
.chat-body textarea {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #000;
  border: 2px solid transparent;
  border-radius: 16px;
  background-image:
    linear-gradient(white, white),
    linear-gradient(90deg, #ff512f, #f09819);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  appearance: none;
  box-shadow: none;
  outline: none;
  text-align: center;
}
.chat-body ::placeholder {
  text-align: center;
  color: #888;
}
#userDetails {
  min-height: 50px;
  resize: vertical;
}
#userDetails:focus {
  box-shadow: 0 0 0 2px rgba(255, 81, 47, 0.3);
}

/* Select Dropdown */
#userNeed {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 16px;
  background: linear-gradient(90deg, #ff512f, #f09819);
  color: #ffffff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  background-clip: padding-box;
  box-sizing: border-box;
  outline: none;
  text-align: center;
}

/* Send Button */
.chat-body button {
  width: 100%;
  margin-top: 6px;
  border-radius: 16px;
  background: linear-gradient(90deg, #ff512f, #f09819);
  color: white;
  padding: 10px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
}





@media screen and (max-width: 767px) {
  #chatToggleBtn {
    width: 54px;
    height: 54px;
    bottom: 16px;
    left: 16px;
    background-size: 105%;
  }

  #chatHint {
    font-size: 9px;
    padding: 3px 8px;
    left: 80px;
    bottom: 24px;
  }

  #chatbot {
    left: 10px;
    right: 10px;
    width: auto;
    bottom: 80px;
    max-width: 95%;
    font-size: 14px;
    border-radius: 12px;
  }

  .chat-header {
    font-size: 16px;
    padding: 10px;
  }

  #chatCloseBtn {
    font-size: 20px;
    top: 10px;
    right: 14px;
  }

  .chat-body label {
    font-size: 14px;
  }

  .chat-body input,
  .chat-body textarea,
  #userNeed {
    font-size: 14px;
    padding: 8px;
  }

  .chat-body button {
    font-size: 14px;
    padding: 10px;
  }
}



/* Responsive Styles for iPads and Tablets (Mini, Air, Pro, Android) */
@media screen and (min-width: 768px) and (max-width: 1366px) {
  #chatToggleBtn {
    width: 80px;
    height: 80px;
    bottom: 30px;
    left: 30px;
    background-size: 120%;
  }

  #chatHint {
    font-size: 14px;
    padding: 6px 14px;
    left: 120px;
    bottom: 40px;
  }

  #chatbot {
    left: 30px;
    bottom: 120px;
    width: 95%;
    max-width: 400px;
    max-height: 740px;
    border-radius: 20px;
    font-size: 18px;
  }

  .chat-header {
    font-size: 22px;
    padding: 14px;
  }

  #chatCloseBtn {
    font-size: 24px;
    top: 16px;
    right: 15px;
  }

  .chat-body label {
    font-size: 20px;
  }

  .chat-body input,
  .chat-body textarea {
    font-size: 18px;
    padding: 12px;
  }

  #userNeed {
    font-size: 18px;
    padding: 12px;
  }

  .chat-body button {
    font-size: 18px;
    padding: 14px;
  }
}


