/* /faq/assets/css/faq.css
   Matches site aesthetics: dark background, light text, purple header (#391047), gold (#E1B929) accents */

.faq-section {
  background-color: #1e1e1e;
  color: #f4f4f4;
  padding: 3rem 1.5rem;
  margin: 0;
  font-family: inherit;
}

.faq-section__inner {
  max-width: 720px;
  margin: 0 auto;
}

.faq-section__header {
  margin-bottom: 2rem;
  text-align: center;
}

.faq-section__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: #f4f4f4;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.faq-section__description {
  font-size: 1.05rem;
  color: #b9bbca;
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
}

/* Search bar – single horizontal row (overrides global.css form/input/button rules) */
.faq-search-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto;
  margin-top: 0;
  min-height: 46px;
  padding: 0.25rem;
  background-color: #252525;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  overflow: visible;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.faq-search-bar__field {
  flex: 1 1 auto;
  min-width: 10rem;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Visible text box – overrides global form input so the field is always visible */
.faq-search-bar .faq-search-bar__input {
  flex: 1 1 auto;
  min-width: 8rem;
  width: 100%;
  height: 44px;
  margin: 0;
  margin-bottom: 0;
  padding: 0 2.25rem 0 1rem;
  font-size: 1rem;
  line-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background-color: #1e1e1e;
  color: #f4f4f4;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  display: block;
}

.faq-search-bar__clear {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  color: #a8a8a8;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}

.faq-search-bar__clear:hover {
  color: #f4f4f4;
  background-color: rgba(255, 255, 255, 0.1);
}

.faq-search-bar__clear:focus {
  outline: none;
  color: #E1B929;
}

.faq-search-bar__clear[hidden] {
  display: none !important;
}

.faq-search-bar__clear-link {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}

.faq-search-bar__clear-link a {
  color: #E1B929;
  text-decoration: none;
}

.faq-search-bar__clear-link a:hover {
  text-decoration: underline;
}

.faq-search-bar__input::placeholder {
  color: #a8a8a8;
}

/* Remove browser’s search cancel/decorations */
.faq-search-bar__input::-webkit-search-cancel-button,
.faq-search-bar__input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.faq-search-bar .faq-search-bar__input:focus {
  outline: none;
  border-color: #E1B929;
  box-shadow: 0 0 0 2px rgba(225, 185, 41, 0.3);
}

.faq-search-bar .faq-search-bar__btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 5rem;
  max-width: none;
  height: 46px;
  margin: 0;
  padding: 0 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  color: #000;
  background-color: #E1B929;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  box-sizing: border-box;
}

.faq-search-bar__btn:hover {
  background-color: #e8c234;
  color: #000;
}

.faq-search-bar__btn:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.3);
}

/* List – dark cards matching site */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-card {
  background-color: #292727;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: visible;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-card:hover {
  border-color: rgba(225, 185, 41, 0.35);
}

.faq-card.expanded {
  border-color: rgba(225, 185, 41, 0.5);
  box-shadow: 0 0 0 1px rgba(225, 185, 41, 0.2);
}

/* Featured FAQ – gold left border + star badge */
.faq-card--featured {
  border-left: 3px solid #E1B929;
}

.faq-badge {
  display: inline-block;
  margin-left: 0.35rem;
  color: #E1B929;
  font-size: 0.9em;
  vertical-align: middle;
}

/* Question button – light text, gold accent on expand (override global button styles to prevent layout shift) */
.faq-section .faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: #f4f4f4;
  text-align: left;
  background: transparent;
  border: none;
  box-sizing: border-box;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}

.faq-section .faq-question:hover {
  color: #E1B929;
  background-color: rgba(255, 255, 255, 0.03);
  border: none;
  box-shadow: none;
}

.faq-section .faq-question:focus {
  outline: none;
}

.faq-section .faq-question:focus-visible {
  outline: 2px solid #E1B929;
  outline-offset: 2px;
}

.faq-card.expanded .faq-question {
  color: #E1B929;
}

.faq-question__text {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}

/* Toggle icon – chevron down, rotates to up when expanded */
.faq-toggle-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: #b9bbca;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.faq-toggle-icon__symbol {
  display: inline-block;
  font-size: 0.65rem;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-card.expanded .faq-toggle-icon {
  background-color: rgba(225, 185, 41, 0.2);
  color: #E1B929;
}

.faq-card.expanded .faq-toggle-icon__symbol {
  transform: rotate(180deg);
}

/* Answer – muted light text */
.faq-answer {
  padding: 0 1.25rem 1.25rem;
  padding-top: 0;
}

.faq-answer .faq-short-answer,
.faq-answer .faq-full-answer {
  font-size: 1rem;
  line-height: 1.6;
  color: #b9bbca;
}

.faq-answer .faq-short-answer {
  padding-top: 0.25rem;
}

.faq-answer .faq-full-answer {
  padding-top: 0.5rem;
}

.faq-answer .faq-full-answer.hidden,
.faq-answer .faq-short-answer.hidden {
  display: none;
}

.faq-answer .faq-full-answer p:first-child {
  margin-top: 0;
}

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

/* Empty state */
.faq-section__empty,
.no-results {
  text-align: center;
  font-size: 1.05rem;
  color: #b9bbca;
  margin: 2rem 0;
}
