body.acs-faq-page {
  overflow-x: clip !important;
  background: #fff;
}

.acs-faq-page .rey-siteWrapper,
.acs-faq-page .rey-siteContent,
.acs-faq-page #content {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: clip;
}

.acs-faq {
  --acs-red: #e63946;
  --acs-red-dark: #cf2d39;
  --acs-black: #101010;
  --acs-text: #242424;
  --acs-muted: #6d6d6d;
  --acs-line: #ececec;
  --acs-soft: #f7f7f7;
  color: var(--acs-text);
  background: #fff;
}

.acs-faq *,
.acs-faq *::before,
.acs-faq *::after {
  box-sizing: border-box;
}

.acs-faq a {
  color: inherit;
  text-decoration: none;
}

.acs-faq-container {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.acs-faq-kicker {
  margin: 0 0 13px;
  color: var(--acs-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.acs-faq-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 6vw, 84px) 0 clamp(52px, 7vw, 84px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .84), rgba(0, 0, 0, .58)),
    radial-gradient(circle at 82% 18%, rgba(230, 57, 70, .34), transparent 30%),
    radial-gradient(circle at 10% 92%, rgba(255, 255, 255, .12), transparent 28%),
    #111;
}

.acs-faq-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(30px, 6vw, 82px);
  align-items: end;
}

.acs-faq-hero-copy {
  max-width: 780px;
}

.acs-faq-hero .acs-faq-kicker {
  color: #fff;
  opacity: .84;
}

.acs-faq-hero h1 {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 1.02;
  font-weight: 850;
  letter-spacing: 0;
}

.acs-faq-hero-copy > p:not(.acs-faq-kicker) {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: 17px;
  line-height: 1.72;
}

.acs-faq-actions,
.acs-faq-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.acs-faq-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.acs-faq-btn:hover {
  transform: translateY(-1px);
}

.acs-faq-btn-primary {
  color: #fff !important;
  border: 1px solid var(--acs-red);
  background: var(--acs-red);
}

.acs-faq-btn-primary:hover {
  border-color: var(--acs-red-dark);
  background: var(--acs-red-dark);
}

.acs-faq-btn-light {
  color: #111 !important;
  border: 1px solid #fff;
  background: #fff;
}

.acs-faq-btn-outline {
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .72);
  background: transparent;
}

.acs-faq-btn-outline:hover {
  color: #111 !important;
  border-color: #fff;
  background: #fff;
}

.acs-faq-hero-panel {
  display: grid;
  gap: 14px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
}

.acs-faq-hero-panel span {
  color: var(--acs-red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.acs-faq-hero-panel strong {
  color: #fff;
  font-size: 24px;
  line-height: 1.18;
}

.acs-faq-hero-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.acs-faq-hero-panel li {
  position: relative;
  padding-left: 17px;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  line-height: 1.48;
}

.acs-faq-hero-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  background: var(--acs-red);
}

.acs-faq-quick {
  padding: 0 0 clamp(40px, 5vw, 62px);
  margin-top: -38px;
  position: relative;
  z-index: 2;
}

.acs-faq-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.acs-faq-quick-card {
  min-height: 132px;
  padding: 24px;
  border: 1px solid #dedede;
  background: #fff;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .08);
  transition: border-color .2s ease, transform .2s ease;
}

.acs-faq-quick-card:hover {
  border-color: var(--acs-red);
  transform: translateY(-2px);
}

.acs-faq-quick-card span {
  display: block;
  margin-bottom: 10px;
  color: #111;
  font-size: 20px;
  font-weight: 820;
  line-height: 1.18;
}

.acs-faq-quick-card p {
  margin: 0;
  color: var(--acs-muted);
  font-size: 14px;
  line-height: 1.58;
}

.acs-faq-nav {
  position: sticky;
  top: 0;
  z-index: 12;
  padding: 10px 0;
  border-top: 1px solid var(--acs-line);
  border-bottom: 1px solid var(--acs-line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}

.admin-bar .acs-faq-nav {
  top: 32px;
}

.acs-faq-nav-inner {
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.acs-faq-nav-inner::-webkit-scrollbar {
  display: none;
}

.acs-faq-nav-link {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #444;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.acs-faq-nav-link:hover,
.acs-faq-nav-link.is-active {
  color: #111;
  border-color: #ddd;
  background: var(--acs-soft);
}

.acs-faq-nav-link.is-active {
  color: var(--acs-red);
}

.acs-faq-body {
  padding: clamp(54px, 7vw, 88px) 0 0;
}

.acs-faq-section {
  display: grid;
  grid-template-columns: minmax(260px, .42fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
  padding: clamp(34px, 5vw, 58px) 0;
  border-bottom: 1px solid var(--acs-line);
  scroll-margin-top: 88px;
}

.acs-faq-section:first-child {
  padding-top: 0;
}

.acs-faq-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.acs-faq-section-copy {
  position: sticky;
  top: 92px;
}

.admin-bar .acs-faq-section-copy {
  top: 124px;
}

.acs-faq-section-copy h2 {
  margin: 0;
  color: #111;
  font-size: clamp(28px, 3.1vw, 44px);
  line-height: 1.1;
  font-weight: 840;
  letter-spacing: 0;
}

.acs-faq-section-copy > p:not(.acs-faq-kicker) {
  margin: 18px 0 0;
  color: var(--acs-muted);
  font-size: 15px;
  line-height: 1.72;
}

.acs-faq-accordion {
  display: grid;
  gap: 10px;
}

.acs-faq-item {
  border: 1px solid var(--acs-line);
  border-radius: 6px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.acs-faq-item[open] {
  border-color: #d7d7d7;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .05);
}

.acs-faq-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  gap: 18px;
  align-items: center;
  min-height: 62px;
  padding: 17px 20px;
  cursor: pointer;
  list-style: none;
}

.acs-faq-item summary::-webkit-details-marker {
  display: none;
}

.acs-faq-item summary span {
  color: #111;
  font-size: 16px;
  font-weight: 820;
  line-height: 1.4;
}

.acs-faq-item summary i {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  border: 1px solid #ddd;
  border-radius: 50%;
}

.acs-faq-item summary i::before,
.acs-faq-item summary i::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 10px;
  height: 2px;
  background: #111;
}

.acs-faq-item summary i::after {
  transform: rotate(90deg);
  transition: transform .18s ease;
}

.acs-faq-item[open] summary i {
  border-color: var(--acs-red);
}

.acs-faq-item[open] summary i::after {
  transform: rotate(0);
}

.acs-faq-answer {
  padding: 0 20px 20px;
}

@keyframes acsFaqExpand {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.acs-faq-item[open] .acs-faq-answer {
  animation: acsFaqExpand .28s ease;
}

.acs-faq-answer p {
  margin: 0;
  color: var(--acs-muted);
  font-size: 15px;
  line-height: 1.68;
}

.acs-faq-answer p + p {
  margin-top: 12px;
}

.acs-faq-tip {
  padding: 13px 14px;
  border-left: 3px solid var(--acs-red);
  background: var(--acs-soft);
}

.acs-faq-tip strong {
  color: #111;
}

.acs-faq-cta {
  padding: clamp(58px, 8vw, 96px) 0;
  color: var(--acs-text);
  background: var(--acs-soft);
  border-top: 1px solid var(--acs-line);
}

/* Hide the global footer's duplicate "Project inquiry" banner on the FAQ page only. */
body.acs-faq-page .acs-footer-inquiry {
  display: none;
}

.acs-faq-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(420px, .9fr);
  gap: clamp(32px, 5vw, 52px);
  align-items: start;
}

.acs-faq-cta .acs-faq-kicker {
  color: var(--acs-red);
}

.acs-faq-cta h2 {
  max-width: 820px;
  margin: 0 0 18px;
  color: #111;
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1.08;
  font-weight: 840;
  letter-spacing: 0;
}

.acs-faq-cta p:not(.acs-faq-kicker):not(.acs-faq-form-msg) {
  max-width: 560px;
  margin: 0;
  color: var(--acs-muted);
  font-size: 16px;
  line-height: 1.7;
}

.acs-faq-direct {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.acs-faq-direct a {
  color: #111;
  font-size: 15px;
  font-weight: 700;
}

.acs-faq-direct a:hover {
  color: var(--acs-red);
}

/* Inquiry form — ported from the Solutions page "Project Inquiry" block. */
.acs-faq-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--acs-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .06);
}

.acs-faq-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.acs-faq-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.acs-faq-form span {
  color: #111;
  font-size: 13px;
  font-weight: 800;
}

.acs-faq-form input,
.acs-faq-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--acs-line);
  border-radius: 4px;
  background: #fff;
  color: #111;
  font-size: 15px;
  line-height: 1.4;
}

.acs-faq-form input {
  height: 48px;
  padding: 0 14px;
}

.acs-faq-form textarea {
  resize: vertical;
  min-height: 132px;
  padding: 14px;
}

.acs-faq-form input:focus,
.acs-faq-form textarea:focus {
  outline: 2px solid rgba(230, 57, 70, .24);
  border-color: var(--acs-red);
}

/* Force the submit button visible — the active theme (Rey/WooCommerce) restyles bare
   <button type="submit"> with higher specificity, which can make it blend in. */
.acs-faq .acs-faq-form button[type="submit"].acs-faq-btn {
  display: inline-flex !important;
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  padding: 14px 24px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: var(--acs-red) !important;
  color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-transform: uppercase;
  font-weight: 800;
  cursor: pointer;
}

.acs-faq .acs-faq-form button[type="submit"].acs-faq-btn:hover {
  background: var(--acs-red-dark) !important;
}

.acs-faq-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.acs-faq-form-msg {
  margin: 0;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
}

.acs-faq-form-msg.is-success {
  color: #065f46;
  background: #d1fae5;
}

.acs-faq-form-msg.is-error {
  color: #991b1b;
  background: #fee2e2;
}

.acs-faq-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}

.acs-faq-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .acs-faq-hero-grid,
  .acs-faq-section,
  .acs-faq-cta-inner {
    grid-template-columns: 1fr;
  }

  .acs-faq-hero-panel {
    max-width: 520px;
  }

  .acs-faq-section-copy {
    position: static;
  }

  .acs-faq-quick-grid {
    grid-template-columns: 1fr;
  }

  .acs-faq-cta-actions {
    margin-top: 0;
  }
}

@media (max-width: 782px) {
  .admin-bar .acs-faq-nav {
    top: 46px;
  }
}

@media (max-width: 640px) {
  .acs-faq-container {
    width: min(100% - 28px, 1180px);
  }

  .acs-faq-hero {
    padding: 60px 0 52px;
  }

  .acs-faq-hero h1 {
    font-size: 40px;
  }

  .acs-faq-hero-copy > p:not(.acs-faq-kicker) {
    font-size: 16px;
  }

  .acs-faq-actions,
  .acs-faq-cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .acs-faq-form-row {
    grid-template-columns: 1fr;
  }

  .acs-faq-form {
    padding: 20px;
  }

  .acs-faq-btn {
    width: 100%;
  }

  .acs-faq-quick {
    margin-top: -26px;
  }

  .acs-faq-quick-card {
    min-height: 116px;
    padding: 20px;
  }

  .acs-faq-nav {
    top: 0;
    padding: 8px 0;
  }

  .acs-faq-nav-inner {
    width: calc(100vw - 14px);
    margin-left: 14px;
    padding-right: 14px;
  }

  .acs-faq-section {
    padding: 40px 0;
    scroll-margin-top: 76px;
  }

  .acs-faq-item summary {
    padding: 16px;
  }

  .acs-faq-answer {
    padding: 0 16px 18px;
  }

  .acs-faq-item summary span {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .acs-faq-reveal,
  .acs-faq-btn,
  .acs-faq-quick-card {
    transition: none;
  }

  .acs-faq-item[open] .acs-faq-answer {
    animation: none;
  }
}

