.contact-page {
  color: #11201b;
  background: #fff;
}

.contact-container {
  width: min(1280px, calc(100% - (2 * var(--airnav-gutter))));
  margin-inline: auto;
}

.contact-hero {
  position: relative;
  height: 340px;
  overflow: hidden;
  background: #f3f6f6;
}

.contact-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 100%;
}

.contact-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 606px;
  gap: 20px;
}

.contact-hero__title-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-hero__eyebrow,
.contact-hero__subtitle,
.contact-hero h1,
.contact-section-heading h2,
.contact-section-heading p,
.contact-detail h3,
.contact-detail a,
.contact-detail address {
  margin: 0;
}

.contact-hero__eyebrow {
  color: #007944;
  font: 700 20px/1.35 var(--airnav-font-body);
  text-transform: uppercase;
}

.contact-hero h1 {
  color: #0e3a2f;
  font: 400 80px/1.1 var(--airnav-font-display);
}

.contact-hero__subtitle {
  color: rgba(17, 32, 27, 0.7);
  font: 400 20px/1.35 var(--airnav-font-body);
}

.contact-hero__map {
  position: absolute;
  top: -20px;
  right: 50px;
  width: 791px;
  height: 445px;
  pointer-events: none;
}

@media (min-width: 1101px) {
  .contact-hero__map {
    top: -50px;
  }
}

/* Wider than 1440: keep the map where it sits against the content, not pinned to the viewport edge. */
@media (min-width: 1441px) {
  .contact-hero__map {
    right: calc(50% - 670px);
  }
}

.contact-page__body {
  padding: 80px 0;
}

.contact-form-section {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-section-heading {
  display: grid;
  grid-template-columns: 508px 367px 1fr;
  align-items: end;
  min-height: 70px;
  gap: 40px;
}

.contact-section-heading h2 {
  color: #0e3a2f;
  font: 400 64px/1.1 var(--airnav-font-display);
  white-space: nowrap;
}

.contact-section-heading p {
  padding-bottom: 10px;
  color: rgba(17, 32, 27, 0.7);
  font: 400 16px/1.375 var(--airnav-font-body);
}

.contact-section-heading > span {
  height: 1px;
  margin-bottom: 15px;
  background: #d6e1dc;
}

.contact-form {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 409px;
  padding: 32px;
  gap: 18px;
  background: #f3f6f6;
  border-radius: 16px;
  box-sizing: border-box;
}

/* In the flow, under the button that sent the form, so a wrapped line never covers it. */
.contact-form__notice {
  order: 1;
  margin: 0;
  color: #007944;
  font: 600 16px/22px var(--airnav-font-body);
  text-align: right;
}

.contact-form__notice--error {
  color: #a52a2a;
}

.contact-form__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.contact-form__left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form__name-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.contact-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  color: #11201b;
  font: 400 14px/19px var(--airnav-font-body);
}

.contact-field input,
.contact-field textarea,
.contact-select__trigger {
  width: 100%;
  color: rgba(17, 32, 27, 0.7);
  font: 400 16px/22px var(--airnav-font-body);
  background: #fff;
  border: 1px solid transparent;
  border-radius: 8px;
  box-sizing: border-box;
}

.contact-field input,
.contact-select__trigger {
  height: 50px;
  padding: 13px 16px;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: #007944;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(17, 32, 27, 0.3);
  opacity: 1;
}

.contact-field textarea {
  height: 240px;
  padding: 15px 16px;
  resize: vertical;
}

@media (min-width: 901px) {
  .contact-form {
    min-height: 523px;
  }

  .contact-field textarea {
    height: 354px;
  }
}

.contact-field input:focus-visible,
.contact-field textarea:focus-visible,
.contact-select__trigger:focus-visible,
.contact-turnstile:focus-within,
.contact-form__submit:focus-visible,
.contact-detail a:focus-visible {
  outline: 2px solid #00a49a;
  outline-offset: 2px;
}

.contact-select {
  position: relative;
}

.contact-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
}

.contact-select__trigger[aria-expanded="true"] {
  border-color: #007944;
}

.contact-select__trigger img {
  transition: transform 180ms ease;
}

.contact-select__trigger[aria-expanded="true"] img {
  transform: rotate(180deg);
}

/* Sent without a subject: the same red as the form's error notice. */
.contact-select__trigger[aria-invalid="true"] {
  border-color: #a52a2a;
}

.contact-select__error {
  margin: 6px 0 0;
  color: #a52a2a;
  font: 600 14px/20px var(--airnav-font-body);
}

.contact-select__list {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 10px);
  left: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 182px;
  padding: 11px 15px;
  overflow-y: auto;
  overscroll-behavior: contain;
  gap: 12px;
  margin: 0;
  list-style: none;
  scrollbar-gutter: stable;
  background: #fff;
  border: 1px solid #007944;
  border-radius: 8px;
  box-sizing: border-box;
}

.contact-select__list[hidden] {
  display: none;
}

/* No shrinking: the list scrolls, and a squeezed option wrapping to two lines would run into the next one. */
.contact-select__list [role="option"] {
  flex-shrink: 0;
  min-height: 22px;
  color: rgba(17, 32, 27, 0.7);
  font: 400 16px/22px var(--airnav-font-body);
  cursor: pointer;
}

.contact-select__list [aria-selected="true"] {
  display: none;
}

.contact-select__list [role="option"].is-active,
.contact-select__list [role="option"]:hover {
  color: #007944;
  font-weight: 600;
}

.contact-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

.contact-turnstile {
  width: 300px;
  min-width: 0;
  min-height: 65px;
}

.contact-turnstile--unavailable {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  margin: 0;
  color: rgba(17, 32, 27, 0.7);
  font: 600 12px/1.35 var(--airnav-font-body);
  background: #fff;
  border: 1px solid #d6e1dc;
  border-radius: 2px;
  box-sizing: border-box;
}

.contact-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 129px;
  height: 60px;
  padding: 16px 32px;
  color: #fff;
  font: 700 18px/25px var(--airnav-font-body);
  background: #007944;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.contact-form__submit:hover {
  background: #0e3a2f;
}

.contact-form__submit:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.contact-form__submit:disabled[data-submitting="true"] {
  cursor: wait;
}

.contact-form__honeypot {
  position: absolute;
  left: -10000px;
}

.contact-details {
  position: relative;
  z-index: 1;
  margin-top: 96px;
}

.contact-section-heading--details {
  grid-template-columns: 332px max-content 1fr;
}

.contact-details__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 40px;
}

.contact-detail {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

.contact-detail h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #007944;
  font: 600 22px/30px var(--airnav-font-body);
}

.contact-detail h3 img {
  flex: 0 0 28px;
}

.contact-detail a,
.contact-detail address {
  color: #0e3a2f;
  font: 600 16px/22px var(--airnav-font-body);
  text-decoration: none;
  font-style: normal;
}

.contact-detail a:hover {
  color: #007944;
}

@media (max-width: 1100px) {
  .contact-hero__map {
    right: -150px;
    opacity: 0.75;
  }

  .contact-section-heading,
  .contact-section-heading--details {
    grid-template-columns: minmax(300px, auto) minmax(260px, 367px) 1fr;
    gap: 24px;
  }

  .contact-section-heading h2 {
    font-size: clamp(48px, 5vw, 64px);
  }
}

@media (max-width: 900px) {
  .contact-hero__map {
    right: -330px;
  }

  .contact-section-heading,
  .contact-section-heading--details {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
  }

  .contact-section-heading h2 {
    white-space: normal;
  }

  .contact-section-heading p {
    max-width: 560px;
    padding: 0;
  }

  .contact-section-heading > span {
    width: 100%;
    margin: 0;
  }

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

  .contact-details__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
  }
}

@media (max-width: 700px) {
  .contact-hero {
    height: 194px;
  }

  .contact-hero__content {
    width: 100%;
    gap: 14px;
  }

  .contact-hero h1 {
    font-size: 40px;
    letter-spacing: -0.02em;
  }

  .contact-hero__map {
    right: -490px;
    opacity: 0.45;
  }

  .contact-page__body {
    padding: 56px 0 64px;
  }

  .contact-section-heading {
    gap: 24px;
  }

  .contact-section-heading h2 {
    font-size: 40px;
    letter-spacing: -0.02em;
  }

  /* The divider between the heading and the intro, 80px long, as in the design. */
  .contact-section-heading p {
    order: 1;
  }

  .contact-section-heading > span {
    width: 80px;
  }

  .contact-form {
    padding: 24px 20px;
  }

  .contact-form__name-row,
  .contact-details__grid {
    grid-template-columns: 1fr;
  }

  .contact-field textarea {
    min-height: 180px;
  }

  .contact-form__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-form__notice {
    text-align: left;
  }

  .contact-turnstile,
  .contact-form__submit {
    width: 100%;
  }

  .contact-details {
    margin-top: 64px;
  }

  .contact-details__grid {
    margin-top: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-select__trigger img {
    transition-duration: 0.01ms;
  }
}
