@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
    background-color: #FFFFFF;
    font-family: "Poppins", sans-serif;
}


.chat-body {
    height: 85vh !important;
    width: 95%;
    margin: auto;
	overflow: auto !important;

}

.bot_message_section{
    width:80%;
}


.bot-message {
    background-color: white !important;
    max-width: 85%;
    /* border: 1px solid #1e7fc2 !important; */
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0%;
    color: #464A4F;
    padding: 5px 8px !important;
    background-color: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-top-right-radius: 10px !important;
    border-top-left-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
    box-shadow: 0px 1px 4px 0px #00000026;
}

.typing_loader{
    display: flex;
    align-items: center;
}

.bot-typing{
    background-color: white !important;
    width:80px !important;
    height:30px !important;
    display: flex;
    /* border: 1px solid #1e7fc2 !important; */
    font-weight: 400;
    font-size: 12px;
    line-height: 20px;
    letter-spacing: 0%;
    color: #464A4F;
    padding: 5px 5px !important;
    background-color: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-top-right-radius: 10px !important;
    border-top-left-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
    box-shadow: 0px 1px 4px 0px #00000026;
}

#bot-timestamp{
    text-align: right !important;
    font-size: 10px !important;
    max-width: 85%;
    display: flex !important;
    justify-content: flex-start !important;
}

.user_time{
    text-align: left !important;
    font-size: 10px !important;
    max-width: 85%;
    white-space: nowrap !important;
    display: flex !important;
    justify-content: flex-end !important;
    margin-right: 5px !important;
}

.chat-footer {
    border-top: 1px solid #eee;
    padding: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.chat-footer input {
    flex-grow: 1;
    border-radius: 20px;
}

.chat-footer i {
    font-size: 1.5rem;
    color: #00a5c3;
    cursor: pointer;
    align-self: center;
}

.input-group-text i {
    font-size: 1.2rem;
}

.email-container {
    background-color: #fffdfd;
    border-radius: 8px;
}

.input-group input:focus {
    box-shadow: none;
}

input:focus,
.form-control:focus {
    box-shadow: none;
    outline: none;
}

.input-group-text {
    cursor: pointer;
    display: contents !important;
}

.input-group {
    flex-shrink: 0;
    height: 40px !important;
}

.chat-box input::placeholder {
    font-size: 0.95rem;
    color: #999;
}

.circle-icon i {
    font-size: 18px;
    color: #000;
}

.email-input-group {
    border: 2px solid #00a5c3;
    border-radius: 50px;
    overflow: hidden;
}

.email-container {
    background-color: #e7f7fa;
    border: 2px solid #00a5c3;
    border-radius: 8px;
    padding: 1rem;
    /* ✅ This adds internal spacing */
}

.email-input-group .form-control,
.email-input-group .btn {
    border: none;
    box-shadow: none;
}

.email-input-group .form-control:focus {
    box-shadow: none;
}

.circle-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgb(233, 233, 233);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(77, 74, 74);
    font-size: 18px;
    padding: 0;
}

.circle-icon:hover {
    background-color: #ccc;
    color: #333;
}

.chat-box span.text-danger {
    color: #ff5722 !important;
}

.chat-avatar {
    height: 28px;
    width: 35px;
    object-fit: cover;
}

.user-avatar{
    height: 28px;
    width: 28px;
    object-fit: cover;
}

.user-message {
    max-width: 85%;
    min-width: auto !important;
    background: linear-gradient(135deg, #1e7fc2, #55caff) !important;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0%;
    color: #FFFFFF;
    padding: 5px 5px !important;
    border-top-right-radius: 10px !important;
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
    box-shadow: 0px 1px 4px 0px #00000026;
    text-align: left !important;
    margin: 5px !important;
}

.user_time{
    font-size: 10px !important;;
}

.email-container {
    background-color: #e7f7fa;
    border: 2px solid #00a5c3;
}

.card {
    border: none;
    padding:0px !important;
}

.rounded-pills {
    border: 1px solid #00a5c3 !important;
    width: 70% !important;
    margin: 8px 16px !important;
    background-color: #FFFFFF;
}

#send-btn{
    margin-top: 3px !important
}

#send-btn:hover {
    cursor: pointer !important;
    color: #000;
    transform: scale(1.2);
}

#hover:hover {
    cursor: pointer !important;
    color: #000;
    transform: scale(1.2);
}


/* Typing indicator animation */

.typing_bot{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px !important;
}

.bounce2 {
    animation: bounce2 2s ease infinite;
}

@keyframes bounce2 {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-30px);}
    60% {transform: translateY(-15px);}
}

.typing_indicator {
    display: flex;
    align-items: center;
    margin-left: 10px;
    animation: typingBounce 1s infinite;
}

.typing_indicator .dot {
    width: 8px;
    height: 8px;
    margin: 0 3px;
    background-color: #0077B6;
    border-radius: 50%;
    animation: bounce 1.5s infinite ease-in-out;
}

.typing_indicator .dot:nth-child(1) {
    animation-delay: 0s;
}

.typing_indicator .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing_indicator .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

hr{
    margin-bottom: 5px !important;
    margin-top: 5px !important;
}

.chat_form{
    width:100%;
    margin: 0 auto !important;
    padding: 2px 5px !important
}

.chat_form input{
    width: 100% !important;
    border-radius: 5px !important;
    height: 30px !important;
    padding: 5px 10px !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    display: flex;
}

.chat_form input::placeholder{
    font-size: 12px ;
    margin-top: -2px !important;
}

.chat_form label{
    font-size: 12px !important;
    margin-bottom: 3px !important;
    color: #333 !important;
}

#detailsSubmit{
    height: 30px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1e7fc2 !important;
}


/* width */
::-webkit-scrollbar {
  width: 5px;
  border-radius: 3px !important;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #ccc;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #ccc;
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px);}
    to { opacity: 1; transform: translateY(0);}
}


/* .welcome_bot{
    height: 60px
} */

.welcome_header{
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #333 !important;
    margin-bottom: 5px !important;
}

.welcome_note{
    font-size: 12px !important;
    color: #666 !important;
    margin-bottom: 5px !important;
}



/* Align message and avatar properly */
.message-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  /* gap: 8px; */
  margin-bottom: 12px;
}

/* For user messages aligned to the right */
.message-row.user {
  justify-content: flex-end;
}

/* Message bubble styles */
.message-bubble {
  max-width: 75%;
  padding: 10px 14px;
  /* border-radius: 15px; */
  font-size: 14px;
  line-height: 1.4;
  background-color: #e0f0ff;
  word-break: break-word;
  display: flex;
}

/* Bot message bubble */
.message-bubble.bot {
    background-color: white !important;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0%;
    color: #464A4F;
    padding: 5px 8px !important;
    background-color: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-top-right-radius: 10px !important;
    border-top-left-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
    box-shadow: 0px 1px 4px 0px #00000026;
}

/* Chat avatar image */
.message-avatar {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

#form-error-msg{
    color: red;
    font-size: 12px;
    text-align: center;
}

/* .chat_input_section{
    display: flex;
    align-items: baseline;
} */

.chat_input_section {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: auto;
}

.first_chat_form{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* .g-recaptcha{
    display: flex;
    justify-content: flex-end;
}

.g-recaptcha div{
    width: 100% !important;
    display: flex;
    justify-content: center;
} */


.g-recaptcha {
    transform: scale(1);
    transform-origin: 0 0;
  }

  @media (max-width: 400px) {
    .g-recaptcha {
      transform: scale(0.9);
    }
  }

  @media (max-width: 320px) {
    .g-recaptcha {
      transform: scale(0.8);
    }
  }

#rc-anchor-container{
    width: 100% !important;
}


.iti--show-flags{
    width: 100% !important;
}

#userNumber{
    padding-left:50px !important
}