/* Scoped refinements for the two DamaneCash agency pages. */
body.agency-page-active #contact {
  padding-block: 0 clamp(54px, 6vw, 88px) !important;
}

body.agency-page-active #contact .agency-intro {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(48px, 5vw, 70px) 0 clamp(68px, 6vw, 88px);
  background: linear-gradient(115deg, var(--damane-navy) 0%, var(--damane-navy-dark) 100%);
}

body.agency-page-active #contact .agency-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(246, 169, 29, .13) 1px, transparent 1.5px);
  background-size: 30px 30px;
}

body.agency-page-active #contact .agency-intro::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: -8%;
  width: 116%;
  height: 32px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: #f8f9fb;
  pointer-events: none;
}

body.agency-page-active #contact .agency-intro .container {
  position: relative;
  z-index: 1;
}

body.agency-page-active #contact .agency-intro nav {
  margin-bottom: 24px !important;
}

body.agency-page-active #contact .agency-intro nav > div {
  justify-content: center;
}

body.agency-page-active #contact .agency-intro nav a,
body.agency-page-active #contact .agency-intro nav span {
  color: rgba(255, 255, 255, .75) !important;
}

body.agency-page-active #contact .agency-intro nav span:last-child {
  color: var(--damane-gold) !important;
}

body.agency-page-active #contact .agency-intro nav a:hover,
body.agency-page-active #contact .agency-intro nav a:focus-visible {
  color: var(--damane-gold) !important;
}

body.agency-page-active #contact .agency-intro nav a:focus-visible {
  outline: 2px solid var(--damane-gold);
  outline-offset: 4px;
}

body.agency-page-active #contact .agency-intro-row {
  flex-direction: column;
  justify-content: center !important;
  gap: 10px !important;
  margin-bottom: 0 !important;
  text-align: center;
}

body.agency-page-active #contact .agency-intro-heading,
body.agency-page-active #contact .agency-intro-copy {
  width: 100%;
  max-width: 780px;
}

body.agency-page-active #contact .agency-intro-eyebrow {
  justify-content: center;
  margin-bottom: 12px !important;
}

body.agency-page-active #contact .agency-intro-icon {
  flex: none;
  color: var(--damane-gold);
  font-size: 1.35rem;
  line-height: 1;
}

body.agency-page-active #contact .agency-intro-eyebrow h5 {
  color: var(--damane-gold) !important;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 700 !important;
}

body.agency-page-active #contact .agency-intro .agency-page-title {
  color: #fff !important;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 1.28;
  margin-bottom: 0;
}

body.agency-page-active #contact .agency-intro .agency-page-lead {
  color: rgba(255, 255, 255, .86) !important;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.8;
}

body.agency-page-active #contact .agency-content {
  padding-top: clamp(30px, 4vw, 50px);
}

body.agency-page-active #contact .agency-storefront-photo {
  margin: 0 0 24px;
  padding: 7px;
  overflow: hidden;
  border: 1px solid rgba(246, 169, 29, .35);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(38, 34, 98, .12);
}

body.agency-page-active #contact .agency-storefront-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

@media (max-width: 767px) {
  body.agency-page-active #contact .agency-intro {
    padding: 42px 0 62px;
  }

  body.agency-page-active #contact .agency-intro::after {
    height: 20px;
  }

  body.agency-page-active #contact .agency-intro nav {
    margin-bottom: 22px !important;
  }

  body.agency-page-active #contact .agency-intro nav > div {
    font-size: 13px !important;
    row-gap: 4px;
  }

  body.agency-page-active #contact .agency-intro .agency-page-title {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

  body.agency-page-active #contact .agency-intro .agency-page-lead {
    font-size: 1rem;
    line-height: 1.75;
  }
}
