/* ==========================================================================
   AIDER CREATIVE — Premium Interactive FAQ Section Styling
   ========================================================================== */

.faqs-section {
  position: relative;
  padding: 120px 0;
  background: #070709;
  overflow: hidden;
}

/* Background Ambient Glow & Mesh */
.faq-bg-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 750px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 94, 20, 0.12) 0%, rgba(230, 57, 70, 0.05) 50%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  animation: faqPulse 8s ease-in-out infinite alternate;
}

.faq-bg-glow-secondary {
  position: absolute;
  bottom: 10%;
  right: 5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.08) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

@keyframes faqPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -45%) scale(1.1);
    opacity: 1;
  }
}

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

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

.faq-badge {
  background: rgba(255, 94, 20, 0.08);
  color: #FF5E14;
  border: 1px solid rgba(255, 94, 20, 0.25);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(255, 94, 20, 0.15);
}

.faq-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FF5E14;
  box-shadow: 0 0 10px #FF5E14;
  animation: badgeBlink 1.5s infinite ease-in-out;
}

@keyframes badgeBlink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.faq-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.faq-title span.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 30%, #FF5E14 80%, #FF3600 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.faq-description {
  font-size: var(--text-base);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Controls Bar (Search + Categories) */
.faq-controls {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

/* Search Bar */
.faq-search-wrapper {
  position: relative;
  width: 100%;
  max-width: 580px;
}

.faq-search-input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  background: rgba(18, 18, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.faq-search-input::placeholder {
  color: #71717A;
}

.faq-search-input:focus {
  border-color: rgba(255, 94, 20, 0.6);
  background: rgba(22, 22, 28, 0.9);
  box-shadow: 0 0 30px rgba(255, 94, 20, 0.2), inset 0 0 15px rgba(255, 94, 20, 0.05);
}

.faq-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #A1A1AA;
  pointer-events: none;
  transition: color 0.3s ease;
}

.faq-search-input:focus ~ .faq-search-icon {
  color: #FF5E14;
}

.faq-search-clear {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #A1A1AA;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.faq-search-clear.visible {
  opacity: 1;
  visibility: visible;
}

.faq-search-clear:hover {
  background: rgba(255, 94, 20, 0.3);
  color: #FFFFFF;
}

/* Category Filter Pills */
.faq-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.faq-cat-btn {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  color: #A1A1AA;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
}

.faq-cat-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.faq-cat-btn.active {
  background: linear-gradient(135deg, rgba(255, 94, 20, 0.2) 0%, rgba(230, 57, 70, 0.15) 100%);
  color: #FF5E14;
  border-color: rgba(255, 94, 20, 0.5);
  box-shadow: 0 4px 15px rgba(255, 94, 20, 0.15);
}

/* FAQ Accordion Grid Container */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Individual FAQ Card */
.faq-card {
  position: relative;
  background: rgba(15, 15, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Cursor Spotlight Effect overlay */
.faq-card::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  transform: translate(-50%, -50%);
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 94, 20, 0.12) 0%, transparent 60%);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.faq-card:hover::before {
  opacity: 1;
}

.faq-card:hover {
  border-color: rgba(255, 94, 20, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 94, 20, 0.08);
}

.faq-card.active {
  background: rgba(20, 20, 26, 0.85);
  border-color: rgba(255, 94, 20, 0.5);
  box-shadow: 0 12px 35px -10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 94, 20, 0.15);
}

/* Accordion Trigger Button */
.faq-trigger {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  outline: none;
}

.faq-question-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.faq-num-badge {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #71717A;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.faq-card.active .faq-num-badge,
.faq-card:hover .faq-num-badge {
  color: #FF5E14;
  background: rgba(255, 94, 20, 0.12);
  border-color: rgba(255, 94, 20, 0.3);
}

.faq-question-text {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  font-weight: 700;
  color: #F4F4F5;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.faq-card.active .faq-question-text,
.faq-trigger:hover .faq-question-text {
  color: #FFFFFF;
}

.faq-icon-box {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #A1A1AA;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-icon-box svg {
  width: 18px;
  height: 18px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-card.active .faq-icon-box {
  background: linear-gradient(135deg, #FF5E14 0%, #FF3600 100%);
  border-color: #FF5E14;
  color: #FFFFFF;
  box-shadow: 0 0 15px rgba(255, 94, 20, 0.4);
}

.faq-card.active .faq-icon-box svg {
  transform: rotate(180deg);
}

/* Accordion Content Panel */
.faq-content {
  position: relative;
  z-index: 1;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  opacity: 0;
  padding: 0 28px;
}

.faq-card.active .faq-content {
  opacity: 1;
  padding: 0 28px 24px 28px;
}

.faq-answer-inner {
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}

.faq-answer-inner p {
  color: #A1A1AA;
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.faq-answer-inner p:last-child {
  margin-bottom: 0;
}

.faq-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.faq-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  color: #D4D4D8;
}

.faq-highlight-icon {
  color: #FF5E14;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Hidden state for filter/search */
.faq-card.hidden {
  display: none !important;
}

/* No Results Message */
.faq-no-results {
  display: none;
  text-align: center;
  padding: 50px 20px;
  background: rgba(18, 18, 22, 0.5);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: #A1A1AA;
}

.faq-no-results.visible {
  display: block;
}

.faq-no-results h4 {
  color: #FFFFFF;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

/* CTA Card below FAQ */
.faq-cta-card {
  margin-top: 60px;
  position: relative;
  background: linear-gradient(135deg, rgba(20, 20, 26, 0.9) 0%, rgba(28, 28, 36, 0.7) 100%);
  border: 1px solid rgba(255, 94, 20, 0.25);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  backdrop-filter: blur(16px);
  box-shadow: 0 15px 40px -15px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.faq-cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(255, 94, 20, 0.15), transparent 70%);
  pointer-events: none;
}

.faq-cta-content h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.faq-cta-content p {
  color: #A1A1AA;
  font-size: 0.95rem;
}

.faq-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #FF5E14 0%, #FF3600 100%);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(255, 94, 20, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

.faq-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 94, 20, 0.5);
  color: #FFFFFF;
}

.faq-cta-btn svg {
  transition: transform 0.3s ease;
}

.faq-cta-btn:hover svg {
  transform: translateX(4px);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .faqs-section {
    padding: 80px 0;
  }

  .faq-trigger {
    padding: 18px 20px;
    gap: 12px;
  }

  .faq-content {
    padding: 0 20px;
  }

  .faq-card.active .faq-content {
    padding: 0 20px 20px 20px;
  }

  .faq-num-badge {
    display: none;
  }

  .faq-cat-btn {
    padding: 8px 16px;
    font-size: 0.82rem;
  }

  .faq-cta-card {
    flex-direction: column;
    text-align: center;
    padding: 30px 24px;
  }

  .faq-cta-btn {
    width: 100%;
    justify-content: center;
  }
}
