/* ==========================================================================
   Vudavi Help Center / FAQ
   ========================================================================== */

.help-page {
  background: var(--v-cream);
  min-height: calc(100vh - 72px);
}

.help-hero {
  padding: 48px 0 32px;
  text-align: center;
  background: linear-gradient(180deg, var(--v-green-soft) 0%, var(--v-cream) 100%);
  border-bottom: 1px solid var(--v-border-light);
}

.help-hero-inner {
  max-width: 720px;
}

.help-title {
  font-family: var(--v-font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--v-green-dark);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 12px;
}

.help-lead {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--v-text-muted);
}

.help-search-wrap {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

.help-search-wrap svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--v-text-muted);
  pointer-events: none;
}

.help-search {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px 14px 44px;
  font-size: 15px;
  font-family: var(--v-font-body);
  color: var(--v-text-dark);
  background: var(--v-white);
  border: 1.5px solid var(--v-border-card);
  border-radius: var(--v-radius-pill);
  box-shadow: var(--v-shadow-subtle);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.help-search::placeholder {
  color: #8aa396;
}

.help-search:focus {
  outline: none;
  border-color: rgba(0, 95, 59, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 95, 59, 0.12);
}

.help-body {
  padding: 36px 0 56px;
}

.help-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  max-width: 960px;
}

.help-sidebar-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--v-text-muted);
  margin: 0 0 12px;
}

.faq-category-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.help-sidebar--desktop .faq-category-nav {
  position: sticky;
  top: 96px;
  z-index: 2;
}

.faq-category-nav--mobile {
  display: none;
  position: static;
  top: auto;
  z-index: auto;
}

.help-categories-mobile {
  display: none;
}

.help-faq-panel {
  position: relative;
  z-index: 0;
  min-width: 0;
}

.faq-category-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--v-font-body);
  color: var(--v-text-body);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.faq-category-btn:hover {
  background: var(--v-green-pale);
  color: var(--v-green-deep);
}

.faq-category-btn.is-active {
  background: var(--v-white);
  color: var(--v-green-deep);
  border-color: rgba(213, 165, 46, 0.45);
  box-shadow: var(--v-shadow-subtle);
}

.faq-category-section {
  margin-bottom: 28px;
}

.faq-category-section:last-child {
  margin-bottom: 0;
}

.faq-category-heading {
  font-family: var(--v-font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--v-green-dark);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--v-border-light);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--v-white);
  border: 1px solid var(--v-border-card);
  border-radius: var(--v-radius-card);
  box-shadow: var(--v-shadow-subtle);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-item.is-open {
  border-color: rgba(0, 95, 59, 0.18);
  box-shadow: var(--v-shadow-card);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 18px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--v-font-body);
}

.faq-question-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--v-green-dark);
  line-height: 1.4;
}

.faq-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--v-green-pale), var(--v-gold-pale));
  color: var(--v-green-deep);
  transition: transform 0.25s ease, color 0.2s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
  color: var(--v-gold);
}

.faq-answer {
  padding: 0 18px 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--v-text-muted);
  animation: faq-answer-in 0.28s ease;
}

.faq-answer[hidden] {
  display: none;
}

.faq-answer p {
  margin: 0 0 10px;
}

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

.faq-answer ul {
  margin: 8px 0 0;
  padding-left: 1.25rem;
}

.faq-answer li {
  margin-bottom: 6px;
}

.faq-answer strong {
  color: var(--v-text-body);
  font-weight: 600;
}

@keyframes faq-answer-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--v-text-muted);
  font-size: 15px;
}

.help-cta {
  padding: 0 0 72px;
}

.help-cta-card {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 28px;
  text-align: center;
  background: linear-gradient(135deg, #073b2d 0%, #005f3b 55%, #0b7a46 100%);
  border-radius: 22px;
  color: #fff;
  box-shadow: 0 16px 40px rgba(0, 95, 59, 0.22);
}

.help-cta-title {
  font-family: var(--v-font-display);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  margin: 0 0 8px;
}

.help-cta-lead {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  max-width: 480px;
  margin-inline: auto;
}

.help-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--v-font-body);
  color: var(--v-green-dark);
  background: linear-gradient(135deg, #f7e8bd, #d5a52e);
  border-radius: var(--v-radius-pill);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.help-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

@media (max-width: 900px) {
  .help-layout {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 100%;
  }

  .help-sidebar--desktop {
    display: none;
  }

  .help-categories-mobile {
    display: block;
    position: relative;
    z-index: 1;
    margin: 0 0 20px;
    padding: 0;
  }

  .faq-category-nav--mobile {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 8px;
    margin: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: static;
    top: auto;
  }

  .faq-category-nav--mobile::-webkit-scrollbar {
    display: none;
  }

  .faq-category-nav--mobile .faq-category-btn {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 11px 16px;
    min-height: 44px;
    border-radius: var(--v-radius-pill);
    font-size: 13px;
    border: 1px solid var(--v-border-card);
    background: var(--v-white);
    box-shadow: var(--v-shadow-subtle);
  }

  .faq-category-nav--mobile .faq-category-btn.is-active {
    background: linear-gradient(135deg, var(--v-green-pale) 0%, var(--v-gold-pale) 100%);
    border-color: rgba(213, 165, 46, 0.55);
    color: var(--v-green-deep);
    box-shadow: 0 2px 8px rgba(7, 59, 45, 0.06);
  }

  /* Grouped category blocks (reference-style) */
  .faq-category-section {
    background: var(--v-white);
    border: 1px solid var(--v-border-card);
    border-radius: var(--v-radius-card);
    box-shadow: var(--v-shadow-subtle);
    padding: 4px 0 8px;
    margin-bottom: 16px;
    overflow: hidden;
  }

  .faq-category-heading {
    margin: 0;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--v-border-light);
    font-size: 16px;
  }

  .faq-list {
    gap: 0;
  }

  .faq-item {
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--v-border-light);
  }

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

  .faq-item.is-open {
    border-color: transparent;
    box-shadow: none;
    background: rgba(235, 246, 240, 0.35);
  }
}

@media (max-width: 768px) {
  .help-page {
    min-height: auto;
    overflow-x: clip;
  }

  .help-hero {
    padding: 28px 0 24px;
  }

  .help-title {
    font-size: clamp(1.65rem, 7vw, 2rem);
  }

  .help-lead {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .help-body {
    padding: 8px 0 36px;
  }

  .help-body > .v-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .help-categories-mobile {
    margin-bottom: 18px;
  }

  .help-faq-panel {
    clear: both;
  }

  .faq-question {
    padding: 14px 16px;
    min-height: 48px;
  }

  .faq-question-text {
    font-size: 14.5px;
  }

  .faq-icon {
    width: 34px;
    height: 34px;
  }

  .faq-answer {
    padding: 0 16px 16px;
    font-size: 14px;
    line-height: 1.65;
  }

  .help-cta {
    padding-bottom: 48px;
  }

  .help-cta-card {
    padding: 28px 20px;
    border-radius: 18px;
  }
}
