.g8-main-nav a[aria-current="page"] {
  color: var(--g8-white);
}

.g8-main-nav a[aria-current="page"]::after {
  width: 100%;
}

.g8-contact-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0;
  background:
    radial-gradient(circle at 88% 16%, rgba(254, 205, 192, 0.82), transparent 25rem),
    linear-gradient(145deg, var(--g8-foam) 0%, var(--g8-white) 62%, var(--g8-surface-soft) 100%);
}

.g8-contact-hero::after {
  position: absolute;
  right: -100px;
  bottom: -210px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(34, 49, 76, 0.1);
  border-radius: 50%;
  content: "";
}

.g8-contact-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 30px;
}

.g8-contact-hero__inner > div {
  display: grid;
  gap: 19px;
}

.g8-contact-hero__inner h1 {
  max-width: 11ch;
}

.g8-contact-hero__inner > div > p:last-child {
  max-width: 650px;
  color: var(--g8-muted);
  font-size: 1.08rem;
}

.g8-contact-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-self: end;
}

.g8-contact-hero__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 18px;
  color: var(--g8-navy);
  background: var(--g8-white);
  border: 1px solid var(--g8-border);
  border-radius: var(--g8-radius);
  box-shadow: var(--g8-shadow);
  font-weight: 600;
}

.g8-contact-layout {
  display: grid;
  gap: 24px;
  align-items: start;
}

.g8-contact-form {
  position: relative;
  padding: 24px;
  background: var(--g8-white);
  border: 1px solid var(--g8-border);
  border-radius: var(--g8-radius);
  box-shadow: var(--g8-shadow);
}

.g8-contact-fields {
  display: grid;
  gap: 18px;
}

.g8-contact-fields label {
  display: grid;
  gap: 7px;
  color: var(--g8-navy);
  font-weight: 600;
}

.g8-contact-fields label > span {
  font-size: 0.9rem;
}

.g8-contact-fields em {
  color: var(--g8-coral-strong);
  font-style: normal;
}

.g8-contact-fields small {
  color: var(--g8-muted);
  font-weight: 400;
}

.g8-contact-fields input,
.g8-contact-fields select,
.g8-contact-fields textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--g8-text);
  background: var(--g8-white);
  border: 1px solid rgba(34, 49, 76, 0.24);
  border-radius: var(--g8-radius);
  font: inherit;
}

.g8-contact-fields textarea {
  min-height: 170px;
  resize: vertical;
}

.g8-contact-fields input:focus,
.g8-contact-fields select:focus,
.g8-contact-fields textarea:focus {
  border-color: var(--g8-coral-strong);
  outline: 3px solid var(--g8-rose-pale);
  outline-offset: 2px;
  box-shadow: 0 0 0 1px var(--g8-rose-soft);
}

.g8-contact-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 20px 0;
  color: var(--g8-muted);
  font-size: 0.86rem;
}

.g8-contact-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.g8-contact-consent a,
.g8-faq-item__answer a {
  color: var(--g8-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.g8-contact-form > .g8-button {
  border: 0;
  cursor: pointer;
}

.g8-contact-form__honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.g8-contact-notice {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--g8-radius);
  font-weight: 600;
}

.g8-contact-notice--success {
  color: #175d3a;
  background: #e8f7ef;
  border: 1px solid #bce2cc;
}

.g8-contact-notice--error {
  color: #812d2d;
  background: #fff0ee;
  border: 1px solid #efc4be;
}

.g8-contact-aside {
  display: grid;
  gap: 19px;
  padding: 30px;
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(145deg, var(--g8-navy-deep), var(--g8-navy));
  border-radius: var(--g8-radius);
  box-shadow: var(--g8-shadow);
}

.g8-contact-aside h2 {
  max-width: 12ch;
  color: var(--g8-white);
  font-size: clamp(1.8rem, 5vw, 2.75rem);
}

.g8-contact-aside > a {
  width: fit-content;
  color: var(--g8-white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.g8-contact-aside__detail {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.g8-contact-aside__detail strong {
  color: var(--g8-white);
}

.g8-contact-delivery,
.g8-contact-orders {
  background: var(--g8-surface-soft);
}

.g8-contact-delivery__grid {
  display: grid;
  gap: 14px;
}

.g8-contact-delivery__grid article {
  padding: 23px;
  background: var(--g8-white);
  border: 1px solid var(--g8-border);
  border-radius: var(--g8-radius);
  box-shadow: 0 18px 38px -32px rgba(34, 49, 76, 0.45);
}

.g8-contact-delivery__grid article > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  background: var(--g8-rose-pale);
  border-radius: 50%;
  font-size: 1.3rem;
}

.g8-contact-delivery__grid h3 {
  margin-bottom: 8px;
}

.g8-contact-delivery__grid p,
.g8-contact-faq-list .g8-faq-item__answer {
  color: var(--g8-muted);
}

.g8-contact-faq-list {
  width: 100%;
  max-width: none;
}

.g8-contact-orders__layout .g8-faq-visual {
  order: -1;
}

.g8-contact-orders + .g8-faq-section {
  background: var(--g8-white);
}

@media (min-width: 700px) {
  .g8-contact-hero__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .g8-contact-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .g8-contact-fields__wide {
    grid-column: 1 / -1;
  }

  .g8-contact-delivery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 940px) {
  .g8-contact-hero__inner h1,
  .g8-contact-section .g8-section-title,
  .g8-contact-delivery .g8-section-title,
  .g8-contact-orders .g8-section-title {
    max-width: none;
    white-space: nowrap;
  }

  .g8-contact-section .g8-section-header,
  .g8-contact-delivery .g8-section-header,
  .g8-contact-orders .g8-section-header {
    width: 100%;
    max-width: none;
  }

  .g8-contact-orders__layout {
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.75fr);
    gap: clamp(38px, 5vw, 68px);
  }

  .g8-contact-orders__layout .g8-faq-visual {
    order: -1;
    width: 100%;
  }

  .g8-contact-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 34px;
  }

  .g8-contact-form {
    padding: 34px;
  }

  .g8-contact-aside {
    position: sticky;
    top: 120px;
    padding: 36px;
  }
}

@media (max-width: 699px) {
  .g8-contact-hero {
    padding: 58px 0 64px;
  }

  .g8-contact-hero__links,
  .g8-contact-hero__links a,
  .g8-contact-form > .g8-button {
    width: 100%;
  }

  .g8-contact-form,
  .g8-contact-aside {
    padding: 22px;
  }
}
