/* Fix width website for phone*/
@media (max-width: 768px) {
  #chatbot-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: height 0.3s ease;
    z-index: 9999;
    width :90%;
    font-family: 'Lexend', sans-serif;
    font-weight: 200;
  }
}

/* Styles pour le chatbot */
#chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: height 0.3s ease;
  z-index: 9999;
  width: 350px;
  font-family: 'Lexend', sans-serif;
  font-weight: 200;
}

p {
  margin-top: -10px !important;
}

#chatbot-container.closed {
  height: 50px;
  transition-delay: 1.5s;
}

#chatbot-container.closing {
  transition: height 1.5s ease; /* Transition plus lente pour la fermeture du chatbot */
  transition-delay: 1.5s; /* Délai de 1.5 secondes avant que la transition de fermeture ne se produise */
}

#chatbot-container:hover {
  height: 500px;
  transition-delay: 0s;
}

#chatbot-title {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  /*background: rgb(239,117,60); */
  background: linear-gradient(90deg, rgba(239,117,60,1) 0%, rgba(240,169,68,1) 100%);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  padding-left: 12px;
  padding-right: 12px;
  font-family: 'Lexend', sans-serif;
}

#chatbot-content {
  padding: 28px;
}

.chatbot-answer {
  margin-bottom: 10px;
  margin-top: 10px;
}

.chatbot-question span {
  font-weight: bold;
}

.chatbot-answer {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #eee;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'Lexend', sans-serif;
}

.chatbot-answer:hover {
  background: rgba(207, 88, 62, 0.4);
}

#chatbot-call-button {
  display: block;
  width: 85%;
  margin: 10px auto;
  margin-bottom: 20px !important;
  position: relative;
  box-sizing: border-box;
  height: 45px;
  border-radius: 50px;
  background-color: #ffcccc; /* Couleur de base (rouge pâle) */
  box-shadow: 0 10px 15px -6px rgba(207, 88, 62, 0.4);
  outline: none;
  cursor: pointer;
  border: none;
  font-size: 15px;
  color: #f5f5f5;
  align-items: center;
  transition: all 0.3s ease-in-out;
  font-weight: 600;
  font-family: 'Lexend', sans-serif;
}

#chatbot-call-button:hover {
  box-shadow: none;
}

#chatbot-call-button:active {
  opacity: 1;
  transform: translateY(3px);
}

#chatbot-call-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#chatbot-call-button:hover::before {
  opacity: 0;
}

#chatbot-call-button span {
  position: relative;
  z-index: 2;
}

#chatbot-call-button-container {
  position: relative;
  margin-bottom: 20px;
  text-align: center;
}

#chatbot-call-button-container.show-message #confirmation-message {
  display: block;
}

#chatbot-call-button.disabled {
  background-color: #d5763a; /* Couleur de base (rouge pâle) */
  cursor: not-allowed;
}

#chatbot-call-button.enabled {
  background-color: #d5763a; /* Couleur au survol (rouge vif) */
  cursor: pointer;
}

#chatbot-call-button.enabled:hover {
  background-color: #cf583e;
  box-shadow: none;
}

.button span {
  position: relative;
  z-index: 2;
}

#chatbot-call-button.valid-phone-number {
  /* background-color: #cf583e; */
  background: linear-gradient(90deg, rgba(239,117,60,1) 0%, rgba(240,169,68,1) 100%);
  transition: background-color 0.3s ease-in-out;
  box-shadow: 0 10px 15px -6px rgba(238, 103, 97, 0.5);
}

#chatbot-call-button:not(.valid-phone-number) {
  box-shadow: 0 10px 15px -6px rgba(0, 0, 0, 0.2);
}

#chatbot-call-button.valid-phone-number:hover {
  box-shadow: none;
}

#chatbot-call-button:not(.valid-phone-number) {
  pointer-events: none;
  opacity: 0.5; /* Réduire l'opacité pour indiquer que le bouton n'est pas cliquable */
  cursor: not-allowed; /* Changer le curseur pour indiquer qu'il n'est pas autorisé */
}

#calling-number-input,
#chatbot-firstname,
#chatbot-name,
#chatbot-company,
#chatbot-subject {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 15px;
  margin-top: 6px;
  padding: 10px 10px !important;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  font-family: 'Lexend', sans-serif;
}

#calling-number-input:focus,
#chatbot-firstname:focus,
#chatbot-name:focus,
#chatbot-company:focus,
#chatbot-subject:focus {
  outline: none;
  border-color: #cf583e;
  box-shadow: 0 0 0 2px rgba(235, 104, 61, 0.25);
}

#confirmation-message {
  display: none;
  text-align: center;
  font-size: 14px;
  position: relative;
  color: rgb(108, 175, 40); /* Couleur verte pour le message */
  font-family: 'Lexend', sans-serif;
  margin-top: 10px;
}

#confirmation-message.show {
  display: block;
}

#confirmation-message.hide {
  display: none;
}

.confirmation-text {
  font-size: 12px;
  text-align: center;
  margin-top: 5px;
}

#calling-number-text,
#nom-number-text,
#prenom-number-text {
  font-size: 14px;
  line-height: 10%;
  margin-top: 20px;
  font-family: 'Lexend', sans-serif;
  text-align: center !important;
}

.wrong-text {
  font-weight: bold;
  font-size: 16px;
  font-family: 'Lexend', sans-serif;
  margin-top: 16px !important;
}

.button1 {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  margin-top: 15px;
  font-family: 'Lexend', sans-serif;
}

.button1:hover {
  background-color: #0056b3;
}

#chatbot-content {
  max-height: 500px; 
  overflow-y: auto; 
}

.last-slide {
  min-height: 10px;
  padding-bottom: 50px;
}
