/* ========================================================
   PETSATHI FAQ & HELP CENTER STYLES
   Matches the Dog Index & Cat Index design language:
   green / cream / white palette, soft cards, rounded pills.
   ======================================================== */

/* Universal Font Awesome Guard */
body [class*="fa-"],
body [class*="fa-"]::before,
body i.fa-solid,
body i.fa-solid::before,
.fa-solid,
.fa-solid::before,
i[class*="fa-"] {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  line-height: 1 !important;
}

body [class*="fa-regular"],
body [class*="fa-regular"]::before,
.fa-regular {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 400 !important;
}

body [class*="fa-brands"],
body [class*="fa-brands"]::before,
.fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}

:root {
  --faq-accent: var(--green, #286849);
  --faq-accent-dark: var(--dark, #1d5039);
  --faq-accent-light: #eaf2e9;
  --faq-accent-border: #cfe0d8;
  --faq-cream: var(--cream, #fcfaf5);
  --faq-white: #ffffff;
  --faq-line: var(--line, #e8ebe4);
  --faq-soft: var(--soft, #f1f4ed);
  --faq-ink: var(--ink, #26372e);
  --faq-muted: var(--muted, #718078);
  --faq-shadow: 0 18px 45px rgba(35, 57, 43, 0.09);
  --faq-shadow-sm: 0 4px 14px rgba(35, 57, 43, 0.045);
}

/* ========================================================
   HERO
   ======================================================== */
main .faq-hero,
.faq-hero {
  position: relative;
  overflow: hidden;
  padding: 52px 0 58px;
  background: #ffffff !important;
  background-image: none !important;
  border-bottom: none !important;
}

main .faq-hero-inner,
main .faq-hero-main,
main .faq-hero-copy,
main .faq-hero-visual,
main .faq-hero .hero-subtitle,
main .faq-hero-support-row {
  background-color: transparent !important;
  background-image: none !important;
}

main .faq-hero-blob {
  background-color: #e8f0e4 !important;
  background-image: none !important;
}

.faq-hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: 46px;
}

.faq-hero-copy {
  min-width: 0;
}

.faq-badge-strip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  margin-bottom: 18px;
  background: var(--faq-accent-light);
  color: var(--faq-accent);
  border: 1px solid #d7e6d5;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.faq-badge-strip i {
  font-size: 0.82rem;
}

.faq-hero h1 {
  margin: 0 0 16px;
  color: var(--faq-ink);
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -1.8px;
}

.faq-hero h1 em {
  color: var(--faq-accent);
  font-style: normal;
}

.faq-hero .hero-subtitle {
  max-width: 560px;
  margin: 0;
  color: #55665c;
  font-size: 1.03rem;
  line-height: 1.78;
}

/* Search bar */
.faq-search-wrapper {
  max-width: 590px;
  margin-top: 26px;
}

.faq-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 20px;
  background: var(--faq-white);
  border: 1.5px solid var(--faq-line);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(35, 57, 43, 0.06);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-search-bar:focus-within {
  border-color: var(--faq-accent);
  box-shadow: 0 12px 36px rgba(40, 104, 73, 0.16);
}

.faq-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--faq-accent);
  font-size: 1rem;
  user-select: none;
}

.faq-search-input {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--faq-ink);
  font-family: "Manrope", "DM Sans", sans-serif;
  font-size: 0.92rem;
}

.faq-search-input::placeholder {
  color: #92a399;
}

.faq-search-input::-webkit-search-cancel-button,
.faq-search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.faq-search-clear {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #eef2ed;
  color: #5d7165;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.faq-search-clear:hover {
  background: #dde5db;
  color: var(--faq-ink);
}

.faq-search-clear.visible {
  display: inline-flex;
}

.faq-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 11px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--faq-accent);
  color: #ffffff;
  font-family: "Manrope", "DM Sans", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.faq-search-btn i {
  font-size: 0.78rem;
}

.faq-search-btn:hover {
  background: var(--faq-accent-dark);
  transform: translateY(-1px);
}

/* Quick category filter pills */
.faq-category-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px auto 0;
}

.faq-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: var(--faq-white);
  border: 1px solid var(--faq-line);
  border-radius: 999px;
  color: #55675c;
  font-family: "Manrope", "DM Sans", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease,
    transform 0.22s ease, box-shadow 0.22s ease;
}

.faq-pill:hover {
  border-color: var(--faq-accent);
  background: #f7faf5;
  color: var(--faq-accent);
  transform: translateY(-1px);
}

.faq-pill.active {
  background: var(--faq-accent);
  border-color: var(--faq-accent);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(40, 104, 73, 0.22);
}

.faq-pill .pill-count {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.07);
  font-size: 0.7rem;
  font-weight: 800;
}

.faq-pill.active .pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Support row */
.faq-hero-support-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
  color: var(--faq-muted);
  font-size: 0.9rem;
}

.faq-hero-support-row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--faq-accent);
  font-weight: 700;
  transition: color 0.2s ease, gap 0.2s ease;
}

.faq-hero-support-row a i {
  font-size: 0.78rem;
}

.faq-hero-support-row a:hover {
  color: var(--faq-accent-dark);
  gap: 9px;
}

/* Hero visual */
.faq-hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 370px;
}

.faq-hero-blob {
  position: absolute;
  width: 84%;
  height: 88%;
  background: #e6f0e2;
  border-radius: 48% 52% 44% 56%;
}

.faq-hero-photo {
  position: relative;
  width: 80%;
  height: 330px;
  object-fit: cover;
  border-radius: 48% 48% 26px 26px;
  box-shadow: var(--faq-shadow);
}

.faq-floating-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  background: var(--faq-white);
  border: 1px solid #edf2ea;
  border-radius: 15px;
  box-shadow: var(--faq-shadow);
}

.faq-floating-card > i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--faq-accent-light);
  color: var(--faq-accent);
  font-size: 0.95rem;
}

.faq-floating-card span {
  display: grid;
  line-height: 1.3;
}

.faq-floating-card b {
  color: var(--faq-ink);
  font-family: "Manrope", "DM Sans", sans-serif;
  font-size: 0.8rem;
}

.faq-floating-card small {
  color: var(--faq-muted);
  font-size: 0.7rem;
}

.faq-card-top {
  top: 26px;
  right: 0;
}

.faq-card-bottom {
  bottom: 20px;
  left: 0;
}

/* ========================================================
   STATUS BAR / ACCORDION CONTROLS
   ======================================================== */
.faq-status-bar {
  width: min(1160px, calc(100% - 48px));
  margin: 36px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: var(--faq-white);
  border: 1px solid var(--faq-line);
  border-radius: 16px;
  box-shadow: var(--faq-shadow-sm);
}

.faq-status-text {
  color: var(--faq-ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.faq-status-text em {
  color: var(--faq-accent);
  font-style: normal;
}

.faq-accordion-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-toggle-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--faq-white);
  border: 1px solid #cbd9ce;
  border-radius: 999px;
  color: var(--faq-accent);
  font-family: "Manrope", "DM Sans", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    transform 0.2s ease;
}

.faq-toggle-all-btn i {
  font-size: 0.72rem;
}

.faq-toggle-all-btn:hover {
  background: var(--faq-accent);
  border-color: var(--faq-accent);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ========================================================
   CATEGORIES & ACCORDION
   ======================================================== */
.faq-main-content {
  width: min(1160px, calc(100% - 48px));
  margin: 30px auto 84px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.faq-category-block {
  padding: 26px 28px 30px;
  background: linear-gradient(180deg, #f7faf4 0%, #f3f8f0 100%);
  border: 1px solid #e3ece0;
  border-radius: 26px;
  box-shadow: 0 10px 30px rgba(35, 57, 43, 0.035);
  scroll-margin-top: 110px;
}

main .faq-category-block {
  background-color: #f5f9f2 !important;
  background-image: linear-gradient(180deg, #f7faf4 0%, #f3f8f0 100%) !important;
}

.faq-category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px dashed #d7e3d4;
}

.faq-category-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--faq-accent), var(--faq-accent-dark));
  color: #ffffff;
  font-size: 1.25rem;
  box-shadow: 0 8px 18px rgba(40, 104, 73, 0.2);
}

.faq-category-title-wrap {
  flex: 1;
  min-width: 0;
}

.faq-category-title-wrap h2 {
  margin: 0 0 4px;
  color: var(--faq-ink);
  font-size: 1.55rem;
  letter-spacing: -0.5px;
}

.faq-category-title-wrap p {
  margin: 0;
  color: var(--faq-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.faq-category-count {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 6px 13px;
  background: var(--faq-white);
  border: 1px solid #d8e6d6;
  border-radius: 999px;
  color: var(--faq-accent);
  font-family: "Manrope", "DM Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
}

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

.faq-item {
  overflow: hidden;
  background: var(--faq-white);
  border: 1px solid #e4ebe1;
  border-radius: 16px;
  box-shadow: var(--faq-shadow-sm);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.faq-item:hover {
  border-color: #c9dbcc;
  box-shadow: 0 10px 26px rgba(35, 57, 43, 0.08);
  transform: translateY(-2px);
}

.faq-item.active {
  border-color: #bdd6c3;
  box-shadow: 0 12px 30px rgba(40, 104, 73, 0.09);
}

.faq-question-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 17px 20px;
  border: 0;
  background: transparent;
  color: var(--faq-ink);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.faq-question-btn:hover {
  background: #f8fbf7;
}

.faq-item.active .faq-question-btn {
  background: #f6faf5;
}

.faq-question-content {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 1;
  min-width: 0;
}

.faq-q-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--faq-accent-light);
  color: var(--faq-accent);
  font-family: "Manrope", "DM Sans", sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  transition: background 0.22s ease, color 0.22s ease;
}

.faq-item.active .faq-q-mark {
  background: var(--faq-accent);
  color: #ffffff;
}

.faq-question-text {
  color: var(--faq-ink);
  font-family: "Manrope", "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.faq-question-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--faq-soft);
  color: var(--faq-accent);
  font-size: 0.86rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.22s ease,
    color 0.22s ease;
}

.faq-item.active .faq-question-icon {
  background: var(--faq-accent);
  color: #ffffff;
  transform: rotate(45deg);
}

/* Answer panel */
.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s ease;
}

.faq-item.active .faq-answer-panel {
  opacity: 1;
}

.faq-answer-content {
  padding: 2px 22px 22px 63px;
  color: #495950;
  font-size: 0.94rem;
  line-height: 1.75;
}

.faq-answer-content p {
  margin: 0 0 12px;
  color: #495950;
}

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

.faq-answer-content ul,
.faq-answer-content ol {
  margin: 8px 0 14px 18px;
  padding: 0;
}

.faq-answer-content li {
  margin-bottom: 6px;
  color: #495950;
}

.faq-answer-content a {
  color: var(--faq-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-answer-content a:hover {
  color: var(--faq-accent-dark);
}

.faq-answer-tip {
  margin-top: 14px;
  padding: 12px 15px;
  background: #f1f7f1;
  border-left: 3px solid var(--faq-accent);
  border-radius: 0 10px 10px 0;
  color: #3b5043;
  font-size: 0.87rem;
}

.faq-answer-tip i {
  margin-right: 5px;
  color: var(--faq-accent);
}

.faq-inline-icon {
  color: var(--faq-accent);
  font-size: 0.85em;
}

/* Highlighted search match (green palette only) */
.faq-highlight {
  padding: 1px 4px;
  border-radius: 4px;
  background-color: #dff0dc;
  color: #1d5039;
  font-weight: 700;
}

/* Empty search state */
.faq-no-results {
  display: none;
  margin: 0;
  padding: 58px 24px;
  background: var(--faq-white);
  border: 1px dashed #cddbd0;
  border-radius: 22px;
  text-align: center;
}

.faq-no-results.visible {
  display: block;
}

.faq-no-results-icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--faq-accent-light);
  color: var(--faq-accent);
  font-size: 1.7rem;
}

.faq-no-results h3 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.faq-no-results p {
  max-width: 460px;
  margin: 0 auto 22px;
  color: var(--faq-muted);
}

.faq-no-results-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.faq-no-results-actions .button-outline:hover {
  background: var(--faq-accent);
  color: #ffffff;
}

/* ========================================================
   FINAL CTA
   ======================================================== */
.faq-final-cta .cta-actions {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  gap: 14px;
}

.faq-final-cta h2,
.faq-final-cta p {
  text-align: left !important;
}

.faq-final-cta .eyebrow {
  margin-left: 0;
}

.faq-final-cta .button-outline {
  background: transparent;
  border-color: var(--faq-accent);
  color: var(--faq-accent);
}

.faq-final-cta .button-outline:hover {
  background: var(--faq-accent);
  border-color: var(--faq-accent);
  color: #ffffff;
}

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 980px) {
  .faq-hero-main {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .faq-hero-copy {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
  }

  .faq-hero .hero-subtitle {
    margin-inline: auto;
  }

  .faq-search-wrapper {
    margin-inline: auto;
  }

  .faq-hero-visual {
    width: 100%;
    max-width: 560px;
    min-height: 330px;
    margin: 0 auto;
  }

  .faq-hero-photo {
    height: 290px;
  }
}

@media (max-width: 768px) {
  .faq-hero {
    padding: 36px 0 42px;
  }

  .faq-badge-strip {
    font-size: 0.68rem;
  }

  .faq-hero h1 {
    font-size: clamp(2.1rem, 7vw, 2.8rem);
    letter-spacing: -1px;
  }

  .faq-search-bar {
    padding: 5px 6px 5px 15px;
  }

  .faq-search-btn {
    padding: 10px 16px;
    font-size: 0.8rem;
  }

  .faq-category-pills {
    gap: 8px;
    margin-top: 28px;
  }

  .faq-pill {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .faq-main-content {
    gap: 20px;
    margin-bottom: 60px;
  }

  .faq-category-block {
    padding: 20px 18px 24px;
    border-radius: 20px;
  }

  .faq-category-header {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 15px;
  }

  .faq-category-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    font-size: 1.05rem;
  }

  .faq-category-title-wrap h2 {
    font-size: 1.32rem;
  }

  .faq-category-title-wrap p {
    font-size: 0.82rem;
  }

  .faq-category-count {
    display: none;
  }

  .faq-question-btn {
    padding: 15px 16px;
  }

  .faq-question-text {
    font-size: 0.94rem;
  }

  .faq-answer-content {
    padding: 0 16px 18px 16px;
  }

  .faq-status-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  .faq-hero-visual {
    min-height: 290px;
  }

  .faq-hero-photo {
    width: 86%;
    height: 255px;
  }

  .faq-floating-card {
    gap: 8px;
    padding: 9px 12px;
  }

  .faq-floating-card > i {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .faq-floating-card b {
    font-size: 0.72rem;
  }

  .faq-floating-card small {
    display: none;
  }

  .faq-card-top {
    top: 12px;
    right: 0;
  }

  .faq-card-bottom {
    bottom: 8px;
    left: 0;
  }

  .faq-search-btn {
    padding: 10px 14px;
  }

  .faq-pill {
    padding: 7px 12px;
    font-size: 0.76rem;
  }

  .faq-category-block {
    padding: 16px 14px 20px;
  }

  .faq-category-icon {
    width: 42px;
    height: 42px;
  }

  .faq-category-title-wrap h2 {
    font-size: 1.2rem;
  }

  .faq-question-btn {
    padding: 14px;
  }

  .faq-question-text {
    font-size: 0.9rem;
  }

  .faq-q-mark {
    display: none;
  }

  .faq-question-icon {
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
  }

  .faq-final-cta .cta-actions {
    width: 100%;
    margin-top: 18px;
  }

  .faq-final-cta .cta-actions .button {
    width: 100%;
  }
}
