/* Frequently asked questions (faq.tpl). Tokens from front.css. */

body.page-faq {
  background: var(--soft);
}

/* TOP */
.faq-top {
  padding: 34px 0 8px;
}
.faq-top .eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-ink);
}
.faq-top h1 {
  margin: 0;
  font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; color: var(--ink);
}
.faq-top p {
  margin: 10px 0 0;
  font-family: Figtree, "Segoe UI", system-ui, sans-serif; font-size: 16px; line-height: 1.5; color: var(--muted);
}
.faq-search {
  position: relative;
  display: block;
  max-width: 560px;
  margin-top: 20px;
}
.faq-search i {
  position: absolute; left: 16px; top: 50%;
  margin-top: -8px;
  font-size: 15px; color: var(--brand-ink);
}
.faq-search input {
  display: block;
  width: 100%; height: 50px;
  padding: 0 16px 0 44px;
  font-family: Figtree, "Segoe UI", system-ui, sans-serif; font-size: 16px; font-weight: 500; color: var(--ink);
  background: #FFF;
  border: 1px solid #D6DEDB;
  border-radius: 14px;
  -webkit-appearance: none; appearance: none;
}
.faq-search input:focus {
  border-color: var(--brand-ink);
  box-shadow: 0 0 0 3px rgba(11, 127, 105, 0.15);
}
.faq-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 16px;
}
.faq-chips a, .faq-chips a:hover {
  padding: 8px 14px;
  font-family: Figtree, "Segoe UI", system-ui, sans-serif; font-size: 14px; font-weight: 600; color: var(--ink);
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.faq-chips a:hover {
  color: var(--brand-ink);
  border-color: var(--brand);
}

/* LIST */
.faq-wrap {
  display: flex; flex-direction: column; gap: 20px;
  padding: 18px 0 56px;
}
.faq-main {
  min-width: 0;
}
.faq-group {
  margin-bottom: 22px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.faq-group h2 {
  margin: 0 0 10px;
  font-size: 19px; font-weight: 800; color: var(--ink);
}
.faq-item {
  margin-bottom: 8px;
  font-family: Figtree, "Segoe UI", system-ui, sans-serif;
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: 14px;
  scroll-margin-top: calc(var(--header-h) + 16px);
  transition: border-color 0.15s;
}
.faq-item[open] {
  border-color: #CFE3DD;
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px;
  font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--ink);
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary i {
  flex: none;
  font-size: 12px; color: var(--muted);
  transition: transform 0.2s ease;
}
.faq-item[open] summary i {
  transform: rotate(180deg);
}
.faq-item summary:hover span {
  color: var(--brand-ink);
}
.faq-answer {
  padding: 0 18px 18px;
  font-size: 15px; line-height: 1.65; color: #34413D;
}
.faq-answer a {
  color: var(--brand-ink);
}
.faq-empty {
  margin: 0; padding: 20px;
  font-family: Figtree, sans-serif; font-size: 15px; color: var(--muted); text-align: center;
  background: #FFF;
  border: 1px dashed var(--line);
  border-radius: 14px;
}

/* HELP */
.faq-help {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px;
  font-family: Figtree, "Segoe UI", system-ui, sans-serif;
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.faq-help-icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  font-size: 18px; color: var(--brand-ink);
  background: var(--brand-soft);
  border-radius: 12px;
}
.faq-help h2 {
  margin: 4px 0 0;
  font-family: Raleway, sans-serif; font-size: 19px; font-weight: 800; color: var(--ink);
}
.faq-help p {
  margin: 0 0 4px;
  font-size: 14px; line-height: 1.5; color: var(--muted);
}
.faq-contact, .faq-contact:hover {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; color: var(--ink);
  border: 0;
  overflow-wrap: anywhere;
}
.faq-contact i {
  width: 16px;
  color: var(--brand-ink); text-align: center;
}
.faq-button, .faq-button:hover {
  display: flex; align-items: center; justify-content: center;
  height: 46px;
  margin-top: 6px;
  font-size: 15px; font-weight: 700; color: var(--ink);
  background: var(--action);
  border: 0;
  border-radius: 12px;
}
.faq-button:hover {
  background: var(--action-hover);
}

@media screen and (min-width: 768px) {
  .faq-top {
    padding-top: 48px;
  }
  .faq-top h1 {
    font-size: 40px;
  }
}
@media screen and (min-width: 1024px) {
  .faq-wrap {
    display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 28px;
  }
  .faq-side {
    position: sticky; top: calc(var(--header-h) + 20px);
    margin-top: 32px;
  }
}
