/* ============================================================
   FAQ PAGE STYLES
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* FAQ Section */
.sv-faq-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  min-height: calc(100vh - 200px);
}

.sv-faq-header {
  text-align: center;
  margin-bottom: 60px;
  animation: sv-fade-in 600ms ease forwards;
  opacity: 0;
}

.sv-faq-title {
  font-size: 40px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.sv-faq-subtitle {
  font-size: 18px;
  color: #666666;
  font-weight: 500;
  margin-bottom: 35px;
  letter-spacing: 1px;
}

/* Search Bar */
.sv-faq-search-wrapper {
  display: flex;
  justify-content: center;
  animation: sv-slide-up 700ms ease 100ms forwards;
  opacity: 0;
}

.sv-search-box {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.sv-search-box i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #8B4513;
  font-size: 18px;
  pointer-events: none;
}

.sv-faq-search-input {
  width: 100%;
  padding: 14px 18px 14px 50px;
  border: 2px solid #D4AF37;
  border-radius: 12px;
  letter-spacing: 1px;
  font-size: 15px;
  font-family: inherit;
  transition: all 300ms ease;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}

.sv-faq-search-input:focus {
  outline: none;
  border-color: #8B4513;
  box-shadow: 0 8px 25px rgba(139, 69, 19, 0.2);
}

.sv-faq-search-input::placeholder {
  color: #cccccc;
}

/* FAQ Wrapper */
.sv-faq-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

/* FAQ Category */
.sv-faq-category {
  margin-bottom: 50px;
  animation: sv-slide-up 700ms ease forwards;
  opacity: 0;
}

.sv-faq-category:nth-child(1) {
  animation-delay: 200ms;
}

.sv-faq-category:nth-child(2) {
  animation-delay: 300ms;
}

.sv-faq-category:nth-child(3) {
  animation-delay: 400ms;
}

.sv-faq-category:nth-child(4) {
  animation-delay: 500ms;
}

.sv-faq-category:nth-child(5) {
  animation-delay: 600ms;
}

.sv-faq-category-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 25px;
  display: flex;
  letter-spacing: 1px;
  align-items: center;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 3px solid #D4AF37;
}

.sv-faq-category-title i {
  color: #8B4513;
  font-size: 24px;
}

/* FAQ Items Container */
.sv-faq-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* FAQ Item */
.sv-faq-item {
  background: #ffffff;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  overflow: hidden;
  transition: all 300ms ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sv-faq-item:hover {
  border-color: #D4AF37;
  box-shadow: 0 8px 25px rgba(139, 69, 19, 0.1);
}

/* FAQ Question */
.sv-faq-question {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 25px;
  cursor: pointer;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  transition: all 300ms ease;
  user-select: none;
}

.sv-faq-item.active .sv-faq-question {
  background: linear-gradient(135deg, #8B4513 0%, #D4AF37 100%);
}

.sv-faq-question:hover {
  background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
}

.sv-faq-item.active .sv-faq-question:hover {
  background: linear-gradient(135deg, #8B4513 0%, #D4AF37 100%);
}

/* FAQ Icon */
.sv-faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #666666;
  font-size: 12px;
  flex-shrink: 0;
  transition: all 300ms ease;
}

.sv-faq-item.active .sv-faq-icon {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: rotate(90deg);
}

/* FAQ Question Text */
.sv-faq-question-text {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  flex: 1;
  letter-spacing: 1px;
  transition: all 300ms ease;
}

.sv-faq-item.active .sv-faq-question-text {
  color: #ffffff;
}

/* FAQ Answer */
.sv-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms ease, padding 400ms ease;
  background: #ffffff;
  color: #666666;
}

.sv-faq-item.active .sv-faq-answer {
  max-height: 500px;
  padding: 0 25px 25px 25px;
}

.sv-faq-answer p {
  font-size: 15px;
  line-height: 1.7;
  color: #666666;
  margin: 0;
  margin-top: 15px;
  letter-spacing: 1px;
}

/* No Results */
.sv-faq-no-results {
  display: none;
  text-align: center;
  padding: 60px 20px;
  opacity: 0;
}

.sv-faq-no-results.show {
  display: block;
  animation: sv-fade-in 400ms ease forwards;
}

.sv-faq-no-results i {
  font-size: 48px;
  color: #D4AF37;
  margin-bottom: 20px;
}

.sv-faq-no-results p {
  font-size: 16px;
  color: #666666;
  margin: 0;
}

/* ============================================================
   CTA SECTION
   ============================================================ */

.sv-faq-cta-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #8B4513 0%, #D4AF37 100%);
  text-align: center;
}

.sv-faq-cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.sv-faq-cta-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: 1px;
}

.sv-faq-cta-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  letter-spacing: 1px;
}

.sv-faq-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 35px;
  letter-spacing: 1px;
  background: #ffffff;
  color: #8B4513;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all 300ms ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sv-faq-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background: #f0f0f0;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes sv-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes sv-slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   RESPONSIVE MEDIA QUERIES
   ============================================================ */

/* Tablet: 1024px and below */
@media (max-width: 1024px) {
  .sv-faq-section {
    padding: 60px 0;
  }

  .sv-faq-title {
    font-size: 36px;
  }

  .sv-faq-subtitle {
    font-size: 16px;
  }

  .sv-faq-category-title {
    font-size: 20px;
  }

  .sv-faq-question-text {
    font-size: 15px;
  }

  .sv-faq-answer p {
    font-size: 14px;
  }
}

/* Tablet: 768px and below */
@media (max-width: 768px) {
  .sv-faq-section {
    padding: 50px 0;
  }

  .sv-faq-header {
    margin-bottom: 45px;
  }

  .sv-faq-title {
    font-size: 32px;
  }

  .sv-faq-subtitle {
    font-size: 15px;
    margin-bottom: 25px;
  }

  .sv-search-box i {
    left: 14px;
  }

  .sv-faq-search-input {
    padding: 12px 14px 12px 45px;
    font-size: 14px;
  }

  .sv-faq-category {
    margin-bottom: 40px;
  }

  .sv-faq-category-title {
    font-size: 18px;
    gap: 10px;
    margin-bottom: 20px;
  }

  .sv-faq-category-title i {
    font-size: 20px;
  }

  .sv-faq-items {
    gap: 12px;
  }

  .sv-faq-question {
    padding: 18px 20px;
    gap: 12px;
  }

  .sv-faq-icon {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }

  .sv-faq-question-text {
    font-size: 15px;
  }

  .sv-faq-item.active .sv-faq-answer {
    padding: 0 20px 20px 20px;
  }

  .sv-faq-answer p {
    font-size: 14px;
  }

  .sv-faq-cta-section {
    padding: 50px 0;
  }

  .sv-faq-cta-content h2 {
    font-size: 24px;
  }

  .sv-faq-cta-content p {
    font-size: 15px;
  }

  .sv-faq-cta-btn {
    padding: 12px 30px;
    font-size: 14px;
  }
}

/* Mobile: 640px and below */
@media (max-width: 640px) {
  .sv-faq-section {
    padding: 40px 0;
  }

  .sv-faq-header {
    margin-bottom: 35px;
  }

  .sv-faq-title {
    font-size: 26px;
  }

  .sv-faq-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .sv-search-box {
    max-width: 100%;
  }

  .sv-faq-search-input {
    padding: 12px 14px 12px 45px;
    font-size: 14px;
  }

  .sv-faq-wrapper {
    padding: 0 15px;
  }

  .sv-faq-category {
    margin-bottom: 30px;
  }

  .sv-faq-category-title {
    font-size: 16px;
    gap: 8px;
    margin-bottom: 15px;
  }

  .sv-faq-category-title i {
    font-size: 18px;
  }

  .sv-faq-items {
    gap: 10px;
  }

  .sv-faq-item {
    border-radius: 10px;
  }

  .sv-faq-question {
    padding: 16px 16px;
    gap: 10px;
  }

  .sv-faq-icon {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .sv-faq-question-text {
    font-size: 14px;
  }

  .sv-faq-item.active .sv-faq-answer {
    max-height: 400px;
    padding: 0 16px 16px 16px;
  }

  .sv-faq-answer p {
    font-size: 13px;
    line-height: 1.6;
  }

  .sv-faq-no-results {
    padding: 40px 15px;
  }

  .sv-faq-no-results i {
    font-size: 40px;
    margin-bottom: 15px;
  }

  .sv-faq-no-results p {
    font-size: 14px;
  }

  .sv-faq-cta-section {
    padding: 40px 0;
  }

  .sv-faq-cta-content h2 {
    font-size: 20px;
  }

  .sv-faq-cta-content p {
    font-size: 14px;
  }

  .sv-faq-cta-btn {
    padding: 12px 25px;
    font-size: 13px;
  }
}
