/* Allied CardPay blue hero replacement section */
.acp-hero-blue,
.acp-hero-blue * {
   font-family: "Montserrat", Arial, Helvetica, sans-serif !important;
}

.acp-hero-blue {
  position: relative;
  display: flex;
  min-height: 600px;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 46%, rgba(11, 99, 246, 0.42), transparent 25%),
    radial-gradient(circle at 85% 46%, rgba(37, 212, 255, 0.16), transparent 30%),
    linear-gradient(135deg, #061425 0%, #081a2f 52%, #020814 100%);
  color: #ffffff;
}

.acp-hero-blue::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://alliedcardpay.com/images/allied-flow-lines.svg");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 72% auto;
  opacity: 0.95;
  pointer-events: none;
  z-index: 0;
  transform-origin: 78% 50%;
  will-change: filter, opacity, transform, background-position;
  animation: acpHeroSwirlColor 7s ease-in-out infinite alternate, acpHeroSwirlDrift 14s ease-in-out infinite alternate;
}


.acp-hero-blue::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 32%, rgba(255,255,255,.95) 0 1.2px, transparent 2.4px),
    radial-gradient(circle at 88% 48%, rgba(37,212,255,.9) 0 1.4px, transparent 2.8px),
    radial-gradient(circle at 78% 68%, rgba(147,197,253,.85) 0 1.1px, transparent 2.5px),
    radial-gradient(circle at 94% 25%, rgba(255,255,255,.75) 0 1px, transparent 2.2px),
    linear-gradient(115deg, transparent 35%, rgba(255,255,255,.16) 48%, rgba(37,212,255,.22) 52%, transparent 66%);
  background-size: 220px 220px, 260px 260px, 190px 190px, 310px 310px, 180% 100%;
  background-position: 0 0, 40px 20px, 80px 60px, 120px 30px, -140% 0;
  opacity: .62;
  mix-blend-mode: screen;
  animation: acpHeroSparkle 4.5s linear infinite, acpHeroShimmer 5.8s ease-in-out infinite;
}

@keyframes acpHeroSwirlColor {
  0% {
    filter: hue-rotate(0deg) saturate(1.05) brightness(1);
    opacity: .82;
    transform: scale(1);
  }
  50% {
    filter: hue-rotate(28deg) saturate(1.55) brightness(1.18);
    opacity: 1;
    transform: scale(1.018);
  }
  100% {
    filter: hue-rotate(-18deg) saturate(1.35) brightness(1.08);
    opacity: .9;
    transform: scale(1.01);
  }
}

@keyframes acpHeroSwirlDrift {
  0% { background-position: right center; }
  100% { background-position: calc(100% + 34px) 48%; }
}

@keyframes acpHeroSparkle {
  0% {
    background-position: 0 0, 40px 20px, 80px 60px, 120px 30px, -140% 0;
    opacity: .36;
  }
  35% { opacity: .82; }
  70% { opacity: .48; }
  100% {
    background-position: 220px -220px, -220px 260px, 260px -190px, -310px 310px, 140% 0;
    opacity: .68;
  }
}

@keyframes acpHeroShimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.35); }
}

.acp-hero-blue__inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 34px;
  transform: translateY(10px);
}

.acp-hero-blue__eyebrow {
  display: block;
  margin-bottom: 18px;
  color: #2d83ff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.acp-hero-blue__eyebrow::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  margin-top: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0b63f6, #25d4ff);
}

.acp-hero-blue h1 {
  margin: 0 0 24px;
  max-width: 610px;
  font-size: clamp(34px, 3.8vw, 54px);
  font-weight: 700;
  line-height: 1.08;
  font-weight: 00;
  letter-spacing: -2px;
  color: #ffffff;
}
.acp-hero-blue h1 {
  max-width: 760px;
}

.acp-hero-blue h1 .nowrap {
  white-space: nowrap;
  color: #1472ff;
}

.acp-hero-blue h1 span { color: #1472ff; }

.acp-hero-blue p {
  margin: 0 0 34px;
  max-width: 680px;
  color: #d7e1ef;
  font-size: 22px;
  line-height: 1.48;
}

.acp-hero-blue__actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* BASE BUTTON (both use this) */
.acp-hero-blue__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  width: 260px;
  padding: 0;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, opacity .18s ease;
  box-sizing: border-box;
}

/* PRIMARY */
.acp-hero-blue__btn--primary {
  background: transparent;
  color: #fff;
  border: 1px solid #2d83ff;
  box-shadow: none;
}

/* SECONDARY (same height now) */
.acp-hero-blue__btn--secondary {
  background: transparent;
  color: #fff;
  border: 1px solid #2d83ff;
}

.acp-hero-blue__visual { position: relative; min-height: 430px; }

.acp-hero-blue__icon {
  position: absolute;
  right: 8%;
  top: 50%;
  width: min(310px, 55vw);
  height: auto;
  transform: translateY(-50%);
  border-radius: 42px;
  box-shadow:
    0 0 0 8px rgba(35, 184, 255, .14),
    0 0 80px rgba(0, 115, 255, .70),
    0 34px 55px rgba(0, 0, 0, .28);
}

.acp-hero-blue__glow {
  position: absolute;
  right: 10%;
  bottom: 68px;
  width: 330px;
  height: 24px;
  border-radius: 50%;
  background: rgba(37, 212, 255, .55);
  filter: blur(18px);
  opacity: .75;
}

.acp-hero-blue .btn-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin: 0 6px;
}
@media (max-width: 767px) {
  .acp-hero-blue { min-height: auto; }

  .acp-hero-blue::before {
    background-size: 115% auto;
    background-position: center 36%;
    opacity: .28;
  }

  .acp-hero-blue__inner {
    width: min(100% - 32px, 520px);
    min-height: auto;
    display: block;
    padding: 54px 0 70px;
  }

  .acp-hero-blue__eyebrow {
    font-size: 12px;
    letter-spacing: 2.5px;
    margin-bottom: 16px;
  }

  .acp-hero-blue__eyebrow::after {
    width: 54px;
    height: 3px;
    margin-top: 15px;
  }

  .acp-hero-blue h1 {
    font-size: 38px;
    line-height: 1.08;
    letter-spacing: -1.2px;
    margin-bottom: 18px;
  }

  .acp-hero-blue p {
    font-size: 17px;
    line-height: 1.48;
    margin-bottom: 26px;
  }

  .acp-hero-blue__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .acp-hero-blue__btn {
    width: 100%;
    min-height: 52px;
    font-size: 16px;
  }

  .acp-hero-blue__visual { display: none; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .acp-hero-blue__inner {
    grid-template-columns: 1fr .8fr;
    width: min(100% - 48px, 960px);
  }

  .acp-hero-blue h1 { font-size: 52px; }
  .acp-hero-blue p { font-size: 19px; }
  .acp-hero-blue__icon { right: 0; width: 245px; }
}
.acp-hero-blue__btn {
  height: 56px;
  min-height: 56px;
  box-sizing: border-box;
  line-height: 1;
  vertical-align: middle;
}

.acp-hero-blue__btn--secondary {
  padding-top: 0;
  padding-bottom: 0;
}
@media (max-width: 767px) {

  .acp-hero-blue__copy {
    text-align: center;
  }

  .acp-hero-blue h1 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .acp-hero-blue p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .acp-hero-blue__actions {
    justify-content: center;
  }
}
.acp-hero-blue__btn:hover {
  color: #fff !important;
  background: #0b63f6 !important;
  border-color: #0b63f6 !important;
}
@media (max-width: 767px) {

  .acp-hero-blue h1 span {
    display: block;        /* forces new line */
    white-space: normal;   /* allows wrapping again */
    text-align: center;    /* keeps it centered */
  }

}
.acp-hero-blue h1 {
  max-width: 100%;
}
@media (max-width: 767px) {
  .acp-hero-blue h1 {
    text-align: center;
  }

  .acp-hero-blue h1 .nowrap {
    display: block !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    line-height: 1.1;
  }
}
@media (max-width: 767px) {
  .acp-hero-blue__btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px; /* ensures icon spacing */
    white-space: nowrap; /* prevents icons from dropping */
  }
}
@media (max-width: 767px) {
  .acp-hero-blue {
    min-height: auto;
  }
}

.acp-hero-blue__btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}