/* ================== Footer ================== */
footer {
  animation: fadeInUp 1s ease-in-out;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
footer a:hover {
  text-decoration: underline;
  transition: all 0.3s ease;
}
footer .social-icon {
  font-size: 20px;
  margin-right: 15px;
  transition: transform 0.3s ease;
}
footer .social-icon:hover {
  transform: scale(1.2);
}
footer .facebook {
  color: #1877f2;
}
footer .tiktok {
  color: #000;
}
footer .instagram {
  color: #e1306c;
}
footer .row > div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
footer .row {
  row-gap: 2rem;
}
footer .row > div ul li a {
  transition: all 0.3s ease;
  display: inline-block;
}
footer .row > div ul li a:hover {
  transform: translateX(5px);
  color: #dc3545 !important;
  text-decoration: none !important;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  color: #000;
  font-size: 18px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
  text-decoration: none !important;
}
.social-icon:hover {
  transform: scale(1.15);
}
.social-icon.facebook:hover {
  background-color: #1877f2;
  color: #fff;
}
.social-icon.tiktok:hover {
  background-color: #000000;
  color: #fff;
}
.social-icon.instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
}

/* ================== Chatbox ================== */
.chatbox {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1001;
  touch-action: none;
  transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1), top 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.chatbox.dragging {
  opacity: 0.9;
  box-shadow: 0 0 25px rgba(0,0,0,0.3);
  transition: none;
}
.chatbox.auto-positioning {
  transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1), top 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.lenup-chat-btn {
  background-color: #dc3545;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lenup-chat-btn:hover {
  transform: scale(1.1);
  background: #c82333;
}
.chat-window {
  position: absolute;
  width: 320px;
  min-width: 250px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 100px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-sizing: border-box;
}
.chat-window.active {
  opacity: 1;
  transform: scale(1);
}
.chat-window.right-side {
  left: 70px;
  right: auto;
  bottom: 0;
  top: auto;
  transform-origin: left bottom;
}
.chat-window.left-side {
  right: 70px;
  left: auto;
  bottom: 0;
  top: auto;
  transform-origin: right bottom;
}
.chat-header {
  background: #dc3545;
  color: white;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-body {
  padding: 15px;
  height: 300px;
  overflow-y: auto;
  background: #f9f9f9;
}
.welcome-message {
  background: #e9ecef;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
}
.chat-messages {
  margin-bottom: 15px;
}
.message {
  margin: 5px 0;
  padding: 8px 12px;
  border-radius: 10px;
  max-width: 80%;
}
.message.user {
  background: #dc3545;
  color: white;
  margin-left: auto;
  margin-right: 10px;
  text-align: right;
}
.message.bot {
  background: #e9ecef;
  margin-right: auto;
  margin-left: 10px;
}
.quick-questions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}
.quick-question {
  background: #e9ecef;
  border: none;
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}
.quick-question:hover {
  background: #dc3545;
  color: white;
}
.chat-input {
  display: flex;
  gap: 8px;
}
.chat-input input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 20px;
}
.send-btn {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================== Back to Top ================== */
#backToTop {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: 1000;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
#backToTop:hover {
  transform: scale(1.1);
  background: #c82333;
}
