/* Central FAQ page */
.egy-faq-hero {
  position: relative;
  background: linear-gradient(180deg, #f7f8fa 0%, #fff 78%);
  border-bottom: 1px solid var(--egy-border, #e6e8ee);
  padding: 32px 0 28px;
  overflow: hidden;
}
.egy-faq-hero::before {
  content: "";
  position: absolute;
  inset-inline-end: -8%;
  top: -40%;
  width: min(46vw, 420px);
  height: min(46vw, 420px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(213, 0, 24, .07), transparent 68%);
  pointer-events: none;
}
.egy-faq-hero__inner { position: relative; }
.egy-faq-hero__crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--egy-muted, #5b6170);
  margin-bottom: 16px;
}
.egy-faq-hero__crumb a { color: inherit; text-decoration: none; }
.egy-faq-hero__crumb a:hover,
.egy-faq-hero__crumb a:focus-visible { color: var(--egy-red, #d50018); outline: none; }
.egy-faq-hero__sep { opacity: .55; }
.egy-faq-hero__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--egy-red, #d50018);
}
.egy-faq-hero__title {
  margin: 0 0 10px;
  max-width: 18ch;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  line-height: 1.15;
  font-weight: 800;
  color: var(--egy-ink, #12151c);
  letter-spacing: -0.03em;
}
.egy-faq-hero__lead {
  margin: 0;
  max-width: 40rem;
  color: var(--egy-muted, #5b6170);
  font-size: 1.02rem;
  line-height: 1.6;
}

.egy-faq-page {
  padding: 28px 0 56px;
  background: #fff;
}

/* Controls bar — search + service filter + actions on one row */
.egy-faq-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 250px) auto auto;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid var(--egy-border, #e6e8ee);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(18, 21, 28, .035);
}

.egy-faq-search {
  position: relative;
  display: block;
  margin: 0;
  width: auto;
  min-width: 0;
  max-width: none;
}
.egy-faq-search__ico {
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: #7a8190;
  pointer-events: none;
  z-index: 1;
}
.egy-faq-search__ico svg {
  display: block;
  width: 16px !important;
  height: 16px !important;
  max-width: 16px;
  max-height: 16px;
}
.egy-faq-search input[type="search"] {
  display: block;
  width: 100%;
  min-width: 0;
  height: 48px;
  margin: 0 !important;
  border: 1px solid var(--egy-border, #e6e8ee) !important;
  border-radius: 12px;
  background: #f7f8fa !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 14px 0 42px;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  color: var(--egy-ink, #12151c);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.egy-faq-search input[type="search"]:focus,
.egy-faq-search input[type="search"]:focus-visible {
  background: #fff !important;
  border-color: rgba(213, 0, 24, .45) !important;
  box-shadow: 0 0 0 3px rgba(213, 0, 24, .1) !important;
}
.egy-faq-search input[type="search"]::-webkit-search-decoration,
.egy-faq-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
body.egy-rtl .egy-faq-search input[type="search"] {
  padding: 0 42px 0 14px;
}

.egy-faq-filter {
  display: block;
  margin: 0;
  width: auto;
  min-width: 0;
  max-width: none;
  align-self: center;
}
.egy-faq-filter select {
  display: block;
  width: 100%;
  min-width: 0;
  height: 48px;
  margin: 0 !important;
  box-sizing: border-box;
  border: 1px solid var(--egy-border, #e6e8ee);
  border-radius: 12px;
  padding: 0 38px 0 14px;
  background-color: #f7f8fa;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23555b68' d='M1.2 1.3 6 6.1l4.8-4.8 1.2 1.2L6 8.4 0 2.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px 7px;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 14px;
  color: var(--egy-ink, #12151c);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.egy-faq-filter select:focus,
.egy-faq-filter select:focus-visible {
  outline: none;
  background-color: #fff;
  border-color: rgba(213, 0, 24, .45);
  box-shadow: 0 0 0 3px rgba(213, 0, 24, .1);
}
body.egy-rtl .egy-faq-filter select {
  padding: 0 14px 0 38px;
  background-position: left 14px center;
}

.egy-faq-count {
  margin: 0;
  display: inline-flex;
  align-items: center;
  height: 48px;
  font-size: 13px;
  font-weight: 600;
  color: var(--egy-muted, #5b6170);
  white-space: nowrap;
}
.egy-faq-reset {
  appearance: none;
  box-sizing: border-box;
  border: 1px solid var(--egy-border, #e6e8ee);
  border-radius: 12px;
  background: #fff;
  color: var(--egy-ink, #12151c);
  width: auto;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.egy-faq-reset:hover,
.egy-faq-reset:focus-visible {
  border-color: var(--egy-red, #d50018);
  color: var(--egy-red, #d50018);
  outline: none;
}

.egy-faq-main { min-width: 0; }

.egy-faq-group {
  margin: 0 0 16px;
  padding: 18px 18px 8px;
  border: 1px solid var(--egy-border, #e6e8ee);
  border-radius: 14px;
  background: #fff;
  scroll-margin-top: 110px;
}
.egy-faq-group:last-child { margin-bottom: 0; }
.egy-faq-group__head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef0f4;
}
.egy-faq-group__tag {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--egy-red, #d50018);
}
.egy-faq-group__title {
  margin: 0 0 6px;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--egy-ink, #12151c);
  letter-spacing: -0.02em;
}
.egy-faq-group__intro {
  color: var(--egy-muted, #5b6170);
  font-size: 0.94rem;
  line-height: 1.55;
  max-width: 48rem;
}
.egy-faq-group__intro p { margin: 0 0 0.35em; }
.egy-faq-group__intro p:last-child { margin-bottom: 0; }
.egy-faq-group__link {
  flex: 0 0 auto;
  align-self: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--egy-red, #d50018);
  text-decoration: none;
  white-space: nowrap;
}
.egy-faq-group__link:hover,
.egy-faq-group__link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.egy-faq-empty {
  border: 1px dashed var(--egy-border, #e6e8ee);
  border-radius: 12px;
  padding: 20px;
  color: var(--egy-muted, #5b6170);
  background: #fafbfc;
  margin: 0 0 16px;
}

.egy-faq-page .egy-acc {
  border-color: #e8eaef;
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.egy-faq-page .egy-acc__btn {
  position: relative;
  padding: 13px 42px 13px 14px;
  gap: 10px;
}
.egy-faq-page .egy-acc__q { flex: 1 1 auto; min-width: 0; line-height: 1.35; }
.egy-faq-page .egy-acc__icon {
  position: absolute;
  inset-inline-end: 16px;
  width: 10px;
  height: 10px;
  border-inline-end: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease;
  opacity: .7;
}
.egy-faq-page .egy-acc__btn[aria-expanded="true"] { background: #fafbfc; }
.egy-faq-page .egy-acc__btn[aria-expanded="true"] .egy-acc__icon {
  transform: rotate(225deg);
  margin-top: 4px;
}
.egy-faq-page .egy-acc__btn:focus-visible {
  outline: 2px solid var(--egy-red, #d50018);
  outline-offset: -2px;
}
.egy-faq-page .egy-acc__panel {
  overflow: visible;
  max-height: none;
  padding: 0 14px 14px;
  color: #3a4050;
  line-height: 1.65;
}
.egy-faq-page .egy-acc__panel a { color: var(--egy-red, #d50018); }

.egy-faq-still {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  justify-content: space-between;
  align-items: center;
  margin-top: 26px;
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid var(--egy-border, #e6e8ee);
  background: linear-gradient(135deg, #fff 0%, #fafbfc 55%, #fff5f6 100%);
}
.egy-faq-still__copy h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--egy-ink, #12151c);
}
.egy-faq-still__copy p {
  margin: 0;
  max-width: 36rem;
  color: var(--egy-muted, #5b6170);
  line-height: 1.5;
}
.egy-faq-still__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

@media (max-width: 760px) {
  .egy-faq-controls {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 200px);
    padding: 12px;
  }
  .egy-faq-count,
  .egy-faq-reset {
    grid-row: 2;
  }
  .egy-faq-count { justify-self: start; }
  .egy-faq-reset { justify-self: end; }
}

@media (max-width: 520px) {
  .egy-faq-controls {
    grid-template-columns: 1fr;
  }
  .egy-faq-count,
  .egy-faq-reset {
    grid-row: auto;
    width: 100%;
    justify-content: center;
  }
  .egy-faq-group { padding: 14px 12px 4px; }
  .egy-faq-group__link { white-space: normal; }
  .egy-faq-still { padding: 16px; }
  .egy-faq-still__actions { width: 100%; }
  .egy-faq-still__actions .egy-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (max-width: 980px) {
  .egy-faq-hero { padding: 24px 0 20px; }
}

body.egy-rtl .egy-faq-hero__title { max-width: none; }
