.modal-dialog {
    max-width: 55%;
    margin: 1.75rem auto;
}
@media (max-width: 767px) {
    .modal-dialog {
        max-width: 100%;
    }
}
.popup {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1;
}

.popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  background-color: #ffffff;
  box-shadow: 0px 0px 20px 0px #000000;
/*  width: 620px; /* Adjust as needed */*/
}

.close-popup {
  position: absolute;
  top: -13px;
  right: 10px;
  cursor: pointer;
  background-color: #ffffff;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #000;
  text-align: center;
  font-weight: bold;
  padding: 10px;
}

.popup-content img {
  max-width: 100%;
  height: auto;
}
#chat-circle {
  position: fixed;
  bottom: 7%;
  right: 50px;
  background: #ffc900;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: black;
  padding: 15px;
  text-align: center;
  box-shadow: 0px 3px 16px 0px rgba(0, 0, 0, 0.6), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
  z-index: 1000;
}



#chat-overlay {
  background: rgba(255, 255, 255, 0.1);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: none;
}



@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 201, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 201, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 201, 0, 0);
  }
}
#chat-overlay {
  background: rgba(255, 255, 255, 0.1);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: none;
}

.chat-box {
  width: 375px;
  position: fixed;
  inset: 0px 0px 0px auto;
  z-index: 200006;
  height: 731px;
  border-radius: 15px 0px 0px 15px;
}

.chat-box-toggle {
  float: right;
  margin-right: 15px;
  cursor: pointer;
  display: flex;
}

.chat-box-header {
  overflow: hidden;
  padding-left: 10px !important;
  padding-right: 6px !important;
  text-align: inherit;
  font-size: 15px;
  background-color: black;
  color: white;
}

.chat-box-body {
  position: relative;
  height: 550px;
  height: auto;
  border: 1px solid #ccc;
  overflow: hidden;
  background-color: #ffffff;
}

.chat-box-body:after {
  content: "";
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  height: 100%;
  position: absolute;
  z-index: -1;
}

#chat-input {
  background: #f4f7f9;
  width: 100%;
  height: 45px;
  padding: 10px 15px;
  padding-right: 50px; 
 
  outline: none;
  color: #000;
}

.chat-submit {
  position: absolute;
  top: 33%;
  right: 0;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 30px;
  color: black;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-input {
  position: relative;
  display: flex;
  align-items: center;
}

.chat-input input {
  flex-grow: 1;
  border: none;
  outline: none;
  padding: 10px 15px;
 
  background: #f4f7f9;
  color: #000;
}

.chat-input button {
  border: none;
  background: none;
  outline: none;
  cursor: pointer;
  padding: 0 10px;
}

.chat-input button i {
  font-size: 30px;
  color: #000;
}

.chat-logs {
  padding: 15px;
  height: 85vh;
  overflow-y: scroll;
}

@media only screen and (width: 320px) {
  .chat-logs {
    padding: 15px;
     height: 70vh;
    overflow-y: scroll;
  }
  .chat-box {
    width: 322px;
  }
}

.botpic {
  margin-bottom: 5%;
}

@media only screen and (max-width: 1440px) {
  .chat-logs {
    padding: 15px;
    height: 70vh;
    overflow-y: scroll;
  }
  .chat-submit {
    height: 48%;
  }
}

.chat-msg.user > .msg-avatar img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  float: left;
  width: 15%;
}

.chat-msg.self > .msg-avatar img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  float: right;
  width: 15%;
}

.cm-msg-text {
  padding: 10px 15px;
  color: black;
  max-width: 75%;
  float: left;
  margin-left: 10px;
  position: relative;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid black;
  border-color: black;
}

.chat-msg {
  clear: both;
}

.mdi-close-circle::before {
  padding: 20%;
}

.mdi-send-circle::before {
  margin-top: 60%;
}

.auto-image {
  color: #fff;
  margin-left: 30%;
  margin-bottom: 20px;
}

.chat-msg.self > .cm-msg-text {
  float: right;
  margin-right: 10px;
  color: white;
  background: black;
}

.cm-msg-button > ul > li {
  list-style: none;
  float: left;
  width: 50%;
}

.cm-msg-button {
  clear: both;
  margin-bottom: 70px;
}

/*new*/

.demo-form-container {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 5px;
    max-width: 350px; /* Adjusted width */
    margin: auto;
    margin-top: 20%;
}

.demo-form {
    display: grid;
    grid-gap: 8px; /* Reduced grid gap */
}

.form-group {
    margin-bottom: 10px; /* Reduced margin */
}

label {
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 8px; /* Reduced padding */
    border: 1px solid #ccc;
    border-radius: 4px;
}


.btn:hover {
    background-color: #0056b3;
}

h3 {
    margin-top: 0;
    font-size: 20px; /* Slightly reduced font size */
    color: #333;
    text-align: center;
}


   .chat-msg {
        margin-bottom: 10px;
    }
    .thinking-message {
        display: flex;
        align-items: center;
    }
    .thinking-message .dots-container {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .thinking-message .dot {
        width: 10px;
        height: 10px;
        background-color: #999; /* Grey color */
        border-radius: 50%;
        margin: 0 2px;
        animation: dot-pulse 1s infinite ease-in-out;
    }
    @keyframes dot-pulse {
        0%, 100% {
            transform: scale(1);
            opacity: 0.7;
        }
        50% {
            transform: scale(0.8);
            opacity: 0.3;
        }
    }

/*    ..................popup image....................*/

  .modal-body {
  padding: 0;
  position: relative; /* This makes close button position relative to image container */
  display: flex;
  justify-content: center; /* Center image horizontally */
}

.modal-img {
  max-width: 100%;
  max-height: 90vh;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1056;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 1.5rem;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}
.close-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}