/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background: var(--color-eggshell);
  position: relative;
}

.faq-section .section-header-center {
  text-align: center;
  margin-bottom: 40px;
}

.faq-section .section-title {
  color: var(--color-text-primary);
  font-size: var(--font-size-h1);
  margin-bottom: 0;
  font-weight: var(--font-weight-bold);
}

/* FAQ Tabs */
.faq-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  flex-wrap: wrap;
  background: var(--color-white);
  border-radius: 50px;
  padding: 4px;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
}

.faq-tabs::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--color-secondary-100);
  border-radius: 50px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.faq-tabs[data-active-tab="1"]::before {
  transform: translateX(0);
}

.faq-tabs[data-active-tab="2"]::before {
  transform: translateX(100%);
}

.faq-tab {
  padding: 10px 30px;
  background: transparent;
  border: none;
  border-radius: 50px;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  cursor: pointer;
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.faq-tab:hover {
  color: var(--color-primary-main);
}

.faq-tab.active {
  color: var(--color-primary-main);
  font-weight: var(--font-weight-medium);
}

/* FAQ Content Wrapper */
.faq-content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  background: var(--color-white);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.faq-tab-content {
  display: none;
}

.faq-tab-content.active {
  display: block;
}

/* FAQ Item */
.faq-item {
  background: transparent;
  border-radius: 0;
  margin-bottom: 0;
  overflow: hidden;
  box-shadow: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.faq-item:hover {
  box-shadow: none;
  background: rgba(0, 0, 0, 0.01);
}

.faq-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

/* FAQ Question Button */
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
}

.faq-item:first-child .faq-question {
  padding-top: 0;
}

.faq-question:hover {
  background: transparent;
}

.faq-number {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-main);
  flex-shrink: 0;
  line-height: 1.5;
  min-width: 32px;
}

.faq-question-text {
  flex: 1;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  line-height: 1.5;
}

.faq-toggle {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-text-primary);
  transition: transform 0.3s ease;
  opacity: 0.5;
  margin-top: 2px;
}

.faq-toggle svg {
  width: 100%;
  height: 100%;
  stroke-width: 2;
}

/* Toggle Icon States */
.faq-item .icon-minus {
  display: none;
}

.faq-item .icon-plus {
  display: block;
}

.faq-item.active .icon-minus {
  display: block;
}

.faq-item.active .icon-plus {
  display: none;
}

/* FAQ Answer */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
  padding: 0;
  opacity: 0;
  margin-left: 52px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 0 24px 0;
  opacity: 1;
}

.faq-answer p {
  font-size: var(--font-size-body);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
  margin: 0 0 12px 0;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Responsive Design */

/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
  .faq-content-wrapper {
    max-width: 100%;
  }
}

/* Tablet Portrait (900px and below) */
@media (max-width: 900px) {
  .faq-section {
    padding: 70px 0;
  }
  
  .faq-section .section-header-center {
    margin-bottom: 40px;
  }
  
  .faq-tabs {
    margin-bottom: 40px;
  }
}

/* Mobile Landscape (768px and below) */
@media (max-width: 768px) {
  .faq-section {
    padding: 60px 0;
  }
  
  .faq-content-wrapper {
    padding: 28px;
  }
  
  .faq-question {
    padding: 20px 0;
    gap: 16px;
  }
  
  .faq-item:first-child .faq-question {
    padding-top: 0;
  }
  
  .faq-item.active .faq-answer {
    padding: 0 0 20px 0;
  }
  
  .faq-answer {
    margin-left: 44px;
  }
}

/* Mobile Portrait (640px and below) */
@media (max-width: 640px) {
  .faq-section {
    padding: 50px 0;
  }
  
  .faq-section .section-header-center {
    margin-bottom: 30px;
  }
  
  .faq-section .section-title {
    font-size: 1.75rem;
  }
  
  .faq-tabs {
    gap: 0;
    margin-bottom: 30px;
    max-width: 100%;
    padding: 3px;
  }
  
  .faq-tab {
    padding: 9px 20px;
    font-size: 0.875rem;
  }
  
  .faq-content-wrapper {
    padding: 24px;
    border-radius: 20px;
  }
  
  .faq-question {
    padding: 18px 0;
    gap: 14px;
  }
  
  .faq-item:first-child .faq-question {
    padding-top: 0;
  }
  
  .faq-number {
    font-size: 1.125rem;
    min-width: 28px;
  }
  
  .faq-question-text {
    font-size: 0.9375rem;
  }
  
  .faq-toggle {
    width: 16px;
    height: 16px;
  }
  
  .faq-item.active .faq-answer {
    padding: 0 0 18px 0;
  }
  
  .faq-answer {
    margin-left: 42px;
  }
  
  .faq-answer p {
    font-size: 0.9375rem;
  }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  .faq-section {
    padding: 40px 0;
  }
  
  .faq-section .section-title {
    font-size: 1.5rem;
  }
  
  .faq-tabs {
    padding: 3px;
  }
  
  .faq-tab {
    padding: 8px 16px;
    font-size: 0.8125rem;
  }
  
  .faq-content-wrapper {
    padding: 20px;
    border-radius: 16px;
  }
  
  .faq-question {
    padding: 16px 0;
    gap: 12px;
  }
  
  .faq-item:first-child .faq-question {
    padding-top: 0;
  }
  
  .faq-number {
    font-size: 1rem;
    min-width: 24px;
  }
  
  .faq-question-text {
    font-size: 0.875rem;
  }
  
  .faq-toggle {
    width: 14px;
    height: 14px;
  }
  
  .faq-item.active .faq-answer {
    padding: 0 0 16px 0;
  }
  
  .faq-answer {
    margin-left: 36px;
  }
  
  .faq-answer p {
    font-size: 0.875rem;
    margin-bottom: 10px;
  }
}

/* Extra Small Mobile (380px and below) */
@media (max-width: 380px) {
  .faq-section {
    padding: 35px 0;
  }
  
  .faq-content-wrapper {
    padding: 18px;
  }
  
  .faq-question {
    padding: 14px 0;
  }
  
  .faq-item:first-child .faq-question {
    padding-top: 0;
  }
  
  .faq-number {
    font-size: 0.9375rem;
    min-width: 22px;
  }
  
  .faq-question-text {
    font-size: 0.8125rem;
  }
  
  .faq-item.active .faq-answer {
    padding: 0 0 14px 0;
  }
  
  .faq-answer {
    margin-left: 32px;
  }
}
