/* Site-wide project enquiry popup. The shared form keeps one validation/mail flow. */
html.hp-global-popup-open,
body.hp-global-popup-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.hp-global-popup {
  width: min(1040px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  color: #0b132b;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(3, 11, 28, 0.36);
}

.hp-global-popup:not([open]) {
  display: none;
}

.hp-global-popup::backdrop {
  background: rgba(3, 11, 28, 0.74);
  backdrop-filter: blur(7px);
}

.hp-global-popup.is-fallback {
  position: fixed;
  z-index: 10001;
  top: 50%;
  left: 50%;
  display: block;
  transform: translate(-50%, -50%);
}

.hp-global-popup-overlay {
  position: fixed;
  z-index: 10000;
  inset: 0;
  background: rgba(3, 11, 28, 0.74);
  backdrop-filter: blur(7px);
}

.hp-global-popup-scroll {
  max-height: calc(100dvh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.hp-global-popup-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.7fr) minmax(0, 1.3fr);
  min-height: 590px;
  background: #ffffff;
}

.hp-global-popup-close {
  position: absolute;
  z-index: 6;
  top: 10px;
  right: 10px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(11, 19, 43, 0.13);
  border-radius: 10px;
  color: #0b132b;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 9px 24px rgba(11, 19, 43, 0.14);
  cursor: pointer;
  font: inherit;
  font-size: 1.7rem;
  line-height: 1;
}

.hp-global-popup-close:hover {
  color: #ffffff;
  border-color: #2563eb;
  background: #2563eb;
}

.hp-global-popup-close:focus-visible {
  outline: 3px solid rgba(6, 182, 212, 0.5);
  outline-offset: 2px;
}

.hp-global-popup-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3.25rem);
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 10%, rgba(6, 182, 212, 0.3), transparent 17rem),
    radial-gradient(circle at 100% 100%, rgba(124, 58, 237, 0.24), transparent 20rem),
    linear-gradient(150deg, #07142c 0%, #123775 66%, #195aa0 100%);
}

.hp-global-popup-copy::after {
  position: absolute;
  right: -35%;
  bottom: -18%;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(255, 255, 255, 0.035),
    0 0 0 84px rgba(255, 255, 255, 0.025);
  content: "";
  pointer-events: none;
}

.hp-global-popup-kicker {
  margin: 0 0 0.7rem;
  color: #66e3f4;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hp-global-popup-copy h2 {
  position: relative;
  z-index: 1;
  max-width: 390px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.75rem, 3.1vw, 2.55rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.hp-global-popup-copy > p:not(.hp-global-popup-kicker) {
  position: relative;
  z-index: 1;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.65;
}

.hp-global-popup-copy ul {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.55rem;
  margin: 1.2rem 0;
  padding: 0;
  list-style: none;
}

.hp-global-popup-copy li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 750;
}

.hp-global-popup-copy li::before {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #07142c;
  background: #66e3f4;
  content: "✓";
  font-size: 0.72rem;
  font-weight: 900;
}

.hp-global-popup-copy > a {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-top: auto;
  color: #66e3f4;
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

.hp-global-popup-copy > a:hover,
.hp-global-popup-copy > a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hp-global-popup-form {
  min-width: 0;
  padding: 0.8rem;
  background: linear-gradient(150deg, #f8fbff, #edf5ff);
}

.hp-global-popup-form .home-contact-form {
  gap: 0.56rem !important;
  min-height: 100%;
  padding: 0.72rem !important;
  border: 1px solid #d7e3f1;
  border-radius: 10px;
  box-shadow: 0 16px 42px rgba(11, 19, 43, 0.08);
}

.hp-global-popup-form .home-project-notice {
  gap: 0.12rem;
  padding: 0.42rem 3.15rem 0.42rem 0.55rem;
}

.hp-global-popup-form .home-project-notice strong {
  font-size: 0.65rem;
}

.hp-global-popup-form .home-project-notice p {
  font-size: 0.59rem !important;
  line-height: 1.26 !important;
}

.hp-global-popup-form .home-form-alert {
  padding: 0.45rem 0.58rem;
  font-size: 0.72rem;
}

.hp-global-popup-form .home-form-grid,
.hp-global-popup-form .home-form-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.55rem !important;
}

.hp-global-popup-form .home-contact-form label,
.hp-global-popup-form .home-phone-field,
.hp-global-popup-form .home-service-field {
  gap: 0.22rem !important;
}

.hp-global-popup-form .home-contact-form label,
.hp-global-popup-form .home-phone-label,
.hp-global-popup-form .home-service-label {
  font-size: 0.67rem !important;
  line-height: 1.1;
}

.hp-global-popup-form .home-optional {
  display: inline;
  font-size: 0.62rem;
}

.hp-global-popup-form .home-contact-form input,
.hp-global-popup-form .home-contact-form select,
.hp-global-popup-form .home-contact-form textarea,
.hp-global-popup-form .home-country-dropdown summary,
.hp-global-popup-form .home-service-dropdown summary {
  min-height: 34px !important;
  padding: 0.4rem 0.55rem !important;
  border-radius: 7px !important;
  font-size: 0.75rem !important;
}

.hp-global-popup-form .home-phone-combo {
  grid-template-columns: 82px minmax(0, 1fr);
}

.hp-global-popup-form .home-country-dropdown summary {
  border-radius: 7px 0 0 7px !important;
}

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

.hp-global-popup-form .home-country-current {
  gap: 0.24rem;
}

.hp-global-popup-form .home-country-options {
  width: min(290px, 76vw);
  max-height: 190px;
}

.hp-global-popup-form .home-service-options {
  position: absolute;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 220px;
  margin: 0;
  padding: 0.48rem;
}

.hp-global-popup-form .home-service-options label {
  min-height: 31px;
  padding: 0.32rem 0.4rem;
  font-size: 0.68rem !important;
}

.hp-global-popup-form .home-contact-form textarea {
  min-height: 54px !important;
  resize: vertical;
}

.hp-global-popup-form .home-form-consents {
  gap: 0.25rem;
}

.hp-global-popup-form .home-consent-check {
  gap: 0.38rem !important;
  font-size: 0.62rem !important;
  line-height: 1.28 !important;
}

.hp-global-popup-form .home-consent-check input {
  width: 14px !important;
  height: 14px !important;
  min-height: 14px !important;
}

.hp-global-popup-form .home-contact-form .btn {
  min-width: 0 !important;
  min-height: 36px !important;
  padding: 0.5rem 0.75rem !important;
  font-size: 0.74rem !important;
}

.hp-global-popup-form .home-whatsapp-line {
  margin: -0.15rem 0 0 !important;
  font-size: 0.65rem !important;
  line-height: 1.25 !important;
}

@media (max-width: 820px) {
  .hp-global-popup {
    width: min(680px, calc(100% - 12px));
    max-height: calc(100dvh - 12px);
    border-radius: 10px;
  }

  .hp-global-popup-scroll {
    height: calc(100dvh - 12px);
    max-height: calc(100dvh - 12px);
    overflow: hidden;
    scrollbar-gutter: auto;
  }

  .hp-global-popup-layout {
    grid-template-columns: minmax(0, 1fr);
    height: 100%;
    min-height: 0;
  }

  .hp-global-popup-copy {
    display: none;
  }

  .hp-global-popup-form {
    display: grid;
    height: 100%;
    min-height: 0;
    align-content: center;
    padding: 0.35rem;
  }

  .hp-global-popup-form .home-contact-form {
    min-height: 0;
    padding: 0.55rem !important;
  }

  .hp-global-popup.is-mobile-compact .hp-global-popup-form .home-project-notice p {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .hp-global-popup.is-mobile-compact .hp-global-popup-form .home-whatsapp-line {
    display: none !important;
  }

  .hp-global-popup.is-mobile-compact .hp-global-popup-form .home-contact-form {
    gap: 0.4rem !important;
    padding: 0.45rem !important;
  }

  .hp-global-popup.is-mobile-compact .hp-global-popup-form .home-project-notice {
    padding-top: 0.32rem;
    padding-bottom: 0.32rem;
  }

  .hp-global-popup.is-mobile-compact .hp-global-popup-form .home-contact-form textarea {
    min-height: 44px !important;
  }

  .hp-global-popup.is-mobile-tight .hp-global-popup-form .home-contact-form {
    gap: 0.28rem !important;
    padding: 0.35rem !important;
  }

  .hp-global-popup.is-mobile-tight .hp-global-popup-form .home-form-grid,
  .hp-global-popup.is-mobile-tight .hp-global-popup-form .home-form-pair {
    gap: 0.3rem !important;
  }

  .hp-global-popup.is-mobile-tight .hp-global-popup-form .home-contact-form input,
  .hp-global-popup.is-mobile-tight .hp-global-popup-form .home-contact-form select,
  .hp-global-popup.is-mobile-tight .hp-global-popup-form .home-country-dropdown summary,
  .hp-global-popup.is-mobile-tight .hp-global-popup-form .home-service-dropdown summary {
    min-height: 29px !important;
    padding-top: 0.28rem !important;
    padding-bottom: 0.28rem !important;
  }

  .hp-global-popup.is-mobile-tight .hp-global-popup-form .home-contact-form textarea {
    min-height: 36px !important;
  }

  .hp-global-popup.is-mobile-tight .hp-global-popup-form .home-consent-check {
    font-size: 0.55rem !important;
    line-height: 1.16 !important;
  }

  .hp-global-popup.is-mobile-tight .hp-global-popup-form .home-contact-form .btn {
    min-height: 31px !important;
  }

  .hp-global-popup.is-mobile-ultra .hp-global-popup-form .home-contact-form {
    gap: 0.18rem !important;
    padding: 0.26rem !important;
  }

  .hp-global-popup.is-mobile-ultra .hp-global-popup-form .home-form-grid,
  .hp-global-popup.is-mobile-ultra .hp-global-popup-form .home-form-pair {
    gap: 0.2rem !important;
  }

  .hp-global-popup.is-mobile-ultra .hp-global-popup-form .home-contact-form label,
  .hp-global-popup.is-mobile-ultra .hp-global-popup-form .home-phone-label,
  .hp-global-popup.is-mobile-ultra .hp-global-popup-form .home-service-label {
    gap: 0.1rem !important;
    font-size: 0.56rem !important;
  }

  .hp-global-popup.is-mobile-ultra .hp-global-popup-form .home-contact-form input,
  .hp-global-popup.is-mobile-ultra .hp-global-popup-form .home-contact-form select,
  .hp-global-popup.is-mobile-ultra .hp-global-popup-form .home-country-dropdown summary,
  .hp-global-popup.is-mobile-ultra .hp-global-popup-form .home-service-dropdown summary {
    min-height: 25px !important;
    padding-top: 0.2rem !important;
    padding-bottom: 0.2rem !important;
  }

  .hp-global-popup.is-mobile-ultra .hp-global-popup-form .home-contact-form textarea {
    min-height: 30px !important;
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
  }

  .hp-global-popup.is-mobile-ultra .hp-global-popup-form .home-consent-check {
    font-size: 0.49rem !important;
    line-height: 1.08 !important;
  }

  .hp-global-popup.is-mobile-ultra .hp-global-popup-form .home-contact-form .btn {
    min-height: 27px !important;
    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
  }
}

@media (max-width: 480px) {
  .hp-global-popup-close {
    top: 7px;
    right: 7px;
  }

  .hp-global-popup-form .home-project-notice p {
    font-size: 0.55rem !important;
  }

  .hp-global-popup-form .home-contact-form {
    gap: 0.45rem !important;
  }

  .hp-global-popup-form .home-form-grid,
  .hp-global-popup-form .home-form-pair {
    gap: 0.42rem !important;
  }

  .hp-global-popup-form .home-form-grid .home-phone-field,
  .hp-global-popup-form .home-form-grid > label:last-child {
    grid-column: 1 / -1;
  }

  .hp-global-popup-form .home-phone-combo {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .hp-global-popup-form .home-country-flag {
    font-size: 0.82rem;
  }

  .hp-global-popup-form .home-contact-form .btn {
    width: 100% !important;
  }
}

@media (max-height: 720px) and (max-width: 820px) {
  .hp-global-popup-form .home-project-notice {
    padding-top: 0.32rem;
    padding-bottom: 0.32rem;
  }

  .hp-global-popup-form .home-contact-form textarea {
    min-height: 46px !important;
  }

  .hp-global-popup-form .home-contact-form input,
  .hp-global-popup-form .home-contact-form select,
  .hp-global-popup-form .home-country-dropdown summary,
  .hp-global-popup-form .home-service-dropdown summary {
    min-height: 32px !important;
  }

  .hp-global-popup-form .home-project-notice p {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .hp-global-popup-form .home-whatsapp-line {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-global-popup *,
  .hp-global-popup *::before,
  .hp-global-popup *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
