/* style/faq.css */

/* --- Base Styles --- */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main from palette on dark body background */
  background-color: transparent; /* Body background is handled by shared.css (#B71C1C) */
}

.page-faq__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #F4D34D; /* Gold from palette for main titles */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-faq__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #F4D34D; /* Gold from palette */
  max-width: 900px;
  margin: 0 auto 20px auto;
  text-align: center;
  font-size: clamp(2em, 5vw, 3.5em);
}

.page-faq__intro-text,
.page-faq__promo-text {
  font-size: 1.1em;
  color: #FFF5E1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* --- Buttons --- */
.page-faq__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  overflow: hidden;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  min-width: 200px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient from palette */
  color: #7A0E0E; /* Deep Red for text on bright gold button for contrast */
  border: 2px solid #F2B544; /* Border from palette */
  box-shadow: 0 4px 15px rgba(255, 204, 102, 0.4); /* Glow from palette */
}

.page-faq__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 204, 102, 0.6);
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: #F4D34D; /* Gold from palette for text */
  border: 2px solid #F4D34D; /* Gold from palette for border */
}

.page-faq__btn-secondary:hover {
  background-color: #F4D34D;
  color: #7A0E0E; /* Deep Red for text on hover */
  transform: translateY(-2px);
}

/* --- Hero Section --- */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0;
  background-color: #7A0E0E; /* Deep Red background for hero section */
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px;
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px;
  max-width: 1200px;
  width: 100%;
}

/* --- Content Area --- */
.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #B71C1C; /* Background from palette */
}

/* --- FAQ List --- */
.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__faq-item {
  background-color: #D32F2F; /* Card B G from palette */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: 1px solid #F2B544; /* Border from palette */
}

.page-faq__faq-item.active {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #C91F17; /* Main color from palette */
  color: #FFF5E1;
  font-weight: 600;
  font-size: 1.2em;
  border-bottom: 1px solid #E53935; /* Aux color for separator */
}

.page-faq__faq-question:hover {
  background-color: #E53935; /* Aux color on hover */
}

.page-faq__question-title {
  margin: 0;
  color: #FFF5E1;
  font-size: 1.2em;
  font-weight: 600;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #F4D34D; /* Gold from palette */
  margin-left: 15px;
}

.page-faq__faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: #D32F2F; /* Card B G from palette */
  color: #FFF5E1;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding: 20px 25px;
}

.page-faq__faq-answer p {
  margin: 0;
  color: #FFF5E1;
}

/* --- Contact Promo Section --- */
.page-faq__contact-promo-section,
.page-faq__security-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #B71C1C; /* Background from palette */
}

.page-faq__contact-promo-section {
  background-color: #7A0E0E; /* Deep Red background */
}

.page-faq__contact-promo-content,
.page-faq__security-content {
  flex: 1;
  text-align: left;
}

.page-faq__contact-promo-content .page-faq__section-title,
.page-faq__security-content .page-faq__section-title {
  text-align: left;
  color: #F4D34D; /* Gold from palette */
}

.page-faq__contact-promo-content .page-faq__promo-text,
.page-faq__security-content .page-faq__promo-text {
  text-align: left;
  color: #FFF5E1;
}

.page-faq__contact-promo-image-wrapper,
.page-faq__security-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__contact-promo-image,
.page-faq__security-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__main-title {
    font-size: clamp(1.8em, 6vw, 3em);
  }
  .page-faq__faq-question {
    font-size: 1.1em;
  }
  .page-faq__question-title {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-faq__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 20px;
  }
  .page-faq__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__main-title {
    font-size: clamp(1.5em, 7vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-faq__intro-text,
  .page-faq__promo-text {
    font-size: 1em;
    margin-bottom: 20px;
    padding: 0 15px;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
    min-width: unset;
  }

  .page-faq__content-area,
  .page-faq__contact-promo-section,
  .page-faq__security-section {
    padding: 40px 15px;
    flex-direction: column;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-faq__contact-promo-section {
    flex-direction: column-reverse;
  }

  .page-faq__contact-promo-content,
  .page-faq__security-content {
    text-align: center;
    width: 100%;
  }

  .page-faq__contact-promo-content .page-faq__section-title,
  .page-faq__security-content .page-faq__section-title {
    text-align: center;
  }

  .page-faq__contact-promo-content .page-faq__promo-text,
  .page-faq__security-content .page-faq__promo-text {
    text-align: center;
  }

  .page-faq__contact-promo-image-wrapper,
  .page-faq__security-image-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
  }

  .page-faq__contact-promo-image,
  .page-faq__security-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-faq__question-title {
    font-size: 1em;
  }
  .page-faq__faq-answer {
    padding: 15px 20px;
  }

  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}