/* Floating Button */
.chatbot-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--thm-base);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    color: white;
    font-size: 28px;
    text-align: center;
    line-height: 60px;
    cursor: pointer;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s;
    bottom: 80px;
}
.chatbot-button:hover {
    transform: scale(1.1);
}

/* Chat Window */
.chatbot-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    max-height: 520px;
    background: white;
    border-radius: 15px;
    box-shadow: 0px 8px 25px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #ddd;
    animation: fadeIn 0.3s ease-in-out;
    z-index: 1000;
}

/* Header */
.chat-header {
    background: linear-gradient(to right, rgb(228, 152, 91), rgb(255, 222, 161));
    color: white;
    padding: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chat-logo {
   max-height: 100%;
   max-width: 150px;
   margin-right: 8px;
}
.chat-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.chat-header button,
.chat-close {
    background: none;
    border: none;
    color: black;
    font-size: 36px;
    cursor: pointer;
    font-weight: bold;

}

/* Body */
.chat-body {
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: #bbb #f9f9f9;
}
.chat-body::-webkit-scrollbar {
    width: 6px;
}
.chat-body::-webkit-scrollbar-thumb {
    background-color: #bbb;
    border-radius: 10px;
}

/* Messages */
.chat-message {
    margin: 8px 0;
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 85%;
    animation: fadeUp 0.3s ease-in-out;
    word-wrap: break-word;
    font-size: 14px;
}
.bot {
    background: #caa25c;
    color: white;
    align-self: flex-start;
}
.user {
    background: #e9ecef;
    color: black;
    align-self: flex-end;
}

/* Footer */
.chat-footer {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    background: white;
}
.chat-footer input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid #ccc;
    outline: none;
    font-family: sans-serif;
    font-size: 14px;
}
.chat-footer button {
    margin-left: 8px;
    background: var(--thm-base);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

/* Suggestion Chips */
.suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    align-items: flex-start;
}
.suggestion-chip {
    background: #907b1b;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0px 3px 8px rgba(0,0,0,0.15);
}
.suggestion-chip:hover {
    background: white;
    transform: scale(1.05);
    color: black;
}

/* Contact Form */
.contact-form {
    background: #bd787f;
    padding: 12px;
    border-radius: 12px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    width:88%;
}
.contact-form h4 {
    margin: 0;
    font-size: 14px;
    text-align: center;
}
.contact-form input {
    padding: 8px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
}
.contact-form button {
    padding: 8px;
    border: none;
    border-radius: 8px;
    background: white;
    color: #c54e5a;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}
.contact-form button:hover {
    background: #ffccd5;
}
#sendBtn img {
  width: 20px;   
  height: 20px;
}
#chatbotBtn img {
  width: 40px;   
  height: 40px;
}
/* Simple style for chat icons */
#chatRetry img,
img[alt="Chat"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
}
.chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.option-btn {
  background: #937b7b;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}


/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95);}
    to { opacity: 1; transform: scale(1);}
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px);}
    to { opacity: 1; transform: translateY(0);}
}

/* Mobile */
@media screen and (max-width: 480px) {
    .chatbot-window {
        width: 90%;
        right: 5%;
        bottom: 80px;
    }
}
