/*
 * Shared primary-service hero and form system.
 * The proportions and form treatment are derived from the Website Design page.
 */
.hp-service-hero-system {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(4.7rem, 7vw, 6.35rem) 0 clamp(4.25rem, 6.4vw, 5.8rem) !important;
  color: #fff;
  background:
    radial-gradient(circle at 85% 18%, rgba(24, 189, 216, 0.28), transparent 27%),
    radial-gradient(circle at 16% 88%, rgba(112, 70, 239, 0.26), transparent 30%),
    linear-gradient(128deg, #06152c 0%, #0b2b5e 58%, #134d87 100%) !important;
}

.hp-service-hero-system::before {
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  opacity: 0.22 !important;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px) !important;
  background-size: 74px 74px !important;
  mask-image: linear-gradient(90deg, transparent, #000 42%, #000) !important;
  content: "" !important;
  pointer-events: none;
}

.hp-service-hero-system::after {
  position: absolute;
  right: 4%;
  bottom: -12rem;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(101, 229, 244, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 68px rgba(101, 229, 244, 0.035), 0 0 0 136px rgba(101, 229, 244, 0.018);
  content: "";
  pointer-events: none;
}

.hp-service-hero-grid-system {
  position: relative;
  z-index: 1;
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr) !important;
  align-items: center !important;
  gap: clamp(2rem, 3.5vw, 3.5rem) !important;
  padding-block: 0 !important;
}

.hp-service-hero-copy-system {
  min-width: 0;
  max-width: 660px !important;
}

.hp-service-hero-system h1 {
  max-width: 720px !important;
  margin-bottom: 1.15rem !important;
  color: #fff !important;
  font-size: clamp(2.35rem, 4.55vw, 3.55rem) !important;
  font-weight: 800 !important;
  line-height: 1.025 !important;
  text-wrap: balance;
}

.hp-service-hero-system :is(.hp-web-kicker, .hp-gd-kicker, .hp-ppc-kicker, .hpseo-kicker, .hpac-eyebrow, .hp-service-kicker) {
  color: #65e5f4 !important;
}

.hp-service-hero-system :is(.hp-web-lead, .hp-gd-lead, .hp-ppc-lead, .hpseo-lead, .hpac-lead, .hp-service-lead) {
  max-width: 700px !important;
  color: #c5d3e6 !important;
  font-size: clamp(1rem, 1.3vw, 1.14rem) !important;
  line-height: 1.72 !important;
}

.hp-service-hero-actions-system {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.72rem !important;
  margin-top: 1.42rem !important;
}

.hp-service-hero-actions-system > :is(.btn, .hpseo-btn) {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.hp-service-hero-actions-system > :is(.btn, .hpseo-btn):hover,
.hp-service-hero-actions-system > :is(.btn, .hpseo-btn):focus-visible {
  transform: translateY(-2px);
}

.hp-service-hero-system :is(.btn-primary, .hpseo-btn-primary) {
  color: #fff !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, #2563eb, #7046ef) !important;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25) !important;
}

.hp-service-hero-system .btn-secondary {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.26) !important;
  background: rgba(255, 255, 255, 0.09) !important;
}

.hp-service-hero-system .btn-secondary:hover,
.hp-service-hero-system .btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.15) !important;
}

.hp-service-hero-system :is(.btn-upwork, .hpseo-btn-upwork) {
  color: #ffffff !important;
  border-color: #108a00 !important;
  background: #108a00 !important;
  box-shadow: 0 14px 30px rgba(16, 138, 0, 0.24) !important;
}

.hp-service-hero-system :is(.btn-upwork, .hpseo-btn-upwork):hover,
.hp-service-hero-system :is(.btn-upwork, .hpseo-btn-upwork):focus-visible {
  color: #ffffff !important;
  border-color: #0b6b00 !important;
  background: #0b6b00 !important;
}

.hp-service-hero-form-system {
  width: 100% !important;
  max-width: 530px !important;
  justify-self: end !important;
  align-self: center !important;
  overflow: visible !important;
  padding: 0.62rem !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 30px 80px rgba(0, 9, 29, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px);
}

.hp-service-hero-form-system .home-contact-form {
  display: grid !important;
  gap: 0.55rem !important;
  margin: 0 !important;
  padding: 0.78rem !important;
  border: 1px solid #d5e0ec !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 18px 48px rgba(0, 10, 32, 0.2) !important;
}

.hp-service-hero-form-system .home-project-notice {
  margin: 0 !important;
  padding: 0.46rem 0.58rem !important;
  border-radius: 7px !important;
}

.hp-service-hero-form-system .home-project-notice strong {
  font-size: 0.72rem !important;
}

.hp-service-hero-form-system .home-project-notice p {
  margin: 0.15rem 0 0 !important;
  font-size: 0.69rem !important;
  line-height: 1.38 !important;
}

.hp-service-hero-form-system .home-form-grid,
.hp-service-hero-form-system .home-form-pair {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.52rem !important;
}

.hp-service-hero-form-system :is(.home-contact-form label, .home-phone-label, .home-service-label) {
  gap: 0.24rem !important;
  margin: 0 !important;
  color: #243b5a !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.hp-service-hero-form-system :is(input, select, textarea, .home-service-dropdown summary, .home-country-dropdown summary) {
  min-height: 35px !important;
  padding: 0.48rem 0.62rem !important;
  border-color: #cfdaea !important;
  border-radius: 7px !important;
  color: #14243d !important;
  background: #f7f9fc !important;
  font-size: 0.82rem !important;
}

.hp-service-hero-form-system .home-country-dropdown summary {
  border-radius: 7px 0 0 7px !important;
}

.hp-service-hero-form-system .home-phone-combo input[type="tel"] {
  border-radius: 0 7px 7px 0 !important;
}

.hp-service-hero-form-system textarea,
.hp-service-hero-form-system .home-project-details {
  min-height: 66px !important;
  resize: vertical;
}

.hp-service-hero-form-system .home-form-consents {
  gap: 0.25rem !important;
  margin-top: 0 !important;
}

.hp-service-hero-form-system :is(.home-consent-check, .home-whatsapp-line) {
  color: #40516a !important;
  font-size: 0.69rem !important;
  line-height: 1.38 !important;
}

.hp-service-hero-form-system .home-contact-form > .btn {
  min-height: 39px !important;
  justify-self: start;
  margin-top: 0.05rem;
  padding: 0.68rem 0.86rem !important;
  border-radius: 8px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #2563eb, #7046ef) !important;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22) !important;
  font-size: 0.84rem !important;
}

@media (min-width: 1041px) {
  .hp-service-hero-grid-system {
    grid-template-columns: minmax(0, 1.04fr) minmax(450px, 0.96fr) !important;
  }

  .hp-service-hero-form-system {
    max-width: 550px !important;
  }
}

@media (max-width: 1040px) {
  .hp-service-hero-grid-system {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.84fr) !important;
    gap: 2rem !important;
  }
}

@media (max-width: 900px) {
  .hp-service-hero-grid-system {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .hp-service-hero-copy-system {
    max-width: 720px !important;
  }

  .hp-service-hero-form-system {
    max-width: 530px !important;
    justify-self: start !important;
  }
}

@media (max-width: 680px) {
  .hp-service-hero-system {
    padding: 2.4rem 0 3rem !important;
  }

  .hp-service-hero-system::after {
    display: none;
  }

  .hp-service-hero-grid-system {
    gap: 1.65rem !important;
  }

  .hp-service-hero-form-system {
    max-width: 100% !important;
    padding: 0.45rem !important;
  }

  .hp-service-hero-form-system .home-form-grid,
  .hp-service-hero-form-system .home-form-pair {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 420px) {
  .hp-service-hero-form-system .home-contact-form {
    padding: 0.68rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-service-hero-actions-system > :is(.btn, .hpseo-btn) {
    transition: none;
  }
}
