body {
    font-family: Ubuntu, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center; /* Optional for centering other content */
    align-items: center; /* Optional for centering other content */
}

.chat-container {
    width: 100%;
    /* max-width: 500px; */
    background-color: white;
    border-radius: 10px;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
    /*display: flex;*/
    flex-direction: column;
    position: fixed; 
    bottom: 0px; 
    right: 0px; 
    overflow: hidden;
    z-index: 1000;
}

.chat-header {
    background-color: #A40063; /* Sky blue */
    color: white;
    font-weight: 500;
    padding: 14px 20px;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-header > span > img {
    padding: 11px;
    background-color: #fff;
    border-radius: 8px;
    display: inline-block;
    vertical-align: middle;
}

.chat-controls{
display: flex;}


.chat-header-title {
    font-weight: bold;
}

.chat-header-buttons {
    display: flex;
    gap: 10px; /* Space between buttons */
}

.chat-control-button {
    background-color: transparent; /* No background color */
    color: white; /* Button color */
    border: none; /* Remove border */
    font-size: 18px; /* Button size */
    cursor: pointer; /* Pointer cursor on hover */
    padding: 5px 10px; /* Add padding */
    border-radius: 5px; /* Round corners */
    transition: background-color 0.3s; /* Smooth background transition */
}

.chat-control-button:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Light background on hover */
}

.chat-display {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto; /* Enable vertical scrolling */
    /* border-top: 1px solid #ccc; */
    border-bottom: 1px solid #ccc;
    font-size: 14px;
    line-height: 20px;
    max-height: 300px; 
}

.bot-message, .user-message {
    margin-bottom: 10px;
}

.bot-message {
    display: block; /* Flexbox for aligning image and text */
    align-items: flex-start;
    color: #333;
    /* background: #EAEAEA; */
    /* padding: 10px 15px; */
    border-radius: 5px;
    align-self: flex-start;
    align-items: center;
    width:calc(100% - 30px); /* Full width minus padding */
}
.welcome-message h3{font-size: 24px; font-weight: 400;margin:0px 0px 10px;}
.welcome-message p {
    font-size: 16px;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.2;
}
.welcome-message p:last-child{margin-bottom: 0px;}
.user-message {
    text-align: left;
    padding: 0;
    border-radius: 10px;
    align-self: flex-end;
    max-width: 40%; /* Restrict maximum width for readability */
    word-wrap: break-word; /* Ensure long words break */
    margin: 5px 0; /* Add spacing between messages */
    margin-left: auto;
    border-bottom-right-radius: 0;
    min-height: 25px;
    display: flex;
    align-items: center
}
.user-message .ai-response-container{
    border: 0px;
    background-color: #2453CB;
    color: #fff;
}
.ai-response-container a{color: #0900FF !important;}
.chatbot-icon {
    width: 50px; /* Adjust size */
    height: 50px;
    border-radius: 50%; /* Circular image */
    margin-right: 10px; /* Space between image and text */
    flex-shrink: 0; /* Prevent the image from shrinking */
}

.message-content {
    background: #f4f4f4; /* Matches the bot-message background */
    padding: 0;
    font-size: 14px;
    max-width: calc(100% - 50px); /* Prevents text overflow */
}

.typing-indicator {
    display: none;
    font-style: italic;
    font-size: 14px;
    color: gray;
    margin-top: 10px;
}

.chat-input-container {
    display: flex;
    padding: 10px;
    background-color: #fff;
}

#user-input {
    flex-grow: 1;
    padding: 13px 15px;
    border: 1px solid #ccc;
    border-radius: 22px;
    outline: none;
}

#send-button {
    background-color: transparent;
    /* color: white; */
    border: none;
    /* border-radius: 5px; */
    /* padding: 10px 15px; */
    margin-left: 10px;
    cursor: pointer;
}
#send-button img{display: inline-block; vertical-align: middle;}
/* #send-button:hover {
    background-color: #005bb5;
} */

/* ===== Option Buttons ===== */
.options {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px; /* Add spacing below the options */
}

.option-button {
    padding: 7px 10px;
    color: #2453CB; 
    background-color: #F1F1F1; 
    border: 1px solid #2453CB; 
    border-radius: 8px;
    cursor: pointer;
    /* box-shadow: 2px 4px 6px rgba(0, 0, 6, 0.3);  */
    transition: all 0.3s ease; min-height: 40px;
}
.option-button:hover {
    background-color:  #f4f4f4; /* Slight blue tint on hover */
    color: #0056b3; 
    border-color: #0056b3; /* Darker blue for the border on hover */
    box-shadow: 2px 4px 10px rgba(0, 0, 6, 0.3); 
}
.option-button img {
    display: inline-block;
    vertical-align: middle;
    padding-right: 5px;
    max-width: 24px;
    max-height: 24px;
    margin: 0;
}
.option-button > span {
    display: inline-block;
    vertical-align: middle;
}
.option-button.active-option {
    background-color: #f4f4f4; /* Darker blue when clicked */
}

/* ===== Suboption Buttons ===== */
.suboptions {
    margin-top: 10px; /* Space above suboptions */
    margin-bottom: 15px; 
    /* display: flex; */
    /* flex-direction: column;  */
    gap: 10px; /* Space between each suboption */
}

.suboption-button {
    padding: 10px 20px;
    color: #003366; /* Blue shade for the title */
    background-color: transparent; /* Transparent background */
    border: 1px solid #003366; /* Blue shade for the border */
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 2px 4px 6px rgba(0, 0, 6, 0.3); /* Shadow effect */
    margin-top: 10px;
    transition: all 0.3s ease; /* Smooth transition for hover effect */
}

.suboption-button:hover {
    background-color:  #f4f4f4; /* Slight blue tint on hover */
    color: #0056b3; /* Darker blue for the title on hover */
    border-color: #0056b3; /* Darker blue for the border on hover */
}

/* ===== Disabled State (LOCKED) ===== */
.option-button:disabled,
.suboption-button:disabled {
    opacity: 0.5;                /* Faded look */
    cursor: not-allowed;         /* "No" cursor */
    background-color: #e0e0e0;   /* Greyed background */
    border-color: #aaa;          /* Light border */
    color: #666;                 /* Grey text */
    box-shadow: none;            /* Remove shadow */
}

/* Welcome message styling */
.bot-message.welcome-message {
    color: #333;             /* Optional: Customize the text color */
    margin-bottom: 15px;     /* Adds spacing below the message */
    line-height: 1.3;        /* Improves readability */
}

.hidden {
    display: none;
}

#minimize-button, #maximize-button, #clear-button {
    border: none;
    background-color: #A40063; /* Sky blue */
    font-size: 15px;
    color:white
}
.chatbot-icon-in-ai-res {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 0px;
    flex-shrink: 0;
}
.user-message .chatbot-icon-in-ai-res {
    margin-left: 0px;
    margin-right: 0;
}
.user-message {justify-content: flex-end;}
.user-message .ai-response-container{width: 100%;}
.userTime{text-align: end;}
.botTime{text-align: start;}
.time-stamp-css{
   /* text-align: end; */
    font-size: 10px;
    margin-top: 3px;
    margin-bottom: 10px;
    }
    .ai-response-container {
        padding: 10px;
        border: 1px solid #A40063;
        border-radius: 8px;
    }
    .mb-0{
    margin-bottom: 0 !important
    }
    .text-align-right{
    text-align: right;
    }

    .w-85{
    width: 85%;
    }
    .refresh-icon{
        width:20px;
        height:20px;
        margin-left:10px;
       }
       .d-flex{
        display:flex
       }
       .typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: #555;
  border-radius: 50%;
  display: inline-block;
  animation: bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
  animation-delay: -0.32s;
}
.typing-indicator span:nth-child(2) {
  animation-delay: -0.16s;
}
.typing-indicator span:nth-child(3) {
  animation-delay: 0;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}
#chatbot-avatar {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        font-size: 36px;
        cursor: pointer;
        animation: bounce 2s infinite;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;       /* Make circle */
        background-color: purple; /* Purple background */
        color: white;             /* Emoji color */
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        z-index: 9999;
        display: none;
      }
      @keyframes bounce {
        0%,20%,50%,80%,100% {transform: translateY(0);}
        40% {transform: translateY(-8px);}
        60% {transform: translateY(-4px);}
      }
      #chatbot-window {
        position: fixed;
        bottom: 80px;
        right: 20px;
        width: 300px;
        height: 400px;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        display: none;
        flex-direction: column;
        overflow: hidden;
        z-index: 9999;
      }
      .option-button, .suboption-button,
      .chat-input-container input{font-family: Ubuntu, sans-serif !important;}
      button.btnMinimize{
            background-color: #a40063;
            color: #fff;
            font-size: 30px;
            line-height: 15px;
            border: 0px;
        }
        button.btnReset{
            background-color: #a40063;
            color: #fff;
            font-size: 16px;
            line-height: 15px;
            border: 0px;
        }
      .chatbot-header {
        background: #4CAF50;
        color: white;
        padding: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
      .chatbot-header button {
        background: none;
        border: none;
        color: white;
        font-size: 18px;
        cursor: pointer;
      }
      .chatbot-body {
        display: flex;
        flex-direction: column;
        height: 100%;
      }
      #chatbot-messages {
        flex: 1;
        padding: 10px;
        overflow-y: auto;
        font-size: 14px;
      }
      #chatbot-input {
        border: none;
        border-top: 1px solid #ddd;
        padding: 10px;
        outline: none;
      }
      /* #chat-container {
  display: none; 
} */
/* ====== Schedule Call Form Styling ====== */
.schedule-form {
    background-color: #EAEAEA;
    border-radius: 10px;
    /* padding: 15px; */
    margin: 10px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: #333;
    border: 1px solid #e0e0e0;
    animation: fadeIn 0.3s ease-in-out;
}
.schedule-form form {padding : 15px;}
.schedule-form h3 {
    margin-top: 0;
    /* color: #fff; */
    font-size: 20px;
    text-align: center;
    font-weight: 600;
    border-bottom: 1px solid #ccc;
    /* background-color: #000; */
    padding: 10px;
    border-radius: 8px 8px 0px 0;
}
.successMsgStyle{
    text-align: center;
    padding: 10px 15px;
    border-radius: 12px;
    background: #e6f9ec;
    color: #1b5e20;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.schedule-form form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.schedule-form label {
    font-weight: 400;
    font-size: 14px;
    color: #000;
}

/*Loader Animation*/
.typing {
  display: flex;
  gap: 6px;
  align-items: center;
}

.typing .dot {
  width: 10px;
  height: 10px;
  background: #a40063;
  border-radius: 50%;
  animation: blink 1.4s infinite both;
}

.typing .dot:nth-child(2) { animation-delay: 0.2s; }
.typing .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0% { opacity: .2; transform: translateY(0); }
  20% { opacity: 1; transform: translateY(-4px); }
  100% { opacity: .2; transform: translateY(0); }
}
/* ringing animation */
.callBtnFooter {
    margin-left: 12px;
    border: 0px;
    background-color: #a40063;
    border-radius: 5px;
    width: 37px;
    height: 37px;
}
.callBtnFooter span {
  display: inline-block;
  font-size: 24px;
  color: white;                 /* change icon color here */
  animation: ringPhone .5s infinite linear; 
}
.callBtnFooter span > img{
    width: 20px;
    filter: brightness(0) invert(1);
}
@keyframes ringPhone {
   0% { transform: rotate(0); }
  20% { transform: rotate(15deg); }
  40% { transform: rotate(-15deg); }
  60% { transform: rotate(10deg); }
  80% { transform: rotate(-10deg); }
  100% { transform: rotate(0); }
}
/* 🎯 Updated Input Styles — text, email, tel, date, time, number, select */
.schedule-form input[type="text"],
.schedule-form input[type="email"],
.schedule-form input[type="tel"],
.schedule-form input[type="date"],
.schedule-form input[type="time"],
.schedule-form input[type="number"],
.schedule-form select {
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    outline: none;
    font-size: 14px;
    font-family: Ubuntu, sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 20px;
    width: calc(100% - 20px);
}
.schedule-form .from-group {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
}
.schedule-form .from-group > div {
    width: 50%;
}
.schedule-form input:focus,
.schedule-form select:focus {
    border-color: #A40063;
    box-shadow: 0 0 5px rgba(164, 0, 99, 0.3);
}

.schedule-form select {
    appearance: none; /* Removes default arrow on some browsers */
    cursor: pointer;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

#submitForm,
#cancelForm {
    flex: 1;
    padding: 8px 12px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
}

#submitForm {
    background-color: #A40063;
    color: #fff;
}

#submitForm:hover {
    background-color: #870053;
}

#cancelForm {
    background-color: #f4f4f4;
    color: #333;
    border: 1px solid #ccc;
}

#cancelForm:hover {
    background-color: #e8e8e8;
}

.form-message {
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    color: #0078d4;
}

/* Animation for smooth entry */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.schedule-form div[id="schedule-call-time"]{
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.schedule-form div[id="duration-div"]{
   width:50%;
}

.schedule-form input[type="number"]{
width:calc(100% - 20px);
}

.schedule-form button[type="submit"]{
    padding: 5px;
    background-color: #2352CA;
    border-color: blue;
    color: white;
    border-radius: 8px;
    font-size: 15px;
}

  .schedule-form input[type="date"],
.schedule-form input[type="time"],
.schedule-form input[type="number"]{
height: 15px;
    margin-top: 5px;
}
.error-message {
  color: red;
  font-size: 0.9em;
  margin-top: 0px;
  margin-bottom: 3px;
}
.submitBtnContainer{margin-top: 10px;}
.submitBtnContainer button[type="submit"] {
    display: inline-block;
    width: 100%;
    font-size: 12px;
    padding: 12px 15px;
    background-color: #2453CB;
    border: 1px solid;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}
/* .submitBtnContainer button[type="submit"]:hover{background-color: #000; color: #fff;} */