.testimonial-slider {
  transition: transform 500ms ease-in-out;
}

@media (max-width: 767px) {
  .testimonial-slider {
    display: flex;
  }
}

.faq-page {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Changed to 3x2 grid */
  gap: 1.5rem;
  padding: 0 1rem;
}

.zip-input-container {
  position: relative;
}

.zip-error {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fee2e2;
  color: #dc2626;
  padding: 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  z-index: 10;
  display: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.zip-error.show {
  display: block;
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#chat-modal {
  /* Initial state - fully translated down and invisible */
  transform: translateY(100%);
  opacity: 0;
  /* Smooth transition for both transform and opacity */
  transition: transform 0.5s ease-in-out, opacity 0.3s ease-in-out;
  /* Hide it properly when not visible */
  display: none;
}

#chat-modal.active {
  /* Visible state - normal position and fully visible */
  transform: translateY(0);
  opacity: 1;
  display: flex;
}

.chat-messages {
  scroll-behavior: smooth;
}

.chat-messages {
  position: relative;
  width: 100%;
  padding-bottom: 50px;
  /* Remove all scroll-related properties */
  overflow: visible;
  height: auto;
  max-height: none;
  -webkit-overflow-scrolling: auto;
}

@keyframes typing {
  0% {
    transform: scale(1);
    opacity: 0.2;
    box-shadow: 0 0 0 rgba(156, 163, 175, 0);
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
    box-shadow: 0 0 8px rgba(156, 163, 175, 0.6);
  }
  100% {
    transform: scale(1);
    opacity: 0.2;
    box-shadow: 0 0 0 rgba(156, 163, 175, 0);
  }
}

.typing-dot {
  animation: typing 1.4s infinite;
}

.typing-dot:nth-child(1) {
  animation-delay: 0s;
}

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

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

.typing-dot {
  box-shadow: 0 0 0 rgba(156, 163, 175, 0);
  transition: box-shadow 0.3s ease;
}

.typing-dot.animate-glow {
  box-shadow: 0 0 8px rgba(156, 163, 175, 0.6);
}

/* If you have a container wrapping chat-messages, ensure it doesn't scroll */
.chat-container {
  overflow: visible;
  width: 100%;
  background: white;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1),
    0 -2px 4px -1px rgba(0, 0, 0, 0.06);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.chat-container {
  animation: slideUp 0.5s ease-out forwards;
  transform-origin: bottom;
}

/* Initially hide the chat container */
.chat-container.hidden {
  transform: translateY(100%);
  opacity: 0;
}

#chat-wrapper {
  transition: opacity 0.3s ease-out;
  transform: translateY(100%);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#chat-wrapper.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 767px) {
  .faq-page {
    grid-template-columns: 1fr;
  }
}

.slide-left {
  animation: slideLeft 0.3s ease-out forwards;
}

.slide-right-enter {
  animation: slideRightEnter 0.3s ease-out forwards;
}

@keyframes slideLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

@keyframes slideRightEnter {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}
