@import url("https://fonts.googleapis.com/css2?family=Anek+Devanagari:wght@100..800&display=swap");

:root {
  --primary-color: #2a5c8a;
  --secondary-color: #f8f9fa;
  --accent-color: #ff7e33;
  --bot-bubble: #e9ecef;
  --user-bubble: var(--primary-color);
  --text-dark: #212529;
  --text-light: #f8f9fa;
}

*{
    font-family: "Poppins", sans-serif !important;
    font-weight: 500 !important;
}
body {
  margin: 0;
  font-family: "Anek Devanagari", sans-serif;
  background-color: #f4f6fa;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
.btn-outline-secondary {
    --bs-btn-color: #0d6efd;
    --bs-btn-border-color: #6c757d;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #6c757d;
    --bs-btn-hover-border-color: #6c757d;
    --bs-btn-focus-shadow-rgb: 108, 117, 125;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #6c757d;
    --bs-btn-active-border-color: #6c757d;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #6c757d;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #6c757d;
    --bs-gradient: none;
    
}

.btn-outline-secondary {
    --bs-btn-color: #0d6efd;
    --bs-btn-border-color: #0d6efd;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0d6efd;
    --bs-btn-hover-border-color: #0d6efd;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0d6efd;
    --bs-btn-active-border-color: #0d6efd;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #0d6efd;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #0d6efd;
    --bs-gradient: none;
}

p{
    margin-bottom:0px;
}

.chatbot-container {
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  height: 100%;
  /* max-height: 100%;
  width: 100%;
  max-width: 400px;
  flex-direction: column; */
}

.chatbot-header {
  background: linear-gradient(to right, #0a2c61, #0a3e7a);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-title-box{
    display:flex;
    align-items:center;
    
}
.chatbot-title-box h1 {
  margin: 0;
  font-size: 18px;
}

.chatbot-subtitle {
  font-size: 15px;
  color: #ccc;
  margin-top: 4px;
}

.footer-btn {
  position: relative;
  top: 40px;
}

.btn {
  width: 100%;
  font-size: 15px;
  padding: 10px 24px;
  border-radius: 25px;
  cursor: pointer;
  border: 1px solid #0a2c61;
  transition: all 0.3s ease;
  font-weight: 500;
  outline: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.1s ease;
  background: none;
}

.chatbot-start-btn:hover {
  background-color: #e6f0fb;
  border: 1px solid #0a2c61;
}

.chatbot-start-btn:active {
  background-color: #0a3871;
  color: #fff;
  transform: scale(0.95); /* optional: slight button press effect */
}

.chatbot-status {
  background-color: white;
  color: #0a2c61;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 30px;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.chatbot-status-dot {
  width: 8px;
  height: 8px;
  background-color: green;
  border-radius: 50%;
  margin-right: 6px;
  display: inline-block;
  animation: blink 1s infinite;
}

.bot-message {
  align-self: flex-start;
  background-color: #e9ecef;
  color: var(--text-dark);
  border-bottom-left-radius: 5px;
}

.bot-message,
.user-message {
  max-width: 100%;
  width: 300px;
  padding: 10px;
  border-radius: 10px;
  line-height: 1.4;
  font-size: 0.9rem;
  position: relative;
  text-align: start;
  margin: 0 0 10px 0;
}

.user-message {
  margin-left: auto;
  width: max-content !important;
  border-radius: 25px;
  align-self: flex-end;
  background-color: var(--user-bubble);
  color: var(--text-light);
  border-bottom-right-radius: 5px;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}
.chatbot-main {
  padding: 20px 15px;
  text-align: center;
  height: 450px;
  max-height: 100%;
}

.chatbot-logo {
  width: 60px;
  height: auto;
  /*margin-bottom: 20px;*/
  margin-left: 0;
}

@media (max-width: 600px) {
  .chatbot-logo {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}

/* Modal */
.custom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  justify-content: center;
  align-items: center;
  background: transparent;
}

.custom-modal.show {
  display: flex;
}

.modal-dialog {
  max-width: 400px;
}

.modal-content-custom {
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.modal-title {
  font-weight: 600;
  margin-bottom: 15px;
}

.modal-input {
  margin-bottom: 20px;
  height: 45px;
  font-size: 15px;
}

.modal-footer-custom {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Skip button (outline style) */
.btn-skip {
  background-color: #ffffff;
  color: #0a3872;
  border: 1px solid #0a3872;
}

.btn-skip:hover,
.btn-skip:focus {
  background-color: #e6f2fb;
  border-color: #0a3872;
  color: #005fa3;
}

/* Submit button (solid style) */
.btn-submit {
  background-color: #0a3872;
  color: #ffffff;
  border: 1px solid #0a3872;
  padding:5px 0;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

@keyframes typingAnimation {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-5px);
  }
}

.input-error {
  border: 2px solid red;
}

.footer-search {
      display: flex;
      align-items: center;
      margin-bottom: 10px;
      position: relative;
      bottom: -25px;
    }

.footer-search #user-input {
  padding: 10px 15px;
  border: 1px solid #0a3b76;
  border-radius: 25px;
  outline: none;
  font-size: 0.8rem;
  width: 310px;
  height: 35px;
}

.footer-search #send-btn, #mic-btn {
  width: 35px;
  height: 35px;
  margin: 0 10px;
  border: 1px solid #0a3871;
  color: #0a3871;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.1s ease;
  background: none;
}

/* Hover (optional for feedback) */
.footer-search #send-btn:hover {
  background-color: #e6f0fb;
}

/* Active (on click) */
.footer-search #send-btn:active {
  background-color: #0a3871;
  color: #fff;
  transform: scale(0.95); /* optional: slight button press effect */
}

.chatbot-scroll {
    display: block;
    height: 400px;
    width: 100%;
    overflow: hidden auto;
    opacity: 1;
    scroll-behavior: smooth;
    padding: 2px 10px 10px;
}


/* Chatbot-with-image */

.message-img {
  width: 250px;
  padding: 5px;
  border-radius: 5px;
}

.chat-body-img img {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 10px;
}

.chatbot-img-main p {
  padding-bottom: 0;
  margin-bottom: 0;
}

.opt-btn {
  width: 100%;
  /*height: 30px;*/
  line-height: normal;
  border-color: transparent;
  border-top: 1px solid #999;
  background: none;
  color: #222;
  font-weight: 500;
}

.opt-btn:hover {
  background-color: #e6f0fb;
}

/* Active (on click) */
.opt-btn:active {
  background-color: #e6f0fb;
  transform: scale(0.95); /* optional: slight button press effect */
}

.chatbot-img-main span {
  font-weight: 400;
  color: #999;
  font-size: 14px;
}

.btn-primary {
  padding: 0.75rem;
  font-size: 1.1rem;
  border-radius: 1rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:disabled {
  background-color: #a0aec0;
  border-color: #a0aec0;
  cursor: not-allowed;
}

.btn-primary:not(:disabled):hover {
  background-color: #0b5ed7;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

    @media (max-width: 576px) {
      .container {
        padding: 1.5rem 1rem 2rem;
        max-width: 100%;
        border-radius: 0.8rem;
      }

      .form-section {
        padding: 1.25rem 1.5rem;
      }

      .list-group-item.radio-label {
        font-size: 1rem;
        padding: 0.85rem 1rem;
      }
    }

.message-img {
    margin: 10px;
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
}

.user-message {
    background-color: #e0f7fa;
    align-self: flex-end;
    text-align: right;
}

.bot-message {
    background-color: #f1f1f1;
    align-self: flex-start;
}


.user-message {
    margin-bottom: 10px;
    background: rgb(73, 115, 191);
    padding: 12px 24px;
    border-radius: 12px 12px 0px;
    float: right;
    max-width: 75%;
    overflow-wrap: break-word;
    vertical-align: middle;
    display: inline-block;
    letter-spacing: 0.05px;
    line-height: 1.4;
    border: 0px;
    color: rgb(255, 255, 255);
    font-family: Poppins, sans-serif;
    font-size: 13px;
}

.bot-message {
    background: rgb(230, 239, 255);
    max-width: 100%;
    color: rgb(0, 0, 0);
    border-radius: 12px 12px 12px 0px;
    padding: 12px 24px;
    float: left;
    box-sizing: border-box;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    -webkit-box-pack: center;
    justify-content: center;
    letter-spacing: 0.05px;
    line-height: 1.4;
    word-break: break-word;
    text-align: left;
}

.chatbot-body
{
    height: 500px; /* or whatever fixed height you want */
  overflow-y: auto;
}
.chat-messages {
  height: 400px; /* or whatever fixed height you want */
  overflow-y: auto;
}

.chatbot-body::-webkit-scrollbar {
  display: none;              /* Chrome, Safari, Edge */
}

