/* ============================================
   FAQ PAGE
   Matches info-center design system
   ============================================ */

/* --- Hero --- */

.faq-hero {
  position: relative;
  background: url('/images/faq-hero.jpg') center 25% / cover no-repeat;
  padding: 100px 20px 80px;
  text-align: center;
  min-height: 280px;
}

.faq-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.25) 100%);
}

.faq-hero__title,
.faq-hero__subtitle {
  position: relative;
  z-index: 1;
}

.faq-hero__title {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.faq-hero__subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 auto;
  max-width: 600px;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* --- Container --- */

.faq-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Sections --- */

.faq-section {
  padding: 48px 0;
}

.faq-section--alt {
  background: #f8f9fb;
}

.faq-section__heading {
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #0d2456;
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e8eaee;
}

/* --- FAQ Items --- */

.faq-item {
  border-bottom: 1px solid #e8eaee;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #0d2456;
  line-height: 1.4;
  gap: 16px;
}

.faq-question:hover {
  color: #1a3a6e;
}

.faq-question__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
  color: #5a6170;
  transition: background 0.2s, transform 0.2s;
}

.faq-item.active .faq-question__icon {
  background: #0d2456;
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer__inner {
  padding: 0 0 20px;
  font-size: 15px;
  line-height: 1.7;
  color: #5a6170;
}

.faq-answer__inner p {
  margin: 0 0 12px;
}

.faq-answer__inner p:last-child {
  margin-bottom: 0;
}

.faq-answer__inner a {
  color: #2e7ab3;
  text-decoration: underline;
}

.faq-answer__inner a:hover {
  color: #1a5276;
}

.faq-answer__inner ul {
  padding-left: 20px;
  margin: 12px 0;
}

.faq-answer__inner li {
  margin-bottom: 8px;
}

.faq-answer__inner h4 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #0d2456;
  margin: 16px 0 8px;
}

.faq-answer__inner strong {
  color: #333;
}

/* --- Sample ID Modal --- */

.faq-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 22, 40, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.faq-modal.is-open {
  display: flex;
}

.faq-modal__content {
  background: #fff;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
}

.faq-modal__header {
  padding: 16px 20px;
  background: #0d2456;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-modal__close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.15s;
}

.faq-modal__close:hover {
  opacity: 1;
}

.faq-modal__close svg {
  width: 20px;
  height: 20px;
}

.faq-modal__body {
  padding: 20px;
}

.faq-modal__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  border: 1px solid #e8eaee;
}

/* --- Trust Badges --- */

.faq-trust-badges {
  display: flex;
  gap: 10px;
  margin: 16px 0 20px;
  flex-wrap: wrap;
}

.faq-trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 16px;
  background: #f8f9fa;
  border: 1px solid #e8eaef;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s;
  flex: 1;
  min-width: 90px;
}

.faq-trust-badge:hover {
  border-color: #ccc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

.faq-trust-badge__stars {
  display: flex;
  align-items: center;
  gap: 1px;
}

.faq-trust-badge__rating {
  font-size: 12px;
  font-weight: 600;
  color: #2d3a4d;
}

/* --- CTA --- */

.faq-cta {
  text-align: center;
  padding: 32px 0 8px;
}

.faq-cta__btn {
  display: inline-block;
  padding: 13px 32px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.15s;
  margin: 0 6px 10px;
}

.faq-cta__btn:hover {
  opacity: 0.85;
  text-decoration: none;
  color: #fff;
}

.faq-cta__btn--red {
  background: #c0392b;
}

.faq-cta__btn--blue {
  background: #2e86c1;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .faq-hero {
    padding: 48px 16px 40px;
  }

  .faq-hero__title {
    font-size: 28px;
  }

  .faq-hero__subtitle {
    font-size: 15px;
  }

  .faq-container {
    padding: 0 16px;
  }

  .faq-section {
    padding: 36px 0;
  }

  .faq-section__heading {
    font-size: 22px;
  }

  .faq-question {
    font-size: 15px;
    padding: 16px 0;
  }

  .faq-answer__inner {
    font-size: 14px;
  }

  .faq-cta__btn {
    display: block;
    margin: 0 0 10px;
  }
}
