/* =====================================================
   FAQ Widget — Public Styles
   Matched to real site: bordered accordion list, blue
   accent, +/- expand icon.
   ===================================================== */

.faq-widget {
  --primary: #1A73E8;
  --primary-dark: #1557B0;
  --surface: #FFFFFF;
  --on-surface: #1A1A2E;
  --on-surface-muted: #5F6368;
  --border: #DFE1E6;
  max-width: 760px;
  margin: 0 auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--on-surface);
}

.faq-widget__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.faq-widget__title { font-size: 22px; margin: 0; font-family: 'Poppins', sans-serif; font-weight: 600; }
.faq-widget__empty { color: var(--on-surface-muted); font-size: 14px; }

.faq-widget .btn {
  border: none; border-radius: 8px; padding: 10px 18px;
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.btn--outline-cyan {
  background: transparent; border: 1px solid var(--primary); color: var(--primary);
}
.btn--outline-cyan:hover { background: var(--primary); color: #fff; }
.btn--primary-cyan { background: var(--primary); color: #fff; width: 100%; margin-top: 16px; }
.btn--primary-cyan:hover { background: var(--primary-dark); }

.faq-widget__list {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }

.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  text-align: left;
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: var(--on-surface);
}
.faq-item__q:hover { background: #FAFBFC; }

.faq-item__icon {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--primary);
  transition: transform 0.15s ease;
  font-weight: 400;
}

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

.faq-item__a {
  display: none;
  padding: 0 18px 18px;
  font-size: 14px;
  line-height: 1.55;
}

.faq-item.is-open .faq-item__a { display: block; }
.faq-item__a p { margin: 0 0 10px; color: var(--on-surface-muted); }

.faq-item__like {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  color: var(--on-surface-muted);
}
.faq-item__like:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.faq-item__like.is-liked { background: #E8F0FE; border-color: var(--primary); color: var(--primary-dark); }
.faq-item__like:disabled { cursor: default; }

/* ---------- Ask a Question Modal ---------- */
.faq-modal[hidden] { display: none; }
.faq-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.faq-modal__backdrop { position: absolute; inset: 0; background: rgba(26,26,46,0.55); }

.faq-modal__form {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 28px 24px;
  width: 100%; max-width: 420px;
  font-family: inherit;
}

.faq-modal__form h3 { margin: 0 0 16px; font-family: 'Poppins', sans-serif; font-weight: 600; }
.faq-modal__form label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 5px; }
.faq-modal__form input[type="text"],
.faq-modal__form textarea {
  width: 100%; padding: 9px 10px; border: 1px solid var(--border);
  border-radius: 6px; font-family: inherit; font-size: 14px;
}
.faq-modal__form input:focus, .faq-modal__form textarea:focus {
  outline: 2px solid var(--primary); outline-offset: 1px;
}

.faq-modal__close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; font-size: 22px; line-height: 1;
  cursor: pointer; color: var(--on-surface-muted);
}

.faq-modal__msg { font-size: 13px; margin-top: 10px; min-height: 18px; }
.faq-modal__msg.is-error { color: #C5221F; }
.faq-modal__msg.is-success { color: #188038; }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
