@font-face {
  font-family: "Onest";
  src: url("./fonts/onest-01.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("./fonts/onest-02.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --global-form-blue: #075fd5;
  --global-form-blue-hover: #034daf;
  --global-form-ink: #15181d;
  --global-form-muted: #c5cbd2;
  --global-form-border: #d7dce2;
  --global-form-error: #ff9b90;
  --global-form-success: #8ee0bd;
}

html.global-form-document {
  min-width: 390px;
  min-height: 100%;
  background: #031522;
}

html.global-form-document * {
  box-sizing: border-box;
}

html.global-form-document body {
  min-height: 100%;
  margin: 0;
  font-family: "Onest", Arial, sans-serif;
  color: #fff;
  background: #031522;
}

html.global-form-document button,
html.global-form-document input {
  font: inherit;
}

.global-form-overlay {
  min-width: 390px;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(5, 38, 63, 0.55) 0, rgba(5, 38, 63, 0.12) 38%, rgba(2, 15, 27, 0) 67%),
    #031522;
}

.global-form-overlay[hidden] {
  display: none;
}

.global-form-overlay--modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.is-global-form-open {
  overflow: hidden;
}

.global-form-overlay__shell {
  width: min(calc(100% - 56px), 1600px);
  min-height: 100svh;
  margin-inline: auto;
  padding-block: 20px 42px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.global-form-overlay__topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.global-form-overlay__brand {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
}

.global-form-overlay__brand img {
  display: block;
  width: 100px;
  height: auto;
}

.global-form-overlay__close {
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.global-form-overlay__close img {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: none;
}

.global-form-overlay__layout {
  display: grid;
  grid-template-areas:
    "intro"
    "form"
    "note";
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  padding-top: 45px;
}

.global-form-overlay__intro {
  grid-area: intro;
}

.global-form-overlay__kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #1882ff;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.global-form-overlay__kicker > span {
  position: relative;
  width: 23px;
  height: 1px;
  flex: 0 0 auto;
  background: #1882ff;
}

.global-form-overlay__kicker > span::after {
  position: absolute;
  top: 50%;
  right: -4px;
  width: 4px;
  height: 4px;
  border: 1px solid #1882ff;
  content: "";
  transform: translateY(-50%);
}

.global-form-overlay h1,
.global-form-overlay h2 {
  margin: 21px 0 0;
  color: #fff;
  font-size: 29px;
  font-weight: 400;
  line-height: 1.19;
  letter-spacing: -0.035em;
}

.global-form-overlay__lead {
  margin: 16px 0 0;
  color: var(--global-form-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.global-form {
  grid-area: form;
  display: grid;
  gap: 26px;
  margin-top: 36px;
}

.global-form__field {
  display: grid;
  gap: 9px;
  color: var(--global-form-muted);
  font-size: 13px;
  line-height: 1.35;
}

.global-form__input {
  width: 100%;
  height: 58px;
  padding: 0 14px;
  color: var(--global-form-ink);
  border: 1px solid var(--global-form-border);
  border-radius: 4px;
  outline: 0;
  background: #fff;
  font-size: 17px;
  line-height: 1;
  transition: border-color 160ms ease, outline-color 160ms ease;
}

.global-form__input::placeholder {
  color: #323841;
  opacity: 1;
}

.global-form__input--initial,
.global-form__input:focus-visible {
  border-color: #fff;
  outline: 2px solid var(--global-form-blue);
  outline-offset: 2px;
}

.global-form__input[aria-invalid="true"] {
  border-color: var(--global-form-error);
  outline: 1px solid var(--global-form-error);
  outline-offset: 1px;
}

.global-form__error {
  min-height: 0;
  color: var(--global-form-error);
  font-size: 12px;
  line-height: 1.35;
}

.global-form__error:empty {
  display: none;
}

.global-form__consent .global-form__error:not(:empty) {
  display: block;
  margin-top: 4px;
}

.global-form__consent {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #e7eaee;
  font-size: 13px;
  line-height: 1.55;
}

.global-form__consent input {
  width: 27px;
  height: 27px;
  margin: 0;
  accent-color: var(--global-form-blue);
  cursor: pointer;
}

.global-form__consent a {
  margin-left: 4px;
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.8);
  text-underline-offset: 2px;
}

.global-form__submit {
  display: flex;
  width: 100%;
  min-height: 59px;
  padding: 0 14px 0 20px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #fff;
  border: 0;
  border-radius: 4px;
  background: var(--global-form-blue);
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.global-form__submit span {
  margin-left: auto;
}

.global-form__submit img {
  width: 24px;
  height: 24px;
  margin-left: auto;
  filter: brightness(0) invert(1);
  transition: transform 180ms ease;
}

.global-form__submit:focus-visible,
.global-form-overlay__close:focus-visible,
.global-form-overlay__brand:focus-visible,
.global-form__consent a:focus-visible,
.global-form__consent input:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.global-form__submit:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.global-form__status {
  min-height: 0;
  margin: -16px 0 0;
  color: var(--global-form-muted);
  font-size: 12px;
  line-height: 1.4;
}

.global-form__status:empty {
  display: none;
}

.global-form__status[data-state="error"] {
  color: var(--global-form-error);
}

.global-form__status[data-state="success"] {
  color: var(--global-form-success);
}

.global-form-overlay__note {
  grid-area: note;
  margin: 25px 0 0;
  color: var(--global-form-muted);
  font-size: 12px;
  line-height: 1.45;
}

@media (min-width: 700px) and (max-width: 1023px) {
  .global-form-overlay__shell {
    width: min(calc(100% - 56px), 532px);
    padding-block: 35px 44px;
  }

  .global-form-overlay__close {
    position: relative;
    right: -68px;
    width: 55px;
    height: 55px;
  }

  .global-form-overlay__brand img {
    width: 142px;
  }

  .global-form-overlay__layout {
    padding-top: 63px;
  }

  .global-form-overlay__kicker {
    font-size: 14px;
  }

  .global-form-overlay__kicker > span {
    width: 32px;
  }

  .global-form-overlay h1,
  .global-form-overlay h2 {
    margin-top: 30px;
    font-size: 39px;
    line-height: 1.14;
  }

  .global-form-overlay__lead {
    margin-top: 22px;
    font-size: 16px;
  }

  .global-form {
    gap: 28px;
    margin-top: 42px;
  }

  .global-form__field,
  .global-form__consent {
    font-size: 15px;
  }

  .global-form__input {
    height: 68px;
    padding-inline: 18px;
    font-size: 20px;
  }

  .global-form__submit {
    min-height: 71px;
    font-size: 20px;
  }

  .global-form-overlay__note {
    margin-top: 29px;
    font-size: 14px;
  }
}

@media (min-width: 1024px) {
  .global-form-overlay__shell {
    width: calc(100% - 120px);
    padding-block: 20px 88px;
  }

  .global-form-overlay__brand img {
    width: clamp(156px, 12vw, 220px);
  }

  .global-form-overlay__close {
    width: 50px;
    height: 50px;
  }

  .global-form-overlay__layout {
    grid-template-areas:
      "intro form"
      "note form";
    grid-template-columns: minmax(0, 1fr) minmax(420px, .78fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 34px clamp(70px, 9vw, 172px);
    min-height: calc(100svh - 158px);
    padding-top: 8px;
    align-content: stretch;
  }

  .global-form-overlay__intro {
    align-self: center;
  }

  .global-form-overlay__kicker {
    font-size: 14px;
  }

  .global-form-overlay__kicker > span {
    width: clamp(36px, 7vw, 138px);
  }

  .global-form-overlay h1,
  .global-form-overlay h2 {
    margin-top: 40px;
    font-size: clamp(42px, 4vw, 62px);
    line-height: 1.14;
  }

  .global-form-overlay__lead {
    margin-top: 28px;
    font-size: clamp(16px, 1.35vw, 22px);
  }

  .global-form {
    align-self: center;
    gap: clamp(24px, 2.2vw, 34px);
    margin-top: 0;
  }

  .global-form__field,
  .global-form__consent {
    font-size: clamp(15px, 1.15vw, 19px);
  }

  .global-form__input {
    height: clamp(66px, 6vw, 80px);
    padding-inline: 20px;
    font-size: clamp(18px, 1.55vw, 25px);
  }

  .global-form__consent {
    grid-template-columns: 31px minmax(0, 1fr);
    gap: 13px;
  }

  .global-form__consent input {
    width: 31px;
    height: 31px;
  }

  .global-form__submit {
    min-height: clamp(67px, 5.5vw, 78px);
    padding-inline: 24px;
    font-size: clamp(19px, 1.45vw, 24px);
  }

  .global-form-overlay__note {
    align-self: end;
    margin: 0;
    font-size: clamp(14px, 1.1vw, 19px);
  }
}

@media (min-width: 1366px) {
  .global-form-overlay__shell {
    width: min(calc(100% - 156px), 1600px);
    padding-block: 40px 96px;
  }

  .global-form-overlay__close {
    width: 55px;
    height: 55px;
  }

  .global-form-overlay__layout {
    min-height: calc(100svh - 191px);
  }
}

@media (hover: hover) and (pointer: fine) {
  .global-form__submit:not(:disabled):hover {
    background: #034daf;
    transform: translateY(-1px);
  }

  .global-form__submit:not(:disabled):hover img {
    transform: translateX(4px);
  }

  .global-form-overlay__close:hover {
    color: #fff;
    border-color: var(--global-form-blue);
    background: var(--global-form-blue);
  }

  .global-form-overlay__brand:hover {
    opacity: 0.86;
  }
}

@media (prefers-reduced-motion: reduce) {
  .global-form__submit,
  .global-form__submit img,
  .global-form-overlay__close {
    transition: none;
  }

  .global-form__submit:not(:disabled):hover,
  .global-form__submit:not(:disabled):hover img {
    transform: none;
  }
}
