/* FAQ Section Styles */
.faq-section {
  padding: 8rem 0;
  background: #fcfbfe;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

/* Dots pattern on the sides */
.faq-section::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 0;
  width: 240px;
  height: 80%;
  background-image: radial-gradient(#dbdaff 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  pointer-events: none;
  opacity: 0.75;
  mask-image: linear-gradient(to right, black 20%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 20%, transparent 100%);
  z-index: 1;
}

.faq-section::after {
  content: '';
  position: absolute;
  top: 10%;
  right: 0;
  width: 240px;
  height: 80%;
  background-image: radial-gradient(#dbdaff 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  pointer-events: none;
  opacity: 0.75;
  mask-image: linear-gradient(to left, black 20%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, black 20%, transparent 100%);
  z-index: 1;
}

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

.faq-header {
  text-align: center;
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq-section .section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: #6366f1;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.faq-section .section-badge:hover {
  transform: translateY(-1px);
  background: rgba(99, 102, 241, 0.1);
}

.faq-section .badge-icon {
  width: 0.95rem;
  height: 0.95rem;
  color: #6366f1;
  flex-shrink: 0;
}

.faq-section .section-title {
  font-size: 3.25rem;
  font-weight: 850;
  color: #0f172a;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

@media (max-width: 768px) {
  .faq-section {
    padding: 3.5rem 0;
  }
  .faq-section .section-title {
    font-size: 2.5rem;
  }
}

.highlight-text {
  background: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-section .section-subtitle {
  font-size: 1.125rem;
  color: #4b5563;
  font-weight: 400;
  max-width: 36rem;
  line-height: 1.5;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.05);
}

.faq-item[open] {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 15px 30px -10px rgba(99, 102, 241, 0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s ease;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.faq-icon-wrapper {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: #f5f3ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.faq-icon-wrapper svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #6366f1;
}

.faq-item[open] .faq-icon-wrapper {
  background: #6366f1;
}

.faq-item[open] .faq-icon-wrapper svg {
  color: #ffffff;
}

.faq-question-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.faq-question:hover .faq-question-text {
  color: #6366f1;
}

.faq-toggle {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-toggle svg {
  width: 1rem;
  height: 1rem;
  color: #64748b;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item[open] .faq-toggle {
  background: #ffffff;
  border-color: #e2e8f0;
}

.faq-item[open] .faq-toggle svg {
  transform: rotate(180deg);
  color: #4f46e5;
}

.faq-answer {
  padding: 0 1.5rem 1.5rem 5.5rem;
  color: #64748b;
  line-height: 1.625;
  font-size: 1rem;
  margin-top: -0.25rem;
  animation: slideDown 0.35s ease-out;
}

.faq-item[open] .faq-answer {
  max-height: none !important;
  overflow: visible !important;
}

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

/* FAQ Footer CTA styling */
.faq-footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 1.25rem 2rem;
  border-radius: 9999px;
  margin-top: 3.5rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.03);
}

.cta-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.faq-footer-cta .cta-icon-wrapper {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #f5f3ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-footer-cta .cta-icon-wrapper svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #6366f1;
}

.cta-text h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}

.cta-text p {
  font-size: 0.875rem;
  color: #64748b;
  margin: 2px 0 0 0;
  line-height: 1.3;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #6366f1;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cta-button .arrow-icon {
  width: 1rem;
  height: 1rem;
  color: #6366f1;
  transition: transform 0.2s ease;
}

.cta-button:hover {
  color: #4f46e5;
}

.cta-button:hover .arrow-icon {
  transform: translateX(4px);
  color: #4f46e5;
}

/* Responsive adjustments for FAQ answers and Footer CTA */
@media (max-width: 640px) {
  .faq-question {
    padding: 1.25rem;
  }
  
  .faq-left {
    gap: 1rem;
  }
  
  .faq-icon-wrapper {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
  }
  
  .faq-icon-wrapper svg {
    width: 1rem;
    height: 1rem;
  }
  
  .faq-question-text {
    font-size: 1rem;
  }
  
  .faq-answer {
    padding: 0 1.25rem 1.25rem 4.5rem;
    font-size: 0.9375rem;
  }
  
  .faq-footer-cta {
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 1.5rem;
    padding: 1.5rem;
    gap: 1.25rem;
  }
  
  .cta-left {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .faq-section {
    padding: 2.5rem 0;
  }
  .faq-answer {
    padding: 0 1.25rem 1.25rem 1.25rem;
  }
}

/* Dark Mode Overrides */
body.dark-mode .faq-section {
  background: #09090b;
  border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .faq-section::before,
body.dark-mode .faq-section::after {
  background-image: radial-gradient(rgba(139, 92, 246, 0.15) 1.5px, transparent 1.5px);
}

body.dark-mode .faq-section .section-badge {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
}

body.dark-mode .faq-section .badge-icon {
  color: #a78bfa;
}

body.dark-mode .faq-section .section-title {
  color: #f8fafc;
}

body.dark-mode .faq-section .section-subtitle {
  color: #94a3b8;
}

body.dark-mode .faq-item {
  background: #18181b;
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

body.dark-mode .faq-item:hover {
  border-color: rgba(139, 92, 246, 0.3);
}

body.dark-mode .faq-item[open] {
  border-color: rgba(139, 92, 246, 0.4);
}

body.dark-mode .faq-icon-wrapper {
  background: #27272a;
}

body.dark-mode .faq-icon-wrapper svg {
  color: #a78bfa;
}

body.dark-mode .faq-item[open] .faq-icon-wrapper {
  background: #8b5cf6;
}

body.dark-mode .faq-item[open] .faq-icon-wrapper svg {
  color: #ffffff;
}

body.dark-mode .faq-question-text {
  color: #f8fafc;
}

body.dark-mode .faq-question:hover .faq-question-text {
  color: #a78bfa;
}

body.dark-mode .faq-toggle {
  background: #27272a;
  border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .faq-toggle svg {
  color: #94a3b8;
}

body.dark-mode .faq-item[open] .faq-toggle {
  background: #18181b;
}

body.dark-mode .faq-item[open] .faq-toggle svg {
  color: #a78bfa;
}

body.dark-mode .faq-answer {
  color: #a1a1aa;
}

body.dark-mode .faq-footer-cta {
  background: #18181b;
  border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .faq-footer-cta .cta-icon-wrapper {
  background: #27272a;
}

body.dark-mode .faq-footer-cta .cta-icon-wrapper svg {
  color: #a78bfa;
}

body.dark-mode .cta-text h4 {
  color: #f8fafc;
}

body.dark-mode .cta-text p {
  color: #94a3b8;
}

body.dark-mode .cta-button {
  color: #a78bfa;
}

body.dark-mode .cta-button .arrow-icon {
  color: #a78bfa;
}

body.dark-mode .cta-button:hover {
  color: #c084fc;
}

body.dark-mode .cta-button:hover .arrow-icon {
  color: #c084fc;
}

