/* FAQ Page Styles */
.faq-banner {
  background: linear-gradient(135deg, #0a2463 0%, #3e92cc 100%);
  position: relative;
  overflow: hidden;
}

.faq-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../images/patterns/dots-pattern.svg");
  background-size: 200px;
  opacity: 0.1;
  z-index: 0;
}

/* FAQ Search Container */
.faq-search-container {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  padding: 15px;
  position: relative;
}

.faq-search-container .input-group {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.faq-search-container .input-group-text {
  border: none;
  font-size: 18px;
  color: #555;
}

.faq-search-container .form-control {
  border: none;
  font-size: 16px;
  padding: 12px 15px;
  height: auto;
}

.faq-search-container .form-control:focus {
  box-shadow: none;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  background: white;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-height: 300px;
  overflow-y: auto;
}

.search-suggestions .list-group-item {
  cursor: pointer;
  border-left: none;
  border-right: none;
  transition: background-color 0.2s;
}

.search-suggestions .list-group-item:hover {
  background-color: #f8f9fa;
}

/* FAQ Categories */
.faq-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
}

.category-btn {
  background-color: transparent;
  border: 1px solid #e0e0e0;
  border-radius: 30px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  transition: all 0.3s;
  cursor: pointer;
}

.category-btn:hover {
  background-color: #f5f5f5;
  color: #333;
}

.category-btn.active {
  background-color: var(--bs-primary);
  color: white;
  border-color: var(--bs-primary);
}

/* FAQ Sections */
.faq-section {
  margin-bottom: 40px;
}

.faq-section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eaeaea;
  color: #333;
}

/* Accordion Styling */
.accordion-item {
  border: none;
  background-color: transparent;
  margin-bottom: 15px;
}

.accordion {
  --bs-accordion-border-width: 0;
  --bs-accordion-border-radius: 8px;
  --bs-accordion-inner-border-radius: 8px;
  --bs-accordion-btn-padding-x: 1.5rem;
  --bs-accordion-btn-padding-y: 1.25rem;
  --bs-accordion-active-color: var(--bs-primary);
  --bs-accordion-active-bg: rgba(var(--bs-primary-rgb), 0.05);
}

.accordion-button {
  background-color: #f8f9fa;
  border-radius: 8px !important;
  font-weight: 600;
  color: #333;
  padding: 20px 25px;
  box-shadow: none;
  border: 1px solid #eaeaea;
}

.accordion-button:not(.collapsed) {
  box-shadow: none;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-color: #e0e0e0;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(var(--bs-primary-rgb), 0.5);
}

.accordion-button::after {
  background-size: 16px;
  width: 16px;
  height: 16px;
  transition: all 0.3s;
}

.accordion-body {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-top: none;
  padding: 25px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.accordion-body p {
  color: #555;
  margin-bottom: 1rem;
}

.accordion-body ul,
.accordion-body ol {
  color: #555;
  padding-left: 1.5rem;
}

.accordion-body li {
  margin-bottom: 0.5rem;
}

/* Still Have Questions Section */
.still-have-questions {
  background-color: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #eaeaea;
}

.still-have-questions h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

.still-have-questions p {
  color: #666;
  font-size: 16px;
}

/* Chat Modal */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 400px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 15px;
}

.message {
  margin-bottom: 15px;
  display: flex;
}

.message.user {
  justify-content: flex-end;
}

.message-content {
  max-width: 80%;
  padding: 12px 15px;
  border-radius: 12px;
  position: relative;
}

.message.agent .message-content {
  background-color: #e9ecef;
  border-top-left-radius: 0;
}

.message.user .message-content {
  background-color: var(--bs-primary);
  color: white;
  border-top-right-radius: 0;
}

.message-time {
  font-size: 12px;
  color: #aaa;
  display: block;
  margin-top: 5px;
}

.message.user .message-time {
  color: rgba(255, 255, 255, 0.7);
}

.chat-input-container {
  display: flex;
  gap: 10px;
}

.send-btn {
  padding: 0.375rem 1rem;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  .faq-categories {
    overflow-x: auto;
    padding-bottom: 10px;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .category-btn {
    white-space: nowrap;
  }

  .accordion-button {
    padding: 15px;
    font-size: 15px;
  }

  .accordion-body {
    padding: 15px;
  }

  .still-have-questions {
    padding: 20px !important;
  }
}
