.gn-service-request {
  --gn-service-accent: #d92438;
  --gn-service-accent-hover: #bd1f31;
  --gn-service-text: #1f2229;
  --gn-service-muted: #6f747c;
  --gn-service-border: #dfe2e7;
  position: fixed;
  inset: 0;
  z-index: 1000000;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.gn-service-request,
.gn-service-request * {
  box-sizing: border-box;
}

.gn-service-request.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.gn-service-request__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 22, 26, 0.68);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.gn-service-request__viewport {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  height: 100%;
  padding: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  place-items: center;
}

.gn-service-request__dialog {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--gn-service-text);
  background:
    linear-gradient(135deg, rgba(217, 36, 56, 0.055), transparent 38%),
    #fff;
  border: 1px solid rgba(31, 34, 41, 0.08);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(9, 12, 18, 0.28);
  transform: translateY(14px) scale(0.985);
  transition: transform 180ms ease;
  outline: none;
}

.gn-service-request.is-open .gn-service-request__dialog {
  transform: translateY(0) scale(1);
}

.gn-service-request__dialog::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gn-service-accent);
  content: "";
}

.gn-service-request__content {
  padding: 42px 44px 38px;
}

.gn-service-request__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  color: #767b83;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  place-items: center;
  transition: color 150ms ease, background-color 150ms ease;
}

.gn-service-request__close:hover {
  color: var(--gn-service-accent);
  background: rgba(217, 36, 56, 0.08);
}

.gn-service-request__close svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.gn-service-request__kicker {
  margin: 0 56px 10px 0;
  color: var(--gn-service-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.3;
}

.gn-service-request__title {
  margin: 0 48px 12px 0;
  color: var(--gn-service-text);
  font: inherit;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.gn-service-request__lead {
  max-width: 440px;
  margin: 0 0 28px;
  color: var(--gn-service-muted);
  font-size: 17px;
  line-height: 1.48;
}

.gn-service-request__form {
  display: grid;
  gap: 2px;
  margin: 0;
}

.gn-service-request__field {
  display: grid;
}

.gn-service-request__field input {
  width: 100%;
  height: 58px;
  min-height: 58px;
  padding: 0 18px;
  color: var(--gn-service-text);
  font: inherit;
  font-size: 17px;
  line-height: 1;
  background: #f7f8fa;
  border: 1px solid var(--gn-service-border);
  border-radius: 12px;
  outline: none;
  box-shadow: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.gn-service-request__field input::placeholder {
  color: #969ba3;
  opacity: 1;
}

.gn-service-request__field input:hover {
  background: #fff;
  border-color: #c9cdd4;
}

.gn-service-request__field input:focus {
  background: #fff;
  border-color: var(--gn-service-accent);
  box-shadow: 0 0 0 3px rgba(217, 36, 56, 0.12);
}

.gn-service-request__field input[aria-invalid="true"] {
  border-color: var(--gn-service-accent);
}

.gn-service-request__error {
  display: block;
  min-height: 20px;
  padding: 4px 4px 0;
  color: #b91c31;
  font-size: 13px;
  line-height: 1.25;
}

.gn-service-request__consent {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  margin: 3px 0 0;
  color: #737881;
  cursor: pointer;
}

.gn-service-request__consent input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.gn-service-request__check {
  display: grid;
  width: 24px;
  height: 24px;
  color: transparent;
  background: #fff;
  border: 1px solid #cfd3da;
  border-radius: 6px;
  place-items: center;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.gn-service-request__check svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.gn-service-request__consent input:checked + .gn-service-request__check {
  color: #fff;
  background: var(--gn-service-accent);
  border-color: var(--gn-service-accent);
}

.gn-service-request__consent input:focus-visible + .gn-service-request__check {
  border-color: var(--gn-service-accent);
  box-shadow: 0 0 0 3px rgba(217, 36, 56, 0.14);
}

.gn-service-request__consent input[aria-invalid="true"] + .gn-service-request__check {
  border-color: var(--gn-service-accent);
}

.gn-service-request__consent-text {
  padding-top: 1px;
  font-size: 14px;
  line-height: 1.45;
}

.gn-service-request__error--consent {
  min-height: 22px;
  padding-left: 35px;
}

.gn-service-request__submit,
.gn-service-request__success button {
  width: 100%;
  min-height: 56px;
  padding: 13px 22px;
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  background: var(--gn-service-accent);
  border: 1px solid var(--gn-service-accent);
  border-radius: 8px;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.gn-service-request__submit:hover,
.gn-service-request__success button:hover {
  background: var(--gn-service-accent-hover);
  border-color: var(--gn-service-accent-hover);
  transform: translateY(-1px);
}

.gn-service-request__submit:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.gn-service-request__status {
  min-height: 22px;
  padding-top: 6px;
  color: #b91c31;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

.gn-service-request__success {
  padding: 26px 0 6px;
  text-align: center;
}

.gn-service-request__success[hidden],
.gn-service-request__form[hidden] {
  display: none !important;
}

.gn-service-request__success-icon {
  display: grid;
  width: 66px;
  height: 66px;
  margin: 0 auto 20px;
  color: #fff;
  background: var(--gn-service-accent);
  border-radius: 50%;
  place-items: center;
}

.gn-service-request__success-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.gn-service-request__success h3 {
  margin: 0 0 10px;
  color: var(--gn-service-text);
  font: inherit;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.gn-service-request__success p {
  max-width: 390px;
  margin: 0 auto 24px;
  color: var(--gn-service-muted);
  font-size: 16px;
  line-height: 1.5;
}

.gn-service-request__sr-only,
.gn-service-request__honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.gn-service-request button:focus-visible {
  outline: 2px solid var(--gn-service-accent);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .gn-service-request__viewport {
    padding: 12px;
  }

  .gn-service-request__dialog {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 18px;
  }

  .gn-service-request__content {
    padding: 36px 20px 24px;
  }

  .gn-service-request__close {
    top: 10px;
    right: 10px;
  }

  .gn-service-request__kicker {
    margin-right: 48px;
    font-size: 12px;
  }

  .gn-service-request__title {
    margin-right: 40px;
    font-size: 29px;
  }

  .gn-service-request__lead {
    margin-bottom: 22px;
    font-size: 15px;
  }

  .gn-service-request__field input {
    height: 54px;
    min-height: 54px;
    font-size: 16px;
  }

  .gn-service-request__submit,
  .gn-service-request__success button {
    min-height: 54px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gn-service-request,
  .gn-service-request__dialog,
  .gn-service-request__close,
  .gn-service-request__field input,
  .gn-service-request__check,
  .gn-service-request__submit,
  .gn-service-request__success button {
    transition: none !important;
  }
}
