/* ===== FAQ PAGE ===== */
:root {
  --faq-bg: #f5f5f8;
  --faq-text: #2c2d2e;
  --faq-muted: #737373;
  --faq-blue: #005ff9;
}

.faq-page {
  min-height: calc(100vh - 160px);
  padding: 0 0 100px;
  background:
    url("/images/homepage/bg-pattern.png") center 0 / 33.27% auto repeat,
    var(--faq-bg);
}

.faq-container {
  max-width: 1340px;
  padding: 0 50px;
}

/* Breadcrumbs */
.faq-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.21;
  color: var(--faq-muted);
  padding: 30px 0;
}

.faq-breadcrumbs__link {
  color: var(--faq-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.faq-breadcrumbs__link:hover {
  color: var(--faq-blue);
}

.faq-breadcrumbs__sep {
  color: var(--faq-muted);
}

/* Section */
.faq-section {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.faq-section--ask {
  margin-top: 40px;
}

/* Title */
.faq-title {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--faq-text);
  margin: 0;
}

.faq-title--h2 {
  font-size: 40px;
  line-height: 1;
}

/* Filters */
.faq-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.faq-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 42px;
  padding: 0 20px;
  border-radius: 9999px;
  border: 0;
  background: #fff;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.21;
  color: var(--faq-text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-filter:hover {
  background: #f4f5f7;
}

.faq-filter.is-active {
  background: var(--faq-blue);
  color: #fff;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 458px;
  overflow: hidden;
}

.faq-accordion.is-expanded {
  max-height: none;
}

/* FAQ Item */
.faq-item {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
}

.faq-item__head {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.faq-item__q {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--faq-text);
  flex: 1;
}

.faq-item__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(180deg);
}

.faq-item__body {
  padding: 0 24px 24px;
}

.faq-item__a {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--faq-text);
}

/* ===== ASK FORM ===== */
.faq-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 40px;
  border-radius: 32px;
  background: #fff;
}

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

/* Textarea */
.faq-input--area {
  width: 100%;
  min-height: 140px;
  padding: 20px;
  border-radius: 24px;
  border: 0;
  background: #f4f5f7;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--faq-text);
  resize: vertical;
}

.faq-input--area::placeholder {
  color: var(--faq-text);
  opacity: 1;
}

/* Input Row */
.faq-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* Input Fields with Header */
.faq-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px;
  border-radius: 9999px;
  background: #f4f5f7;
}

.faq-input-wrap__label {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.21;
  color: var(--faq-muted);
}

.faq-input-wrap__input {
  border: 0;
  padding: 0;
  background: transparent;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.21;
  color: var(--faq-text);
  outline: none;
}

.faq-input-wrap__input::placeholder {
  color: var(--faq-text);
  opacity: 1;
}

/* Form Bottom */
.faq-form__bottom {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  margin-top: 6px;
}

.faq-form__submit {
  flex-shrink: 0;
}

.faq-form__checks {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Checkbox */
.faq-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.faq-check__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.faq-check__box {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--faq-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.faq-check__box svg {
  width: 14px;
  height: 14px;
  color: #fff;
}

.faq-check__input:not(:checked) + .faq-check__box {
  background: #f4f5f7;
}

.faq-check__input:not(:checked) + .faq-check__box svg {
  display: none;
}

.faq-check__text {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.21;
  color: var(--faq-muted);
}

.faq-check__text a {
  color: var(--faq-blue);
  text-decoration: none;
}

.faq-check__text a:hover {
  text-decoration: underline;
}

/* Success Message */
.faq-form__success {
  margin-top: 10px;
  border-radius: 16px;
  padding: 16px 20px;
  background: rgba(10, 143, 47, 0.08);
  color: #0a8f2f;
  font-weight: 600;
  font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .faq-container {
    padding: 0 30px;
  }
}

@media (max-width: 991px) {
  .faq-title {
    font-size: 40px;
  }

  .faq-title--h2 {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .faq-page {
    padding: 0 0 60px;
  }

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

  .faq-breadcrumbs {
    padding: 20px 0;
    font-size: 14px;
  }

  .faq-title {
    font-size: 32px;
  }

  .faq-title--h2 {
    font-size: 24px;
  }

  .faq-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .faq-filter {
    flex-shrink: 0;
  }

  .faq-item__head {
    padding: 20px;
  }

  .faq-item__q {
    font-size: 16px;
  }

  .faq-item__body {
    padding: 0 20px 20px;
  }

  .faq-form {
    padding: 24px;
    border-radius: 24px;
  }

  .faq-form__row {
    grid-template-columns: 1fr;
  }

  .faq-form__bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .faq-form__submit {
    width: 100%;
  }

  .faq-form__checks {
    gap: 12px;
  }

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