@import url('/pages/modules/header.min.css');
@import url('/pages/modules/footer.min.css');

:root {
  --faq-blue: #007dff;
  --faq-blue-hover: #0059b6;
  --faq-navy: #021b65;
  --faq-text: #21262d;
  --faq-muted: #66717d;
  --faq-line: #dde6ef;
  --faq-line-strong: #c9d8e6;
  --faq-shadow: 0 14px 36px rgba(0, 36, 82, .09);
}

.faq-central {
  color: var(--faq-text);
  background: #f6f8fb;
  font-size: 16px;
  line-height: 1.6;
}

.faq-central-hero {
  padding: 58px 0 96px;
  color: #fff;
  background: linear-gradient(112deg, #000923 0%, #042373 52%, #0756ae 100%);
}

.faq-central-hero .container { text-align: left; }

.faq-central-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: #b9d8ff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.faq-central-eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0dffff;
  box-shadow: 0 0 0 5px rgba(13, 255, 255, .10);
  content: '';
}

.faq-central-hero h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(38px, 4vw, 50px);
  font-weight: 600;
  line-height: 1.10;
  letter-spacing: -.028em;
}

.faq-central-hero p {
  max-width: 820px;
  margin: 0;
  color: #d8e4fa;
  font-size: 17px;
  line-height: 1.62;
}

.faq-search-shell {
  position: relative;
  z-index: 4;
  margin-top: -48px;
}

.faq-search-card {
  width: 100%;
  padding: 24px 28px;
  border: 1px solid var(--faq-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--faq-shadow);
}

.faq-search-card label,
.faq-modal label {
  display: block;
  margin-bottom: 10px;
  color: #1d3048;
  font-size: 14px;
  font-weight: 600;
}

.faq-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 9px;
}

.faq-search-input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--faq-line-strong);
  border-radius: 10px;
  outline: none;
  color: #22334a;
  background: #fff;
  font-size: 15px;
}

.faq-search-input:focus {
  border-color: #66b2ff;
  box-shadow: 0 0 0 3px rgba(0, 125, 255, .09);
}

.faq-search-input::placeholder { color: #8a97a6; }

.faq-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid var(--faq-blue);
  border-radius: 10px;
  color: #fff !important;
  background: var(--faq-blue);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: .18s ease;
}

.faq-button:hover {
  color: #fff !important;
  background: var(--faq-blue-hover);
}

.faq-button-secondary {
  padding: 0 18px;
  border-color: #9ec8ef;
  color: var(--faq-blue-hover) !important;
  background: #f8fbff;
}

.faq-button-secondary:hover {
  border-color: var(--faq-blue);
  color: var(--faq-blue-hover) !important;
  background: #eef7ff;
}

.faq-search-note {
  margin: 12px 0 0;
  color: #6b7888;
  font-size: 12.5px;
}

.faq-central-list { padding: 58px 0 72px; }

.faq-list-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}

.faq-list-head h2 {
  margin: 0 0 5px;
  color: var(--faq-navy);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.018em;
}

.faq-list-head p {
  margin: 0;
  color: var(--faq-muted);
  font-size: 15px;
}

.faq-list-head > span {
  color: #7a8794;
  font-size: 12.5px;
  white-space: nowrap;
}

.faq-list { display: grid; gap: 12px; }

.faq-card {
  padding: 21px 23px;
  border: 1px solid var(--faq-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(0, 36, 82, .045);
  transition: .18s ease;
}

.faq-card:hover {
  border-color: #c4d8ec;
  box-shadow: 0 8px 20px rgba(0, 36, 82, .07);
  transform: translateY(-1px);
}

.faq-card-category {
  margin-bottom: 7px;
  color: var(--faq-blue);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.faq-card-title {
  display: inline-block;
  margin: 0 0 7px;
  color: #122a48;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

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

.faq-card p {
  margin: 0 0 13px;
  color: var(--faq-muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.faq-card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--faq-blue-hover);
  font-size: 12.5px;
  font-weight: 600;
}

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

.faq-empty {
  padding: 30px;
  border: 1px solid var(--faq-line);
  border-radius: 12px;
  color: var(--faq-muted);
  background: #fff;
  text-align: center;
}

.faq-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 31px;
}

.faq-pagination a {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid #d5e0ea;
  border-radius: 9px;
  color: #53657a;
  background: #fff;
  font-size: 13px;
}

.faq-pagination a.active {
  border-color: var(--faq-blue);
  color: #fff;
  background: var(--faq-blue);
}

.faq-pagination a:hover:not(.active) {
  border-color: #9fc9ef;
  color: var(--faq-blue-hover);
}

.faq-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 9, 35, .72);
  backdrop-filter: blur(3px);
}

.faq-modal.open { display: flex; }

.faq-modal-dialog {
  position: relative;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  width: min(900px, 94vw);
  max-height: 88vh;
  overflow: auto;
  border: 1px solid rgba(1, 27, 72, .10);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 9, 35, .30);
}

.faq-modal-context {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px 36px;
  border-right: 1px solid #e2eaf2;
  background: linear-gradient(145deg, #f7fbff 0%, #f1f6ff 100%);
}

.faq-modal-brand {
  margin-bottom: 18px;
  color: var(--faq-blue-hover);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.faq-modal-context h2 {
  margin: 0 0 14px;
  color: #001b36;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.025em;
}

.faq-modal-context p {
  margin: 0;
  color: #53657a;
  font-size: 14px;
  line-height: 1.62;
}

.faq-modal-content {
  padding: 40px 42px 34px;
  background: #fff;
}

.faq-modal-content h2 {
  margin: 0 36px 8px 0;
  color: #001b36;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.25;
}

.faq-modal-content > p {
  margin: 0 0 20px;
  color: #6b788b;
  font-size: 13px;
  line-height: 1.5;
}

.faq-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #68788a;
  background: #f3f6fa;
  font-size: 24px;
  line-height: 1;
}

.faq-modal-close:hover { color: #31455c; background: #eaf0f6; }

.faq-modal textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px 14px;
  resize: vertical;
  border: 1px solid #bdd0e3;
  border-radius: 10px;
  outline: none;
  color: #102038;
  background: #fff;
  font-size: 14px;
}

.faq-modal textarea:focus {
  border-color: #17a2b8;
  box-shadow: 0 0 0 3px rgba(23, 162, 184, .10);
}

.faq-modal small {
  display: block;
  margin: 6px 0 15px;
  color: #7a8794;
}

.faq-modal-content .faq-button { min-height: 46px; }
.faq-honeypot { position: absolute !important; left: -9999px !important; }

.faq-form-error {
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 8px;
  color: #a12626;
  background: #fff1f1;
}

.faq-question-confirm {
  padding: 14px;
  border-radius: 10px;
  color: #30445c !important;
  background: #f3f6fa;
}

.faq-auth-actions { display: flex; gap: 10px; margin-top: 20px; }

@media (max-width: 820px) {
  .faq-modal-dialog { grid-template-columns: 1fr; width: min(620px, 96vw); }
  .faq-modal-context { padding: 30px 28px 24px; border-right: 0; border-bottom: 1px solid #e2eaf2; }
  .faq-modal-context h2 { font-size: 27px; }
  .faq-modal-content { padding: 29px 28px 30px; }
}

@media (max-width: 760px) {
  .faq-central-hero { padding: 42px 0 84px; }
  .faq-central-hero h1 { font-size: 34px; }
  .faq-central-hero p { font-size: 15px; }
  .faq-search-card { padding: 18px; }
  .faq-search-row { grid-template-columns: 1fr; }
  .faq-button { width: 100%; }
  .faq-list-head { display: block; }
  .faq-list-head h2 { font-size: 27px; }
  .faq-list-head > span { display: block; margin-top: 9px; }
  .faq-card { padding: 18px; }
  .faq-auth-actions { display: grid; }
}

@media (max-width: 560px) {
  .faq-modal { align-items: flex-end; padding: 0; }
  .faq-modal-dialog { width: 100%; max-height: 94vh; border-radius: 19px 19px 0 0; }
  .faq-modal-context { padding: 25px 21px 20px; }
  .faq-modal-content { padding: 24px 21px 25px; }
  .faq-modal-close { top: 11px; right: 12px; }
}
