:root {
  --ag-contact-paper: #f2f0e9;
  --ag-contact-ink: #090909;
  --ag-contact-muted: #5b5a56;
  --ag-contact-line: rgba(9, 9, 9, .22);
  --ag-contact-accent: #ff5a36;
}

body:has(.ag-contact) {
  background: var(--ag-contact-paper);
  color: var(--ag-contact-ink);
}

.ag-contact,
.ag-contact * {
  box-sizing: border-box;
}

.ag-contact {
  overflow: hidden;
  background: var(--ag-contact-paper);
  font-family: Arial, Helvetica, sans-serif;
}

.ag-contact__frame {
  width: min(1180px, calc(100% - 80px));
  margin-inline: auto;
}

.ag-contact .ag-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.ag-contact__hero {
  padding-block: clamp(84px, 10vw, 154px) clamp(64px, 8vw, 118px);
  border-bottom: 1px solid var(--ag-contact-line);
}

.ag-contact__hero .ag-kicker {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ag-contact-line);
}

.ag-contact h1,
.ag-contact h2 {
  margin: 0;
  text-align: right;
  color: var(--ag-contact-ink);
}

.ag-contact h1 {
  margin-top: clamp(34px, 5vw, 66px);
  font-size: clamp(76px, 11vw, 156px);
  font-weight: 700;
  line-height: .78;
  letter-spacing: -.075em;
}

.ag-contact h1 em,
.ag-contact h2 em {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.045em;
}

.ag-contact h1 em {
  font-size: .68em;
  line-height: .9;
}

.ag-contact__lead {
  width: min(620px, 64%);
  margin: clamp(40px, 5vw, 72px) 0 0 auto;
  font-size: clamp(20px, 2.1vw, 30px);
  line-height: 1.35;
  text-align: right;
}

.ag-contact__body {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: clamp(56px, 8vw, 120px);
  padding-block: clamp(72px, 9vw, 132px);
}

.ag-contact__details {
  align-self: start;
  position: sticky;
  top: 120px;
}

.ag-contact__details .ag-kicker {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ag-contact-line);
}

.ag-contact__details h2 {
  margin-top: 32px;
  font-size: clamp(44px, 5vw, 72px);
  line-height: .86;
  letter-spacing: -.06em;
}

.ag-contact__details h2 em {
  margin-top: 6px;
  font-size: .72em;
  line-height: 1;
}

.ag-contact__details address {
  margin-top: 48px;
  font-size: 18px;
  line-height: 1.5;
  font-style: normal;
}

.ag-contact__details a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.ag-contact__hint {
  margin-top: 42px;
  color: var(--ag-contact-muted);
  font-size: 14px;
  line-height: 1.5;
}

.ag-contact__form {
  min-width: 0;
  padding: clamp(30px, 4vw, 58px);
  background: var(--ag-contact-ink);
  color: #fff;
}

.ag-contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.ag-contact__form label {
  display: block;
  margin-bottom: 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.ag-contact__form label small {
  display: block;
  margin-top: 5px;
  color: rgba(255,255,255,.58);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .03em;
  text-transform: none;
}

.ag-contact__form input[type="text"],
.ag-contact__form input[type="email"],
.ag-contact__form input[type="tel"],
.ag-contact__form textarea {
  width: 100%;
  margin-top: 10px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.42);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.ag-contact__form textarea {
  min-height: 170px;
  resize: vertical;
}

.ag-contact__form input:focus,
.ag-contact__form textarea:focus {
  border-color: var(--ag-contact-accent);
}

.ag-contact__upload {
  margin-top: 10px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.35);
}

.ag-contact__upload input {
  display: block;
  width: 100%;
  margin-top: 18px;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.ag-contact__upload > span {
  display: block;
  margin-top: 14px;
  color: var(--ag-contact-accent);
  font-size: 11px;
}

.ag-contact__security {
  margin: -12px 0 30px;
  color: rgba(255,255,255,.65);
  font-size: 13px;
  line-height: 1.5;
}

.ag-contact__privacy {
  display: grid !important;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.45;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.ag-contact__privacy input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--ag-contact-accent);
}

.ag-contact__privacy a {
  color: #fff;
  text-underline-offset: 3px;
}

.ag-contact__form button {
  width: 100%;
  margin-top: 6px;
  padding: 18px 20px;
  border: 0;
  background: var(--ag-contact-accent);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}

.ag-contact__form button span {
  float: right;
}

.ag-contact__required {
  margin: 12px 0 0;
  color: rgba(255,255,255,.55);
  font-size: 11px;
  text-align: right;
}

.ag-contact__notice {
  margin-bottom: 28px;
  padding: 16px 18px;
  border-left: 3px solid var(--ag-contact-accent);
  background: rgba(255,255,255,.08);
  font-size: 15px;
  line-height: 1.45;
}

.ag-contact__notice.is-success {
  border-left-color: #70bd3c;
}

.ag-contact__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 980px) {
  .ag-contact__frame {
    width: min(100% - 48px, 760px);
  }

  .ag-contact__hero {
    padding-block: 72px 68px;
  }

  .ag-contact h1 {
    font-size: clamp(72px, 16vw, 118px);
  }

  .ag-contact__lead {
    width: min(100%, 560px);
  }

  .ag-contact__body {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .ag-contact__details {
    position: static;
  }

  .ag-contact__details h2 {
    max-width: 660px;
    margin-left: auto;
  }

  .ag-contact__details address,
  .ag-contact__hint {
    max-width: 520px;
    margin-left: auto;
    text-align: right;
  }
}

@media (max-width: 640px) {
  .ag-contact__frame {
    width: calc(100% - 40px);
  }

  .ag-contact__hero {
    padding-block: 62px 54px;
  }

  .ag-contact h1 {
    margin-top: 34px;
    font-size: clamp(58px, 20vw, 86px);
    line-height: .84;
    overflow-wrap: anywhere;
  }

  .ag-contact h1 em {
    margin-top: 8px;
    font-size: .72em;
  }

  .ag-contact__lead {
    margin-top: 36px;
    font-size: 19px;
    line-height: 1.42;
  }

  .ag-contact__body {
    gap: 38px;
    padding-block: 56px 76px;
  }

  .ag-contact__details h2 {
    margin-top: 28px;
    font-size: clamp(42px, 14vw, 62px);
  }

  .ag-contact__details address {
    margin-top: 36px;
  }

  .ag-contact__hint {
    margin-top: 28px;
  }

  .ag-contact__form {
    padding: 28px 22px 32px;
  }

  .ag-contact__row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ag-contact__form label {
    margin-bottom: 24px;
  }

  .ag-contact__upload {
    padding: 18px;
  }
}
