:root {
  --card-light: #ffffff;
  --card-dark: #1e1e2d;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.2);
  --dark-text: #333333;
  --light-text: #e0e0e0;
  --primary-color: #3d63dd;
  --primary-dark: #2d4bb0;
}

.faq-section {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(61, 99, 221, 0.03) 0%,
    rgba(255, 107, 107, 0.02) 100%
  );
  overflow: hidden;
}

body.dark-theme .faq-section {
  background: linear-gradient(
    135deg,
    rgba(61, 99, 221, 0.05) 0%,
    rgba(16, 185, 129, 0.03) 100%
  );
}

.faq-container {
  max-width: 900px;
  margin: 0 auto 4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--card-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(61, 99, 221, 0.1);
}

body.dark-theme .faq-item {
  background: var(--card-dark);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-dark);
}

.faq-item.active {
  box-shadow: 0 10px 30px rgba(61, 99, 221, 0.15);
  border-color: rgba(61, 99, 221, 0.3);
}

.faq-question {
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
  color: var(--dark-text);
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
  outline: none;
}

body.dark-theme .faq-question {
  color: var(--light-text);
}

.faq-question:hover {
  background: rgba(61, 99, 221, 0.05);
}

body.dark-theme .faq-question:hover {
  background: rgba(61, 99, 221, 0.1);
}

.faq-question[aria-expanded="true"] {
  background: rgba(61, 99, 221, 0.1);
  border-bottom: 1px solid rgba(61, 99, 221, 0.2);
}

body.dark-theme .faq-question[aria-expanded="true"] {
  background: rgba(61, 99, 221, 0.15);
  border-bottom: 1px solid rgba(61, 99, 221, 0.3);
}

.question-text {
  flex: 1;
  margin-right: 1.5rem;
  line-height: 1.5;
}

.faq-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  transition: all 0.3s ease;
  position: relative;
}

.faq-question:hover .faq-icon {
  transform: scale(1.1);
}

.faq-icon i {
  position: absolute;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.faq-icon i:first-child {
  opacity: 1;
  transform: rotate(0deg);
}

.faq-icon i:last-child {
  opacity: 0;
  transform: rotate(-90deg);
}

.faq-question[aria-expanded="true"] .faq-icon i:first-child {
  opacity: 0;
  transform: rotate(90deg);
}

.faq-question[aria-expanded="true"] .faq-icon i:last-child {
  opacity: 1;
  transform: rotate(0deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.5);
}

body.dark-theme .faq-answer {
  background: rgba(0, 0, 0, 0.1);
}

.faq-answer.active {
  max-height: 1000px;
}

.faq-answer-content {
  padding: 0 2rem 1.5rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.faq-answer.active .faq-answer-content {
  opacity: 1;
  transform: translateY(0);
}

.faq-answer p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--dark-text);
  opacity: 0.9;
}

body.dark-theme .faq-answer p {
  color: var(--light-text);
  opacity: 0.8;
}

.faq-answer ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.faq-answer li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: var(--dark-text);
  opacity: 0.9;
  position: relative;
  padding-left: 0.5rem;
}

.faq-answer li::before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: -1rem;
}

body.dark-theme .faq-answer li {
  color: var(--light-text);
  opacity: 0.8;
}

.faq-answer strong {
  color: var(--primary-color);
  font-weight: 600;
}

.faq-cta {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(61, 99, 221, 0.2);
  margin-top: 3rem;
}

.faq-cta-content {
  position: relative;
  z-index: 2;
}

.faq-cta h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.faq-cta p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.faq-cta .btn {
  background: white;
  color: var(--primary-color);
  padding: 0.8rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .faq-container {
    margin-bottom: 3rem;
  }

  .faq-question {
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
  }

  .faq-answer-content {
    padding: 0 1.5rem 1.25rem;
  }

  .faq-cta {
    padding: 2rem 1.5rem;
  }

  .faq-cta h3 {
    font-size: 1.5rem;
  }

  .faq-cta p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .faq-container {
    gap: 0.75rem;
  }

  .faq-question {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }

  .question-text {
    margin-right: 1rem;
  }

  .faq-icon {
    width: 32px;
    height: 32px;
  }

  .faq-answer-content {
    padding: 0 1.25rem 1rem;
  }

  .faq-answer p,
  .faq-answer li {
    font-size: 0.95rem;
  }
}
