/**
 * FAQs Page Styles
 * Theme: Salkantay Treks Peru
 * Version: 2.0.0
 */

.stp-faqs-page {
  background-color: #f8fafc;
  color: #334155;
}

/* --------------------------------------------------------------------------
   Instant Search Bar in Hero / Sub-Hero
   -------------------------------------------------------------------------- */
.stp-faq-search-wrap {
  max-width: 680px;
  margin: -35px auto 3.5rem;
  position: relative;
  z-index: 10;
}

.stp-faq-search-box {
  background: #ffffff;
  border-radius: 50px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  padding: 0.65rem 0.85rem 0.65rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.stp-faq-search-icon {
  color: #2d6a4f;
  font-size: 1.25rem;
}

.stp-faq-search-input {
  border: none;
  background: transparent;
  flex: 1;
  font-size: 1.05rem;
  color: #0f172a;
  outline: none;
  font-weight: 600;
}

.stp-faq-search-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Category Navigation Pills & Main Layout
   -------------------------------------------------------------------------- */
.stp-faq-nav-wrap {
  margin-bottom: 2.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.stp-faq-main-section {
  padding: 1rem 0 5rem;
  background-color: #f8fafc;
}

.stp-faq-intro {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
  line-height: 1.7;
}

.stp-faq-nav-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.stp-faq-nav-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 50px;
  padding: 0.65rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 750;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.stp-faq-nav-btn:hover,
.stp-faq-nav-btn.active {
  background: #2d6a4f;
  color: #ffffff;
  border-color: #2d6a4f;
  box-shadow: 0 6px 18px rgba(45, 106, 79, 0.25);
}

/* --------------------------------------------------------------------------
   Category Sections & Accordions
   -------------------------------------------------------------------------- */
.stp-faq-category-block {
  margin-bottom: 3.5rem;
  scroll-margin-top: 100px;
}

.stp-faq-category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e2e8f0;
}

.stp-faq-cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #d8f3dc;
  color: #2d6a4f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stp-faq-cat-title {
  font-size: 1.6rem;
  font-weight: 850;
  color: #0f172a;
  margin: 0;
}

.stp-faq-accordion .accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: 14px !important;
  margin-bottom: 1rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stp-faq-accordion .accordion-item:hover {
  border-color: #52b788;
  box-shadow: 0 8px 20px rgba(45, 106, 79, 0.06);
}

.stp-faq-accordion .accordion-button {
  background: #ffffff;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 750;
  padding: 1.25rem 1.5rem;
  box-shadow: none;
  border: none;
}

.stp-faq-accordion .accordion-button:not(.collapsed) {
  background: #f0fdf4;
  color: #1e3a2f;
}

.stp-faq-accordion .accordion-button::after {
  background-size: 1rem;
  transition: transform 0.25s ease;
}

.stp-faq-accordion .accordion-body {
  padding: 1.5rem;
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.75;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.stp-faq-accordion .accordion-body p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Direct Support Card
   -------------------------------------------------------------------------- */
.stp-faq-support-card {
  position: relative;
  background: linear-gradient(135deg, #1b4332 0%, #081c15 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  color: #ffffff;
  text-align: center;
  max-width: 920px;
  margin: 4rem auto 3rem;
  box-shadow: 0 20px 45px rgba(8, 28, 21, 0.25);
  overflow: hidden;
  z-index: 1;
}

.stp-faq-support-card::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 130%;
  height: 130%;
  background: radial-gradient(circle, rgba(82, 183, 136, 0.16) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.stp-faq-support-title {
  font-size: 2rem;
  font-weight: 850;
  color: #ffffff;
  margin-bottom: 0.85rem;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.stp-faq-support-desc {
  font-size: 1.05rem;
  color: #d8f3dc;
  max-width: 620px;
  margin: 0 auto 2.25rem;
  line-height: 1.65;
}

.stp-support-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.stp-btn-gold {
  background: linear-gradient(135deg, #ffc300 0%, #ffb703 100%);
  color: #081c15 !important;
  font-weight: 800;
  border-radius: 50px;
  padding: 0.85rem 2.25rem;
  font-size: 0.95rem;
  border: none;
  box-shadow: 0 8px 24px rgba(255, 183, 3, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}

.stp-btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 183, 3, 0.55);
  color: #081c15 !important;
}

.stp-btn-whatsapp-lg {
  background: #25d366;
  color: #ffffff !important;
  font-weight: 800;
  border-radius: 50px;
  padding: 0.85rem 2.25rem;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stp-btn-whatsapp-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.45);
  color: #ffffff !important;
}

@media (max-width: 767.98px) {
  .stp-faq-search-box {
    padding: 0.5rem 0.75rem 0.5rem 1.25rem;
  }
  .stp-faq-nav-pills {
    justify-content: flex-start;
  }
  .stp-faq-support-card {
    padding: 2.25rem 1.5rem;
    margin: 3rem auto 2rem;
    border-radius: 18px;
  }
  .stp-faq-support-title {
    font-size: 1.5rem;
  }
  .stp-faq-support-desc {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
  }
  .stp-support-btns {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .stp-btn-gold,
  .stp-btn-whatsapp-lg {
    width: 100%;
  }
}
