/* ========================================================
   FAQ PAGE — Fresh Face Clinic
======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --teal-primary: #a4b697;
  /* Active tab - avocado green */
  --teal-dark: #9b8888;
  --teal-light: #e6ebe3;
  /* Inactive tab - light avocado */
  --bg-faq: #ffffff;
  --bg-item: #f3f3f3;
  --tx-dark: #333;
  --tx-mid: #666;
  --font: 'Plus Jakarta Sans', sans-serif;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

body {
  background: var(--bg-faq);
  color: var(--tx-dark);
  font-family: var(--font);
  overflow-x: hidden;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* ==============================================
   HERO
============================================== */
.faq-hero {
  background: #f1f2f3;
  margin-top: -120px;
  padding-top: 180px;
  padding-bottom: 60px;
  text-align: center;
}

.faq-hero-inner h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  color: #6a7482;
  margin: 0 0 10px;
}

.faq-hero-inner p {
  color: #7d8591;
  font-size: 16px;
}

/* ==============================================
   FAQ SECTION
============================================== */
.faq-section {
  padding: 60px 0 100px;
}

.faq-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 5%;
}

/* CONTROLS (TABS + SEARCH) */
.faq-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.faq-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.faq-tab {
  border: none;
  background: var(--teal-light);
  color: var(--tx-mid);
  font-size: 14.5px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s var(--ease);
}

.faq-tab:hover {
  background: #d4e8e6;
}

.faq-tab.active {
  background: var(--teal-primary);
  color: #fff;
}

.faq-search-box {
  display: flex;
  align-items: center;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  padding: 10px 15px;
  background: #fff;
  width: 300px;
  max-width: 100%;
}

.faq-search-box svg {
  margin-right: 10px;
  flex-shrink: 0;
}

.faq-search-box input {
  border: none;
  outline: none;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--tx-dark);
  width: 100%;
}

.faq-search-box input::placeholder {
  color: #a0a0a0;
}

/* FAQ ITEMS */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* Space antar FAQ */
}

.faq-category {
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* Space antar FAQ item */
}

.faq-item {
  background: var(--bg-item);
  border-radius: 15px 15px 15px 0;
  /* Sudut 90 derajat di kiri bawah */
  overflow: hidden;
  transition: background 0.3s var(--ease);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: #555;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  font-family: inherit;
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--teal-primary);
}

.faq-question svg {
  color: #888;
  flex-shrink: 0;
  margin-left: 15px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
  background: var(--bg-item);
}

.faq-answer p,
.faq-answer ul {
  margin: 0;
  padding: 0 24px 18px;
  color: #666;
  font-size: 14.5px;
  line-height: 1.6;
}

.faq-answer ul {
  padding-left: 44px;
}

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

/* JS ACTIVE STATE */
.faq-item.active .faq-answer {
  max-height: 500px;
  /* High enough to show content */
}

.faq-item.active .faq-question {
  color: var(--teal-primary);
}

.faq-item.active .icon-plus {
  display: none;
}

.faq-item.active .icon-minus {
  display: block !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .faq-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .faq-search-box {
    width: 100%;
  }

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

  .faq-answer p,
  .faq-answer ul {
    padding: 0 15px 15px;
    font-size: 13.5px;
  }

  .faq-answer ul {
    padding-left: 35px;
  }
}