html:has(body.contact),
body.contact {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg);
}

body.contact {
  margin: 0;
}

.contact-fit {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.contact-board {
  position: absolute;
  top: 0;
  left: 0;
  width: 2880px;
  height: 1800px;
  transform-origin: top left;
  background: var(--bg);
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  font-kerning: none;
  font-feature-settings: "kern" 0;
  font-synthesis: none;
}

.contact-header-board {
  display: contents;
}

.contact-form {
  position: absolute;
  left: 520px;
  top: 226px;
  width: 700px;
  margin: 0;
}

.contact-form h1 {
  margin: 0;
  font-size: 84px;
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: 0;
  color: #111;
}

.contact-lede {
  margin: 36px 0 0;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.7;
  color: #4a4a48;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
  font-family: inherit;
  font-kerning: none;
  font-feature-settings: "kern" 0;
}

.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 136px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"] {
  width: 100%;
  margin: 0;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 0;
  background: transparent;
  color: #111;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  outline: none;
}

.contact-form input::placeholder {
  color: #a3a3a3;
  opacity: 1;
}

.contact-form input:focus {
  border-bottom-color: #111;
}

.contact-form input[type="email"] {
  margin-top: 36px;
}

.phone-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
}

.phone-row input[type="tel"] {
  min-width: 0;
  border-bottom: 0;
  padding-bottom: 0;
}

.phone-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111;
  font-family: inherit;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.phone-flag {
  display: block;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  object-fit: cover;
}

.phone-dial {
  color: #111;
}

.chevron {
  display: block;
  width: 12px;
  height: 7px;
  transition: transform 0.2s ease;
}

.phone-row.is-open .chevron {
  transform: rotate(180deg);
}

.country-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 4;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 10px;
  border: 1px solid #e6e6e6;
  background: #fff;
  box-shadow: 0 16px 40px rgba(17, 17, 17, 0.08);
}

.country-menu[hidden] {
  display: none;
}

.country-search {
  width: 100%;
  margin: 0 0 8px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #ececec;
  border-radius: 0;
  background: transparent;
  color: #111;
  font-family: inherit;
  font-size: 20px;
  font-weight: 400;
  outline: none;
}

.country-search::placeholder {
  color: #a3a3a3;
}

.country-options {
  max-height: 340px;
  overflow: auto;
}

.country-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #161616;
  font-family: inherit;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.country-option.is-active,
.country-option:hover {
  background: #f4f4f4;
}

.country-option[aria-selected="true"] .country-name {
  font-weight: 500;
}

.country-flag {
  display: block;
  flex: none;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  object-fit: cover;
}

.country-name {
  flex: 1;
  min-width: 0;
}

.country-dial {
  flex: none;
  color: #6b6b69;
}

.country-empty {
  margin: 8px 14px 12px;
  color: #8a8a8a;
  font-size: 18px;
  font-weight: 400;
}

.contact-form fieldset {
  margin: 68px 0 0;
  padding: 0;
  border: 0;
}

.contact-form legend {
  margin: 0 0 18px;
  padding: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  color: #161616;
}

.choice {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 0 16px;
  padding: 18px 22px;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: #a3a3a3;
}

.choice-icon svg {
  display: block;
  width: 48px;
  height: 48px;
  overflow: visible;
}

.choice-icon .frame,
.choice-icon .mountains,
.choice-icon .bubble {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.choice:has(input:checked) .choice-icon .mountains,
.choice:has(input:checked) .choice-icon .bubble {
  fill: currentColor;
}

.choice-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.choice-title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  color: #a3a3a3;
}

.choice-note {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  color: #a3a3a3;
}

.choice:has(input:checked) .choice-title {
  color: #161616;
}

.choice:has(input:checked) .choice-note {
  color: #8a8a8a;
}

.choice:has(input:checked) .choice-icon {
  background: transparent;
  color: #161616;
}

.message {
  display: block;
  width: 100%;
  height: 168px;
  margin: 8px 0 0;
  padding: 18px 0 14px;
  border: 0;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 0;
  background: transparent;
  color: #111;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.45;
  resize: none;
  outline: none;
}

.message::placeholder {
  color: #a3a3a3;
}

.message.is-seed {
  color: #a3a3a3;
}

.message:focus {
  border-bottom-color: #111;
}

.contact-form button[type="submit"] {
  display: block;
  width: 100%;
  height: 68px;
  margin-top: 28px;
  border: 0;
  border-radius: 0;
  background: #1b1f2a;
  color: #fff;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.contact-form button[type="submit"]:hover {
  background: #2a2f3c;
}

.contact-photo {
  position: absolute;
  left: 1476px;
  top: 226px;
  width: 1134px;
  margin: 0;
}

.contact-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.contact-photo figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 54px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  color: #111;
}

@media (max-width: 760px) {
  html:has(body.contact),
  body.contact {
    display: block;
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .contact-fit {
    width: 100% !important;
    height: auto !important;
    overflow: visible;
  }

  .contact-board {
    position: relative;
    display: flex;
    flex-direction: column;
    width: auto;
    height: auto;
    transform: none !important;
    padding: 20px 20px 36px;
  }

  /* Same scaled header treatment as the mobile homepage */
  .contact-header {
    display: block;
    position: relative;
    width: calc(100% + 40px);
    margin: -20px 0 28px -20px;
    height: calc(260 * 100vw / 2880);
    overflow: hidden;
  }

  .contact-header-board {
    display: block;
    position: relative;
    width: 2880px;
    height: 260px;
    transform-origin: top left;
  }

  .contact-nav {
    display: contents;
  }

  .contact-header .header-logo,
  .contact-header .nav-link,
  .contact-header .tracked {
    position: absolute;
  }

  .contact-header .header-logo {
    width: 190px !important;
    height: 158px !important;
  }

  .contact-header .header-logo img {
    width: 100%;
    height: 100%;
  }

  .contact-header .nav-link {
    top: 41.3124px;
    font-size: 36px;
    font-weight: 500;
  }

  .contact-main {
    display: flex;
    flex-direction: column;
  }

  .contact-form,
  .contact-photo {
    position: static;
    left: auto;
    top: auto;
    width: auto;
  }

  .contact-form {
    margin-top: 36px;
  }

  .contact-form h1 {
    font-size: 40px;
  }

  .contact-lede {
    font-size: 16px;
    line-height: 1.5;
  }

  .contact-lede br {
    display: none;
  }

  .name-row,
  .contact-form input[type="email"],
  .phone-row {
    margin-top: 28px;
  }

  .contact-photo {
    margin-top: 36px;
  }

  .contact-photo figcaption {
    margin-top: 12px;
    font-size: 13px;
  }

  .country-options {
    max-height: 240px;
  }
}
