/* Autos House — car parts shop */
:root {
  --ah-dark: #0c0e12;
  --ah-dark-mid: #141820;
  --ah-accent: #c9a227;
  --ah-accent-hover: #e0b82e;
  --ah-text: #e8eaef;
  --ah-muted: #8b929e;
  --ah-form-surface: #e9ecef;
  --ah-form-input-bg: #ffffff;
  --ah-form-border: #d4d8de;
  --ah-form-text: #1a1d24;
  --ah-form-placeholder: #b4bac4;
}

body.auto-house {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 64px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f4f5f7;
  color: #1a1d24;
}

/* Forms — light grey <form> background; white inputs; light placeholders */
body.auto-house form.ah-contact-form,
body.auto-house #ah-catalog-form,
body.bg-light form,
body.ah-admin main form {
  background-color: var(--ah-form-surface);
  border-radius: 0.5rem;
  padding: 1.25rem;
}

body.auto-house form.d-inline,
body.auto-house form.d-inline-flex,
body.auto-house form.d-flex.align-items-center.gap-1,
body.ah-admin form.d-inline,
body.ah-admin form.d-inline-flex,
body.ah-admin .ah-admin-sidebar form,
body.ah-admin .ah-admin-sidebar-offcanvas form {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

body.auto-house .form-control,
body.auto-house .form-select,
body.ah-admin .form-control,
body.ah-admin .form-select,
body.bg-light .form-control,
body.bg-light .form-select {
  background-color: var(--ah-form-input-bg);
  border-color: var(--ah-form-border);
  color: var(--ah-form-text);
}

body.auto-house .form-control::placeholder,
body.ah-admin .form-control::placeholder,
body.bg-light .form-control::placeholder {
  color: var(--ah-form-placeholder);
  opacity: 1;
}

body.auto-house .form-control:focus,
body.auto-house .form-select:focus,
body.ah-admin .form-control:focus,
body.ah-admin .form-select:focus,
body.bg-light .form-control:focus,
body.bg-light .form-select:focus {
  background-color: var(--ah-form-input-bg);
  border-color: #b8bec8;
  color: var(--ah-form-text);
  box-shadow: 0 0 0 0.2rem rgba(26, 29, 36, 0.06);
}

body.auto-house .form-control:disabled,
body.auto-house .form-select:disabled,
body.ah-admin .form-control:disabled,
body.ah-admin .form-select:disabled {
  background-color: #f0f1f3;
  color: #8b929e;
}

.ah-navbar {
  height: 64px;
  background: var(--ah-dark) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 1030;
}

.ah-navbar .navbar-brand {
  font-weight: 700;
  color: #fff !important;
}

.ah-logo {
  height: 36px;
  width: auto;
  max-width: min(220px, 52vw);
  object-fit: contain;
  display: block;
}

.ah-navbar .nav-link {
  color: rgba(255, 255, 255, 0.78) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem !important;
}

.ah-navbar .nav-link:hover {
  color: #fff !important;
}

@media (max-width: 991.98px) {
  .ah-navbar .navbar-collapse {
    background: var(--ah-dark-mid);
    padding: 1rem;
    margin: 0.5rem -0.5rem 0;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
}

.ah-footer {
  background: var(--ah-dark);
  color: rgba(255, 255, 255, 0.65);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
  font-size: 0.875rem;
}

.ah-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.ah-footer a:hover {
  color: var(--ah-accent);
}

.ah-footer .footer-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.ah-footer .footer-heading {
  color: #fff;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.ah-parts-main {
  padding-top: 0.5rem;
}

/* Catalog filter / search loading */
.ah-catalog-loading {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 1045;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ah-catalog-loading.is-visible {
  opacity: 1;
}

.ah-catalog-loading__track {
  height: 4px;
  background: rgba(12, 14, 18, 0.08);
  overflow: hidden;
}

.ah-catalog-loading__bar {
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, #a8861f, var(--ah-accent), var(--ah-accent-hover), #a8861f);
  background-size: 200% 100%;
  animation: ah-catalog-loading-bar 1.15s ease-in-out infinite;
  box-shadow: 0 0 14px rgba(201, 162, 39, 0.45);
}

@keyframes ah-catalog-loading-bar {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

.ah-catalog-results {
  min-height: 12rem;
}

.ah-catalog-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 1rem 1rem;
  background: rgba(244, 245, 247, 0.72);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.ah-catalog-loading-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.ah-catalog-loading__panel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(12, 14, 18, 0.08);
  box-shadow: 0 8px 24px rgba(12, 14, 18, 0.1);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ah-dark-mid);
}

.ah-catalog-loading__panel .spinner-border {
  width: 1.1rem;
  height: 1.1rem;
  border-width: 0.15em;
}

@media (min-width: 992px) {
  .ah-catalog-offcanvas {
    position: sticky !important;
    top: 5.5rem;
    transform: none !important;
    visibility: visible !important;
    width: 100% !important;
    height: auto !important;
    background: transparent !important;
  }

  .ah-catalog-offcanvas .offcanvas-body {
    overflow: visible;
  }
}

.ah-catalog-sidebar {
  position: static;
}

.ah-catalog-sidebar .form-label {
  font-weight: 500;
}

.ah-brand-filter {
  position: relative;
}

.ah-brand-suggestions {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  max-height: 14rem;
  overflow-y: auto;
  margin-top: 0.25rem;
  border-radius: 0.5rem;
}

.ah-brand-suggestions .list-group-item {
  font-size: 0.875rem;
  border-left: 0;
  border-right: 0;
}

.ah-brand-suggestions .list-group-item:first-child {
  border-top: 0;
}

.ah-brand-suggestions .list-group-item:last-child {
  border-bottom: 0;
}

@media (max-width: 991.98px) {
  .ah-catalog-sidebar {
    position: static;
  }
}

.ah-parts-hero {
  background: linear-gradient(135deg, var(--ah-dark-mid) 0%, #1a2230 45%, #243044 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Catalog landing promos (before first search) */
.ah-promo-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .ah-promo-grid {
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: minmax(200px, auto) minmax(160px, auto) minmax(140px, auto);
  }

  .ah-promo-card--hero {
    grid-row: 1 / span 2;
    min-height: 420px;
  }

  .ah-promo-card--vin {
    min-height: 200px;
  }

  .ah-promo-card--light {
    min-height: 200px;
  }

  .ah-promo-card--cta {
    grid-column: 1 / -1;
    min-height: 0;
  }
}

.ah-promo-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  min-height: 240px;
  background: var(--ah-dark-mid);
  box-shadow: 0 0.75rem 2rem rgba(12, 14, 18, 0.14);
  border: 1px solid rgba(12, 14, 18, 0.06);
}

.ah-promo-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ah-promo-card__img--contain {
  object-fit: contain;
  object-position: right center;
  padding: 1rem;
  opacity: 0.95;
}

.ah-promo-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(12, 14, 18, 0.15) 0%,
    rgba(12, 14, 18, 0.55) 45%,
    rgba(12, 14, 18, 0.88) 100%
  );
  pointer-events: none;
}

.ah-promo-card__shade--strong {
  background: linear-gradient(
    120deg,
    rgba(12, 14, 18, 0.35) 0%,
    rgba(12, 14, 18, 0.75) 55%,
    rgba(12, 14, 18, 0.92) 100%
  );
}

.ah-promo-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: inherit;
  padding: 1.5rem 1.75rem;
  color: #fff;
}

.ah-promo-card__body--center {
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.ah-promo-card__body--dark-text {
  color: #1a1d24;
  max-width: 58%;
}

.ah-promo-card__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ah-accent);
  margin: 0;
}

.ah-promo-card__eyebrow--dark {
  color: #6b7280;
}

.ah-promo-card__title {
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.ah-promo-card__text {
  margin: 0;
  opacity: 0.92;
  max-width: 36rem;
}

.ah-promo-card--light {
  background: #fff;
  min-height: 200px;
}

.ah-promo-card--light .ah-promo-card__shade {
  display: none;
}

.ah-promo-card--cta {
  min-height: 220px;
  background: var(--ah-dark);
  border-color: rgba(201, 162, 39, 0.2);
}

.ah-promo-card__img--cta {
  object-position: right center;
}

.ah-promo-card__shade--cta {
  background: linear-gradient(
    105deg,
    rgba(12, 14, 18, 0.92) 0%,
    rgba(12, 14, 18, 0.72) 38%,
    rgba(12, 14, 18, 0.25) 62%,
    rgba(12, 14, 18, 0.1) 100%
  );
}

.ah-promo-card__body--cta {
  justify-content: center;
  align-items: flex-start;
  max-width: min(100%, 22rem);
  min-height: 220px;
  padding: 1.5rem 1.75rem;
}

.ah-promo-card--cta .ah-promo-card__text {
  opacity: 0.9;
}

@media (min-width: 992px) {
  .ah-promo-card--cta {
    min-height: 200px;
  }

  .ah-promo-card__body--cta {
    min-height: 200px;
  }
}

@media (max-width: 991.98px) {
  .ah-promo-card__body--dark-text {
    max-width: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.92) 35%);
    padding-top: 5rem;
  }

  .ah-promo-card--light .ah-promo-card__img--contain {
    object-position: center top;
    max-height: 55%;
  }
}

.ah-parts-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ah-parts-card:hover {
  box-shadow: 0 0.5rem 1.25rem rgba(12, 14, 18, 0.12) !important;
  transform: translateY(-2px);
}

.ah-parts-card-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  min-height: 200px;
  max-height: 200px;
  flex-shrink: 0;
  background: #eef0f3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ah-parts-brand-logo {
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  z-index: 2;
  height: 2.75rem;
  display: flex;
  align-items: start;
  justify-content: center;
  box-sizing: border-box;
  pointer-events: none;
}

.ah-parts-brand-logo-img {
  max-width: 100px;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.ah-parts-brand-logo-initials {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ah-dark-mid);
  line-height: 1;
  text-align: center;
}

.ah-parts-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0.65rem;
  box-sizing: border-box;
}

.ah-parts-placeholder-img {
  width: 100%;
  height: 100%;
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
  object-position: center;
}

.ah-parts-cart-thumb-wrap {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  position: relative;
  border-radius: 0.35rem;
  overflow: hidden;
  background: #eef0f3;
}

.ah-parts-img-placeholder-sm {
  padding: 0.25rem;
}

.ah-parts-card-img {
  width: 100%;
  height: 200px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.65rem;
  box-sizing: border-box;
}

@media (max-width: 575.98px) {
  .ah-parts-card-img-wrap,
  .ah-parts-card-img {
    height: 160px;
    min-height: 160px;
    max-height: 160px;
  }
}

.ah-parts-cart-thumb {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #eef0f3;
  padding: 0.2rem;
  box-sizing: border-box;
}

/* Google Ads landing page */
body.ah-landing-page {
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0));
}

@media (min-width: 992px) {
  body.ah-landing-page {
    padding-bottom: 0;
  }
}

.ah-landing-trust {
  background: #fff;
  border-bottom: 1px solid rgba(12, 14, 18, 0.08);
  padding: 0.85rem 0;
  margin-bottom: 1rem;
}

.ah-landing-trust-list {
  display: grid;
  gap: 0.65rem 1.25rem;
  grid-template-columns: 1fr;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .ah-landing-trust-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .ah-landing-trust-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ah-landing-trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.ah-landing-trust-link {
  color: var(--ah-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ah-landing-trust-link:hover {
  color: #000;
}

/* Brand logo marquee */
.ah-brand-marquee {
  background: linear-gradient(180deg, #fff 0%, #f4f5f7 100%);
  border-bottom: 1px solid rgba(12, 14, 18, 0.08);
  padding: 1.25rem 0 0;
  margin-bottom: 1rem;
}

.ah-brand-marquee__heading {
  letter-spacing: 0.14em;
  margin-bottom: 0.85rem !important;
}

.ah-brand-marquee__viewport--logos {
  margin-bottom: 0.75rem;
}

.ah-brand-marquee__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
}

.ah-brand-marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  padding: 0.25rem 0;
}

.ah-brand-marquee__track--logos {
  animation: ah-brand-marquee-scroll 55s linear infinite;
}

.ah-brand-marquee__group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 0 0 auto;
}

.ah-brand-marquee__track--logos:hover {
  animation-play-state: paused;
}

/* Scrolling brand names (full catalog) */
.ah-brand-text-marquee {
  background: var(--ah-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.75rem 0 1rem;
}

.ah-brand-text-marquee__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 4%,
    #000 96%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 4%,
    #000 96%,
    transparent 100%
  );
}

.ah-brand-text-marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ah-brand-text-marquee-scroll 70s linear infinite;
}

.ah-brand-text-marquee__track:hover {
  animation-play-state: paused;
}

.ah-brand-text-marquee__group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
}

.ah-brand-text-marquee__link {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.15s ease;
}

a.ah-brand-text-marquee__link:hover {
  color: var(--ah-accent);
}

.ah-brand-text-marquee__sep {
  color: rgba(201, 162, 39, 0.55);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 0.85rem;
  user-select: none;
}

@keyframes ah-brand-text-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.ah-brand-marquee__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 7.5rem;
  height: 4rem;
  padding: 0.5rem 0.85rem;
  background: #fff;
  border: 1px solid rgba(12, 14, 18, 0.08);
  border-radius: 0.65rem;
  box-shadow: 0 0.2rem 0.65rem rgba(12, 14, 18, 0.06);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ah-brand-marquee__item:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 0.45rem 1rem rgba(12, 14, 18, 0.1);
}

.ah-brand-marquee__item img {
  display: block;
  max-width: 100%;
  max-height: 2.75rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

@keyframes ah-brand-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ah-brand-marquee__track--logos,
  .ah-brand-text-marquee__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
  }

  .ah-brand-marquee__group[aria-hidden="true"],
  .ah-brand-text-marquee__group[aria-hidden="true"] {
    display: none;
  }

  .ah-brand-marquee__group {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }

  .ah-brand-text-marquee__group {
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
    gap: 0.35rem 0.5rem;
  }

  .ah-brand-text-marquee__sep {
    padding: 0 0.25rem;
  }

  .ah-brand-marquee__viewport,
  .ah-brand-text-marquee__viewport {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* Brands directory (brands.php) */
.ah-brands-alpha__letters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  justify-content: center;
}

.ah-brands-alpha__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  border-radius: 0.4rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ah-dark);
  text-decoration: none;
  background: #f0f2f5;
  transition: background 0.15s ease, color 0.15s ease;
}

.ah-brands-alpha__link:hover {
  background: var(--ah-accent);
  color: #1a1d24;
}

.ah-brands-section__letter {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ah-dark);
  letter-spacing: 0.02em;
}

.ah-brands-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ah-brands-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1.25rem rgba(12, 14, 18, 0.12) !important;
}

.ah-brands-card__logo {
  width: 100%;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f5f7;
  border-radius: 0.5rem;
  padding: 0.5rem;
}

.ah-brands-card__img {
  max-width: 100%;
  max-height: 3.5rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.ah-brands-card__initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--ah-dark);
  color: var(--ah-accent);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.ah-brands-card__name {
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ah-landing-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 0;
  background: var(--ah-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.ah-landing-sticky-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.55rem 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border: 0;
  background: transparent;
}

.ah-landing-sticky-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.ah-landing-sticky-btn-primary {
  background: var(--ah-accent);
  color: var(--ah-dark) !important;
}

.ah-landing-sticky-btn-primary:hover {
  background: var(--ah-accent-hover);
  color: var(--ah-dark) !important;
}

.ah-landing-sticky-btn i {
  font-size: 1.1rem;
}

/* Contact page — full-bleed background */
body.ah-contact-page {
  background: var(--ah-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ah-contact-hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  padding: 2rem 1rem;
  background-color: var(--ah-dark);
  background-image: url("../img/vans/contact-girls.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.ah-contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(12, 14, 18, 0.35) 0%,
    rgba(12, 14, 18, 0.2) 45%,
    rgba(12, 14, 18, 0.55) 100%
  );
  pointer-events: none;
}

.ah-contact-hero > .container {
  z-index: 1;
}

.ah-contact-panel {
  padding: 1.75rem;
  border-radius: 1rem;
  background: rgba(12, 14, 18, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}

.ah-contact-form .form-control:focus {
  border-color: var(--ah-accent);
  box-shadow: 0 0 0 0.2rem rgba(201, 162, 39, 0.2);
}

/* Vehicle picker (VIN + choose vehicle) */
.ah-vehicle-tools .ah-vehicle-card {
  background: #fff;
  border: 1px solid rgba(12, 14, 18, 0.06);
}

.ah-vehicle-tools .ah-vehicle-card .h6 {
  font-weight: 700;
}

#ah-vin-message:not([hidden]) {
  display: block;
}

body.ah-contact-page .ah-footer {
  position: relative;
  z-index: 1;
  margin-top: 0;
  background: rgba(12, 14, 18, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 991.98px) {
  .ah-contact-hero {
    background-attachment: scroll;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
  }
}

/* Back to top */
.ah-back-to-top {
  position: fixed;
  right: 1.15rem;
  bottom: 1.25rem;
  z-index: 1045;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ah-dark);
  color: var(--ah-accent);
  font-size: 1.15rem;
  box-shadow: 0 0.35rem 1rem rgba(12, 14, 18, 0.28);
  cursor: pointer;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease, color 0.15s ease;
}

.ah-back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ah-back-to-top:hover {
  background: var(--ah-accent);
  color: var(--ah-dark);
}

.ah-back-to-top:focus-visible {
  outline: 2px solid var(--ah-accent);
  outline-offset: 2px;
}

body.ah-landing-page .ah-back-to-top {
  bottom: 1.25rem;
}

@media (max-width: 991.98px) {
  body.ah-landing-page .ah-back-to-top {
    bottom: 4.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ah-back-to-top {
    transition: none;
  }
}
