:root {
  --contact-navy: #081526;
  --contact-orange: #ff6a00;
  --contact-ice: #f2f6fa;
  --contact-ink: #10213a;
}

.contact-page {
  overflow-x: clip;
  background: var(--contact-ice);
  color: var(--contact-ink);
}

.contact-hero {
  position: relative;
  height: 48rem;
  padding: clamp(8.5rem, 11vw, 10.5rem) clamp(1.25rem, 5vw, 6rem)
    clamp(9rem, 15vw, 12rem);
  overflow: visible;
  background: var(--contact-navy);
  color: #fff;
}

.contact-hero__image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.contact-hero::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgb(8 21 38 / 96%) 0%,
      rgb(8 21 38 / 82%) 43%,
      rgb(8 21 38 / 62%) 100%
    ),
    radial-gradient(circle at 13% 30%, rgb(255 106 0 / 20%), transparent 25rem),
    linear-gradient(0deg, rgb(8 21 38 / 52%), transparent 42%);
  content: "";
}

.contact-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 44rem) minmax(30rem, 32rem);
  width: min(calc(100% - 8rem), 104rem);
  margin: 0 auto;
  gap: clamp(4rem, 9vw, 11rem);
  align-items: start;
}

.contact-hero__copy {
  max-width: 42rem;
  transform: translateY(clamp(3rem, 5vw, 5.5rem));
}

.contact-hero h1,
.contact-hero h2,
.contact-support h2,
.contact-support h3 {
  margin: 0;
}

.contact-hero h1 {
  max-width: 18ch;
  font-size: clamp(2.2rem, 3vw, 3.35rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.contact-hero__copy > p {
  max-width: 35rem;
  margin: 1.7rem 0 0;
  color: rgb(255 255 255 / 82%);
  font-size: 1.1rem;
  line-height: 1.75;
}

.contact-hero__lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.contact-hero__lines span {
  position: absolute;
  width: clamp(19rem, 32vw, 33rem);
  aspect-ratio: 1;
  border: 1px solid rgb(255 106 0 / 33%);
  border-radius: 50%;
}

.contact-hero__lines span:nth-child(1) {
  top: -13rem;
  right: -7rem;
}

.contact-hero__lines span:nth-child(2) {
  top: 24%;
  right: 24%;
  width: clamp(10rem, 18vw, 17rem);
  border-color: rgb(255 255 255 / 14%);
}

.contact-hero__lines span:nth-child(3) {
  right: -11rem;
  bottom: -16rem;
  width: clamp(26rem, 41vw, 45rem);
  border-color: rgb(255 255 255 / 11%);
}

.contact-hero__lines span:nth-child(4) {
  bottom: 10%;
  left: -10rem;
  width: clamp(13rem, 20vw, 20rem);
}

.contact-address-card {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  width: fit-content;
  margin-top: 2.35rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 0.8rem;
  background: rgb(4 15 29 / 30%);
}

.contact-address-card svg,
.contact-support__icon svg {
  width: 1.55rem;
  fill: none;
  stroke: var(--contact-orange);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.contact-address-card strong,
.contact-address-card span {
  display: block;
}

.contact-address-card strong {
  font-size: 0.9rem;
}

.contact-address-card span {
  margin-top: 0.2rem;
  color: rgb(255 255 255 / 70%);
  font-size: 0.84rem;
  line-height: 1.55;
}

.contact-form {
  position: relative;
  z-index: 2;
  scroll-margin-top: 7rem;
  margin-bottom: calc(-1 * clamp(12rem, 20vw, 17rem));
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1.8rem 4.5rem rgb(1 10 22 / 35%);
  color: var(--contact-ink);
}

.contact-form__heading h2 {
  font-size: 1.75rem;
}

.contact-form__heading p {
  margin: 0.4rem 0 0;
  color: #64748b;
  font-size: 0.92rem;
}

.contact-form label {
  display: block;
  margin-top: 1rem;
  color: #24364f;
  font-size: 0.88rem;
  font-weight: 800;
}

.contact-form input {
  display: block;
  width: 100%;
  min-height: 3.25rem;
  margin-top: 0.35rem;
  border: 1px solid #dbe3ed;
  border-radius: 0.58rem;
  padding: 0.7rem 0.85rem;
  background: #fff;
  color: var(--contact-ink);
  font: inherit;
}

.contact-form textarea {
  display: block;
  width: 100%;
  min-height: 7rem;
  margin-top: 0.35rem;
  border: 1px solid #dbe3ed;
  border-radius: 0.58rem;
  padding: 0.7rem 0.85rem;
  background: #fff;
  color: var(--contact-ink);
  font: inherit;
  line-height: 1.45;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--contact-orange);
  outline: 3px solid rgb(255 106 0 / 15%);
}

.contact-form__field-label b {
  color: var(--contact-orange);
}

.contact-form__field-label span {
  color: #64748b;
  font-weight: 600;
}

.contact-form__field-help {
  margin: 0.35rem 0 0;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
}

.contact-form__consent {
  display: flex !important;
  align-items: flex-start;
  gap: 0.65rem;
  color: #53657b !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  line-height: 1.45;
}

.contact-form__consent input {
  width: 1rem;
  min-height: 1rem;
  margin: 0.1rem 0 0;
  accent-color: var(--contact-orange);
}

.contact-form button,
.contact-support__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 3.1rem;
  margin-top: 1.3rem;
  border: 0;
  border-radius: 0.6rem;
  background: var(--contact-orange);
  color: var(--contact-navy);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 900;
  text-decoration: none;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.contact-form__message {
  min-height: 1.4rem;
  margin: 0.8rem 0 0;
  color: #53657b;
  font-size: 0.82rem;
  font-weight: 700;
}

.contact-form__message.is-error {
  color: #b42318;
}

.contact-form__message.is-success {
  color: #16704b;
}

.contact-support {
  width: min(100%, 76rem);
  margin: 0 auto;
  padding: clamp(11rem, 20vw, 15rem) clamp(1.25rem, 4vw, 3rem)
    clamp(5rem, 10vw, 9rem);
}

.contact-support__heading {
  max-width: 35rem;
}

.contact-support__heading h2 {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  letter-spacing: -0.03em;
}

.contact-support__heading p {
  margin: 0.65rem 0 0;
  color: #64748b;
  line-height: 1.65;
}

.contact-support__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.contact-support__item {
  min-height: 20rem;
  padding: clamp(1.5rem, 3vw, 2.3rem);
  border: 1px solid #dce5ee;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1rem 2.75rem rgb(14 35 62 / 7%);
}

.contact-support__icon {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border-radius: 0.72rem;
  background: #fff4eb;
}

.contact-support__item h3 {
  margin-top: 1.8rem;
  font-size: 1.4rem;
}

.contact-support__item p {
  max-width: 32ch;
  margin: 0.75rem 0 0;
  color: #64748b;
  line-height: 1.65;
}

.contact-support__item .contact-support__button {
  width: auto;
  margin-top: 2rem;
  padding-inline: 1.2rem;
}

.contact-support__button:hover,
.contact-support__button:focus-visible {
  background: #e85f00;
}

@media (prefers-reduced-motion: no-preference) {
  .contact-hero__lines span {
    animation: contact-orbit 16s ease-in-out infinite alternate;
  }

  .contact-hero__lines span:nth-child(2) {
    animation-delay: -4s;
  }

  .contact-hero__lines span:nth-child(3) {
    animation-delay: -8s;
  }
}

@keyframes contact-orbit {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(1.5rem, -1rem, 0) scale(1.04);
  }
}

@media (max-width: 62rem) {
  .contact-hero__image {
    inset: 0;
    width: 100%;
    object-position: center top;
  }

  .contact-hero {
    height: auto;
    overflow: hidden;
  }

  .contact-hero__inner {
    grid-template-columns: 1fr;
    max-width: 42rem;
  }

  .contact-form {
    margin-bottom: 0;
  }

  .contact-support {
    padding-top: clamp(4.5rem, 9vw, 8rem);
  }

  .contact-hero__copy {
    max-width: none;
    transform: none;
  }
}

@media (max-width: 42rem) {
  .contact-hero {
    padding-top: 8.5rem;
  }

  .contact-hero__image {
    object-position: 65% top;
  }

  .contact-hero::before {
    background:
      linear-gradient(
        180deg,
        rgb(8 21 38 / 12%) 0%,
        rgb(8 21 38 / 38%) 38%,
        rgb(8 21 38 / 90%) 76%,
        rgb(8 21 38 / 98%) 100%
      ),
      radial-gradient(
        circle at 13% 30%,
        rgb(255 106 0 / 20%),
        transparent 25rem
      );
  }

  .contact-hero h1 {
    font-size: clamp(2rem, 9.2vw, 2.65rem);
  }

  .contact-hero__copy > p {
    font-size: 0.98rem;
  }

  .contact-hero__inner {
    width: min(100% - 2.5rem, 42rem);
  }

  .contact-support__grid {
    grid-template-columns: 1fr;
  }

  .contact-support__item {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-hero__lines span {
    animation: none;
  }
}
