/* Reset and Base Styles */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  overflow-x: hidden;
}

/* Header Section with Beige Background */
.header-section {
  /* background: url("../../assets/images/faq/faqbg.png"); */
  padding: 4rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.header-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-title {
  font-size: 3rem;
  font-weight: 400;
  color: #2c2c2c;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: slideInUp 1s ease-out 0.3s forwards;
  font-family: "Robecha-Daniera-Regular";
}

.intro-text {
  font-size: 1rem;
  color: #050505;
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0;
  animation: slideInUp 1s ease-out 0.6s forwards;
  font-family: "Montserrat", sans-serif;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Main Container */
.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 4rem 1rem;
}

/* Section Title */
.section-title {
  font-family: "Robecha-Daniera-Regular";

  font-size: 38px;
  font-weight: 400;
  color: #050505;
  margin-bottom: 2rem;
  text-align: center;
  letter-spacing: -0.01em;
  opacity: 1;
  /* animation: fadeInScale 1s ease-out 0.9s forwards; */
}

@keyframes fadeInScales {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* FAQ Section */
.faq-section {
  margin-top: 1rem;
}

.faq-item {
  background-color: #fcf9f4;
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(20px);
  animation: slideInItem 0.6s ease-out forwards;
  position: relative;
}

.faq-item:nth-child(1) {
  animation-delay: 1.2s;
}
.faq-item:nth-child(2) {
  animation-delay: 1.3s;
}
.faq-item:nth-child(3) {
  animation-delay: 1.4s;
}
.faq-item:nth-child(4) {
  animation-delay: 1.5s;
}
.faq-item:nth-child(5) {
  animation-delay: 1.6s;
}
.faq-item:nth-child(6) {
  animation-delay: 1.7s;
}
.faq-item:nth-child(7) {
  animation-delay: 1.8s;
}
.faq-item:nth-child(8) {
  animation-delay: 1.9s;
}
.faq-item:nth-child(9) {
  animation-delay: 2s;
}
.faq-item:nth-child(10) {
  animation-delay: 2.1s;
}

@keyframes slideInItem {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #fff3da;
  transition: left 0.6s;
}

.faq-item:hover::before {
  left: 100%;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.2rem 2rem;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 500;
  color: #050505;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  line-height: 1.4;
  position: relative;
  z-index: 2;
}

.faq-question:hover {
  background-color: rgba(240, 235, 224, 0.3);
}

.faq-question.active {
  background-color: #fff3da;
}

.question-text {
  flex: 1;
  margin-right: 1rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 650;
}

.toggle-icon {
  font-size: 1.5rem;
  font-weight: 300;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: #666;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
}

.faq-question.active .toggle-icon {
  transform: rotate(180deg) scale(1.1);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: #fff3da;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.faq-answer.active {
  max-height: 500px;
  opacity: 1;
  padding: 0 2rem 1.5rem 2rem;
}

.faq-answer-content {
  color: #050505;
  line-height: 1.7;
  font-size: 1rem;
  padding-top: 0.5rem;
  transform: translateY(-10px);
  transition: transform 0.3s ease 0.1s;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
}

.faq-answer-content > p:not(:first-child) {
  margin-top: 30px;
}

.faq-answer.active .faq-answer-content {
  transform: translateY(0);
}

/* Question Number Styling */
.question-number {
  font-weight: 600;
  margin-right: 0.5rem;
  color: #d4af37;
}

/* Scroll Animation */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #d4af37, #f0ebe0);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  z-index: 1000;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-section {
    padding: 3rem 1rem;
  }

  .page-title {
    font-size: 2.25rem;
  }

  .intro-text {
    font-size: 1rem;
  }

  .container {
    padding: 2rem 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .faq-question {
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
  }

  .faq-answer.active {
    padding: 0 1.5rem 1.25rem 1.5rem;
  }

  .toggle-icon {
    font-size: 1.25rem;
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .header-section {
    padding: 3.5rem 1rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .container {
    padding: 1.5rem 0.75rem;
  }

  .faq-question {
    padding: 1rem 1.25rem;
  }

  .faq-answer.active {
    padding: 0 1.25rem 1rem 1.25rem;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Loading animation */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f1e8 0%, #f0ebe0 50%, #e8ddd0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(212, 175, 55, 0.3);
  border-top: 3px solid #d4af37;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.addtoany_share_save_container {
  display: none !important;
}
