.by-faq {
  --faq-blue: #07328e;
  --faq-dark: #061e55;
  --faq-red: #e40c23;
  --faq-pale: #eaf5ff;
  --faq-border: #d5e4f6;
  color: #162b4e;
  font-family: Kanit, system-ui, sans-serif;
  font-size: 15px;
}
.by-faq * {
  box-sizing: border-box;
}
.by-faq h1,
.by-faq h2,
.by-faq h3 {
  font-weight: 700;
  color: #062e93;
}
.by-faq h2 {
  font-size: clamp(23px, 2.7vw, 32px);
  margin-bottom: 20px;
}
.by-faq a {
  text-decoration: none;
}
.by-faq .fq-section {
  padding: 35px 0;
}
.by-faq .fq-hero {
  background-image: url('../../images/faq/hero.webp');
  background-position: center;
  background-size: cover;
  padding: 18px 0 40px;
}
.by-faq .breadcrumb a {
  color: #4065aa;
}
.by-faq .fq-hero-center {
  text-align: center;
  max-width: 930px;
  margin: 12px auto 0;
}
.by-faq .fq-tag {
  display: inline-block;
  color: #0645a7;
  border: 1px solid #5089db;
  background: #eef6ff;
  border-radius: 8px;
  font-weight: 600;
  padding: 4px 12px;
  font-size: 13px;
}
.by-faq .fq-hero h1 {
  font-size: clamp(29px, 3.8vw, 45px);
  line-height: 1.27;
  margin: 12px 0;
}
.by-faq .fq-hero-center p {
  color: #40506b;
}
.by-faq .fq-search {
  display: flex;
  align-items: center;
  margin: 23px auto 14px;
  background: white;
  max-width: 790px;
  border: 1px solid #bfd3ef;
  border-radius: 7px;
  box-shadow: 0 6px 22px #06246f12;
  overflow: hidden;
}
.by-faq .fq-search > i {
  color: #8496b5;
  margin: 0 16px;
}
.by-faq .fq-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  padding: 15px 0;
  background: transparent;
}
.by-faq .fq-search button,
.by-faq .fq-btn-red {
  background: var(--faq-red);
  color: #fff;
  border: 0;
  padding: 13px 26px;
  font-weight: 600;
}
.by-faq .fq-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.by-faq .fq-search-tag {
  border: 1px solid #c8d9f0;
  background: #fff;
  color: var(--faq-blue);
  font-size: 13px;
  border-radius: 30px;
  padding: 5px 15px;
}
.by-faq .fq-cats {
  background: #fff;
}
.by-faq .fq-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.by-faq .fq-category-card {
  min-width: 0;
  min-height: 135px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  background: #fff;
  border: 1px solid var(--faq-border);
  border-radius: 8px;
  padding: 17px 14px;
  transition: 0.2s;
}
.by-faq .fq-category-card:hover,
.by-faq .fq-category-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px #06318b14;
  border-color: #477dda;
}
.by-faq .fq-category-card > i {
  font-size: 30px;
  color: #0b4bd2;
}
.by-faq .fq-category-card strong {
  font-size: 15px;
  color: var(--faq-blue);
}
.by-faq .fq-category-card small {
  color: #56729a;
}
.by-faq .fq-featured,
.by-faq .fq-all {
  background: linear-gradient(180deg, #eaf5fd, #f5faff);
}
.by-faq .fq-accordion .accordion-item {
  border: 1px solid #c9daf0;
  border-radius: 6px;
  margin-bottom: 7px;
  overflow: hidden;
}
.by-faq .fq-accordion .accordion-button {
  color: #07348f;
  background: #fff;
  font-weight: 600;
  font-size: 16px;
  gap: 12px;
  padding: 13px 18px;
  box-shadow: none;
}
.by-faq .fq-accordion .accordion-button:not(.collapsed) {
  background: #fff;
  color: #07348f;
  box-shadow: none;
}
.by-faq .fq-accordion .accordion-button:focus-visible {
  outline: 2px solid #1b63da;
}
.by-faq .fq-number {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #e30c27;
  color: #fff;
}
.by-faq .fq-accordion .accordion-body {
  line-height: 1.8;
  padding: 4px 20px 18px 62px;
}
.by-faq .fq-small-link {
  display: inline-block;
  margin-right: 10px;
  color: #0644c8;
  border: 1px solid #bdd5fd;
  background: #f7fbff;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 13px;
}
.by-faq .fq-sidebar {
  background: #fff;
  border: 1px solid var(--faq-border);
  padding: 10px;
  border-radius: 8px;
  position: sticky;
  top: 80px;
}
.by-faq .fq-filter {
  background: #fff;
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  border: 0;
  padding: 12px;
  text-align: left;
  color: #174383;
  border-radius: 5px;
}
.by-faq .fq-filter > i {
  font-size: 19px;
}
.by-faq .fq-filter span {
  margin-left: auto;
}
.by-faq .fq-filter.active,
.by-faq .fq-filter:hover {
  background: #eaf3ff;
  color: #00349f;
  font-weight: 600;
}
.by-faq .fq-sidebar-cta {
  display: flex;
  justify-content: space-between;
  color: #053bac;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #a7c3f9;
  border-radius: 5px;
}
.by-faq .fq-group {
  margin: 0 0 12px;
}
.by-faq .fq-group > h3 {
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 7px;
}
.by-faq .fq-group > h3 i {
  font-size: 23px;
}
.by-faq .fq-group > h3 small {
  color: #7a9acb;
  font-size: 13px;
  font-weight: 400;
}
.by-faq .fq-compact .accordion-button {
  font-size: 14px;
  padding: 10px 15px;
}
.by-faq .fq-compact .accordion-body {
  padding: 8px 16px 17px;
}
.by-faq .fq-empty {
  text-align: center;
  padding: 35px;
  border: 1px dashed #b1c9eb;
}
.by-faq .fq-empty i {
  font-size: 30px;
}
.by-faq .fq-results {
  color: #52739e;
  font-size: 13px;
  margin-bottom: 12px;
}
.by-faq .fq-datasheet {
  background: #e3f1fd;
  padding: 22px 0;
}
.by-faq .fq-datasheet > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.by-faq .fq-datasheet .container > div {
  display: flex;
  gap: 17px;
  align-items: center;
}
.by-faq .fq-datasheet .container > div > i {
  font-size: 35px;
  color: #0a49c9;
}
.by-faq .fq-datasheet strong,
.by-faq .fq-datasheet small {
  display: block;
}
.by-faq .fq-datasheet strong {
  font-size: 21px;
  color: #073a9a;
}
.by-faq .fq-btn-dark {
  display: inline-block;
  background: #153fa4;
  padding: 12px 22px;
  color: #fff;
  border-radius: 5px;
}
.by-faq .fq-contact {
  background: #fff;
}
.by-faq .fq-contact > p,
.by-faq .fq-form-note {
  font-size: 13px;
  color: #6b829c;
}
.by-faq .fq-contact-form label {
  display: block;
  font-size: 13px;
  color: #445f86;
  margin-bottom: 4px;
}
.by-faq .fq-contact-form .form-control {
  border-color: #d4e1f2;
}
.by-faq .fq-contact-card {
  padding: 25px;
  background: linear-gradient(140deg, #063c9d, #031a57);
  color: #fff;
  border-radius: 6px;
  min-height: 330px;
}
.by-faq .fq-contact-card h3 {
  color: #fff;
  font-size: 23px;
  margin-bottom: 21px;
}
.by-faq .fq-contact-card a,
.by-faq .fq-contact-card p {
  display: block;
  color: #fff;
  margin-bottom: 11px;
}
.by-faq .fq-contact-card i {
  margin-right: 8px;
}
.by-faq .fq-contact-card-btn {
  margin-top: 22px;
  padding: 10px 16px;
  background: #e40d28;
  border-radius: 5px;
  width: max-content;
}
@media (max-width: 991px) {
  .by-faq .fq-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .by-faq .fq-sidebar {
    position: static;
  }
}
@media (max-width: 575px) {
  .by-faq .fq-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .by-faq .fq-hero {
    padding-bottom: 27px;
  }
  .by-faq .fq-search button {
    padding: 13px;
  }
  .by-faq .fq-accordion .accordion-body {
    padding: 8px 14px 16px;
  }
  .by-faq .fq-datasheet > .container {
    flex-direction: column;
    align-items: stretch;
  }
  .by-faq .fq-btn-dark {
    text-align: center;
  }
  .by-faq .fq-contact-card {
    min-height: auto;
  }
}

/* FAQ ask-engineer panel: scoped to avoid changing earlier sections */
.by-faq .fq-contact {
  padding: 48px 0 54px;
  background: #fff;
}
.by-faq .fq-consult-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: stretch;
}
.by-faq .fq-consult-main {
  min-width: 0;
}
.by-faq .fq-consult-main h2 {
  font-size: clamp(24px, 2.3vw, 31px);
  margin: 0 0 10px;
  color: #0a2b80;
}
.by-faq .fq-consult-sub {
  font-size: 14px;
  color: #5b6677;
  margin: 0 0 26px;
}
.by-faq .fq-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}
.by-faq .fq-input {
  display: block;
  min-width: 0;
  margin: 0;
}
.by-faq .fq-input input,
.by-faq .fq-input select,
.by-faq .fq-input textarea {
  display: block;
  width: 100%;
  background: #fff;
  border: 1px solid #ccd9ed;
  border-radius: 7px;
  min-height: 46px;
  padding: 11px 14px;
  font: inherit;
  font-size: 14px;
  color: #12356d;
  outline: 0;
}
.by-faq .fq-input textarea {
  resize: vertical;
  min-height: 135px;
}
.by-faq .fq-input input:focus,
.by-faq .fq-input select:focus,
.by-faq .fq-input textarea:focus {
  border-color: #3266c5;
  box-shadow: 0 0 0 3px #3266c51a;
}
.by-faq .fq-input :is(input, textarea)::placeholder {
  color: #8a97aa;
}
.by-faq .fq-wide {
  grid-column: 1/-1;
}
.by-faq .fq-form-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin: 18px 0 12px;
}
.by-faq .fq-file {
  padding: 12px 15px;
  border: 1px solid #c9d7ed;
  border-radius: 7px;
  min-width: 0;
}
.by-faq .fq-file strong {
  display: block;
  font-size: 13px;
  margin-bottom: 7px;
}
.by-faq .fq-file > span {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.by-faq .fq-file input {
  max-width: 100%;
  font-size: 12px;
}
.by-faq .fq-file small {
  font-size: 11px;
  color: #8a94a4;
}
.by-faq .fq-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  color: #37445c;
}
.by-faq .fq-consent input {
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: #1254b8;
}
.by-faq .fq-submit {
  background: #df1922;
  color: white;
  border: 0;
  border-radius: 7px;
  min-width: 195px;
  padding: 13px 26px;
  font-weight: 700;
}
.by-faq .fq-submit i {
  margin-left: 6px;
}
.by-faq .fq-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.by-faq .fq-consult-side {
  min-width: 0;
}
.by-faq .fq-support-panel {
  height: 100%;
  min-height: 450px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #10296b;
  color: #fff;
  padding: 28px 26px;
}
.by-faq .fq-support-content {
  position: relative;
  z-index: 2;
  max-width: 100%;
}
.by-faq .fq-support-panel h3 {
  font-size: 21px;
  line-height: 1.35;
  color: #fff;
  margin: 0 0 22px;
}
.by-faq .fq-support-panel a:not(.fq-line-contact) {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.by-faq .fq-support-panel a i {
  flex-shrink: 0;
}
.by-faq .fq-support-panel p {
  font-size: 13px;
  line-height: 1.65;
  color: #fff;
  margin: 0 0 12px;
  display: flex;
  gap: 10px;
}
.by-faq .fq-support-separator {
  height: 9px;
}
.by-faq .fq-location,
.by-faq .fq-hours {
  max-width: 66%;
}
.by-faq .fq-worker-photo {
  position: absolute;
  bottom: 0;
  right: -20%;
  height: 56%;
  width: 70%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  mask-image: linear-gradient(to top, #000, transparent 100%);
}
.by-faq .fq-line-contact {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #16803b;
  border-radius: 6px;
  padding: 10px 13px;
  color: white;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
}
@media (max-width: 991px) {
  .by-faq .fq-consult-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .by-faq .fq-support-panel {
    min-height: 360px;
  }
  .by-faq .fq-worker-photo {
    width: 45%;
    right: 0;
    height: 80%;
  }
}
@media (max-width: 575px) {
  .by-faq .fq-form-grid,
  .by-faq .fq-form-bottom {
    grid-template-columns: 1fr;
  }
  .by-faq .fq-consult-main h2 {
    font-size: 23px;
  }
  .by-faq .fq-support-panel {
    padding: 22px 18px;
    min-height: 385px;
  }
  .by-faq .fq-worker-photo {
    opacity: 0.18;
    width: 70%;
  }
  .by-faq .fq-location,
  .by-faq .fq-hours {
    max-width: 100%;
  }
  .by-faq .fq-submit {
    width: 100%;
  }
}

/* FAQ enquiry: consent + reCAPTCHA v3 */
.by-faq .fq-form-bottom {
  display: block;
  margin: 18px 0 12px;
}
.by-faq .fq-consent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}
.by-faq .fq-consent input {
  width: 17px;
  height: 17px;
  margin: 0;
}
.by-faq .fq-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
.by-faq .fq-recaptcha-notice {
  font-size: 11px;
  color: #64748b;
  margin: 12px 0 0;
  line-height: 1.6;
}
.by-faq .fq-recaptcha-notice a {
  text-decoration: underline;
}
