/* Enhanced FAQ Section - EventsXp Brand Compliant */

/* Main container and section */
.faq-section {
  padding: 120px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafb 100%);
  position: relative;
  overflow: hidden;
}

.faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 15% 25%,
      rgba(19, 142, 158, 0.04) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 85% 75%,
      rgba(19, 142, 158, 0.03) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.faq-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Enhanced Section Header */
.faq-header {
  text-align: center;
  margin-bottom: 80px;
}

.faq-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #000000;
  margin-bottom: 20px;
  line-height: 1.2;
  position: relative;
}

.faq-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #138e9e;
  border-radius: 2px;
}

.faq-subtitle {
  font-size: 1.3rem;
  color: #666666;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
}

/* Enhanced Search Container */
.faq-search-container {
  max-width: 600px;
  margin: 0 auto 60px;
  position: relative;
}

.faq-search {
  width: 100%;
  padding: 18px 60px 18px 24px;
  border: 2px solid #e5e7eb;
  border-radius: 50px;
  font-size: 1rem;
  color: #000000;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-search:focus {
  outline: none;
  border-color: #138e9e;
  box-shadow: 0 8px 30px rgba(19, 142, 158, 0.15);
  transform: translateY(-2px);
}

.faq-search::placeholder {
  color: #999999;
}

.faq-search-icon {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: #138e9e;
  font-size: 1.2rem;
  pointer-events: none;
  transition: all 0.3s ease;
}

.faq-search:focus + .faq-search-icon {
  color: #138e9e;
  transform: translateY(-50%) scale(1.1);
}

/* Modern Category Filter Pills */
.faq-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 60px;
  justify-content: center;
}

.faq-category {
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #666666;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.faq-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(19, 142, 158, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.faq-category:hover::before {
  left: 100%;
}

.faq-category.active {
  background: #138e9e;
  color: #ffffff;
  border-color: #138e9e;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(19, 142, 158, 0.3);
}

.faq-category:hover:not(.active) {
  background: #f8fafb;
  border-color: #138e9e;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(19, 142, 158, 0.1);
}

/* Enhanced FAQ List Grid */
.faq-list {
  display: grid;
  gap: 24px;
  margin-bottom: 80px;
}

/* Individual FAQ Item - Card Design */
.faq-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
}

.faq-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: #138e9e;
  transition: width 0.4s ease;
}

.faq-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(19, 142, 158, 0.12);
  border-color: #138e9e;
}

.faq-item:hover::before {
  width: 100%;
}

.faq-item.active {
  border-color: #138e9e;
  box-shadow: 0 12px 40px rgba(19, 142, 158, 0.15);
}

.faq-item.active::before {
  width: 100%;
}

/* Enhanced Question Styling */
.faq-question {
  padding: 28px 32px;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
  position: relative;
}

.faq-item.active .faq-question {
  background: linear-gradient(
    135deg,
    rgba(19, 142, 158, 0.02),
    rgba(19, 142, 158, 0.01)
  );
  border-bottom: 1px solid #f0f0f0;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #000000;
  padding-right: 20px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.faq-item:hover .faq-question h3 {
  color: #138e9e;
}

.faq-item.active .faq-question h3 {
  color: #138e9e;
}

/* Enhanced Toggle Icon */
.faq-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8fafb, #e5e7eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #138e9e;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.faq-item:hover .faq-toggle {
  background: #138e9e;
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(19, 142, 158, 0.3);
}

.faq-item.active .faq-toggle {
  background: #138e9e;
  color: #ffffff;
  transform: rotate(45deg) scale(1.1);
  box-shadow: 0 4px 15px rgba(19, 142, 158, 0.4);
}

.faq-toggle i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

/* Enhanced Answer Styling */
.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
}

.faq-answer p {
  margin: 0;
  padding: 0 32px 32px 32px;
  color: #666666;
  line-height: 1.7;
  font-size: 1.05rem;
  position: relative;
}

.faq-answer p::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #138e9e, transparent);
  border-radius: 2px;
}

/* Enhanced CTA Section */
.faq-cta {
  background: linear-gradient(135deg, #138e9e 0%, #0f7a87 100%);
  padding: 60px 40px;
  text-align: center;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(19, 142, 158, 0.2);
}

.faq-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.faq-cta-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.faq-cta-text {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.btn--primary {
  background: #ffffff;
  color: #138e9e;
  border: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  background: #f8fafb;
}

.btn--primary i {
  transition: transform 0.3s ease;
}

.btn--primary:hover i {
  transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .faq-title {
    font-size: 3rem;
  }

  .faq-question {
    padding: 24px 28px;
  }

  .faq-answer p {
    padding: 0 28px 28px 28px;
  }
}

@media (max-width: 768px) {
  .faq-section {
    padding: 80px 0;
  }

  .faq-header {
    margin-bottom: 60px;
  }

  .faq-title {
    font-size: 2.5rem;
  }

  .faq-subtitle {
    font-size: 1.1rem;
  }

  .faq-search-container {
    margin-bottom: 40px;
  }

  .faq-categories {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 40px;
    -webkit-overflow-scrolling: touch;
  }

  .faq-categories::-webkit-scrollbar {
    height: 4px;
  }

  .faq-categories::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
  }

  .faq-categories::-webkit-scrollbar-thumb {
    background: #138e9e;
    border-radius: 2px;
  }

  .faq-question {
    padding: 20px 24px;
  }

  .faq-question h3 {
    font-size: 1.1rem;
    padding-right: 16px;
  }

  .faq-toggle {
    width: 36px;
    height: 36px;
  }

  .faq-answer p {
    padding: 0 24px 24px 24px;
    font-size: 1rem;
  }

  .faq-cta {
    padding: 40px 24px;
  }

  .faq-cta-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .faq-section {
    padding: 60px 0;
  }

  .faq-container {
    padding: 0 16px;
  }

  .faq-title {
    font-size: 2rem;
  }

  .faq-search {
    padding: 16px 50px 16px 20px;
  }

  .faq-search-icon {
    right: 20px;
  }

  .faq-category {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  .faq-question {
    padding: 18px 20px;
  }

  .faq-question h3 {
    font-size: 1rem;
  }

  .faq-toggle {
    width: 32px;
    height: 32px;
  }

  .faq-answer p {
    padding: 0 20px 20px 20px;
  }

  .faq-cta {
    padding: 32px 20px;
  }
}

/* Animation for FAQ items appearing */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-item {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.faq-item:nth-child(1) {
  animation-delay: 0.1s;
}
.faq-item:nth-child(2) {
  animation-delay: 0.2s;
}
.faq-item:nth-child(3) {
  animation-delay: 0.3s;
}
.faq-item:nth-child(4) {
  animation-delay: 0.4s;
}
.faq-item:nth-child(5) {
  animation-delay: 0.5s;
}
.faq-item:nth-child(6) {
  animation-delay: 0.6s;
}

/* Search highlight styling */
.faq-item.search-highlight {
  border-color: #138e9e;
  background: linear-gradient(
    135deg,
    rgba(19, 142, 158, 0.03),
    rgba(19, 142, 158, 0.01)
  );
}

.search-match {
  background: rgba(19, 142, 158, 0.2);
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 600;
}
