/* =========================================================
   CONTACT PAGE
   ========================================================= */


/* =========================================================
   HERO
   ========================================================= */

.contact-hero {
  background: var(--highlight);
  color: var(--ink);
}

.contact-hero .page-kicker {
  margin: 0 0 18px;

  color: var(--midnight);

  font-size: .78rem;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.contact-hero .display {
  color: var(--midnight);
}


/* =========================================================
   CONTACT LAYOUT
   ========================================================= */

.contact-section {
  padding-top: 90px;
  padding-bottom: 90px;

  background: var(--canvas);
  color: var(--ink);
}

.contact-section .contact-grid {
  display: grid;
  grid-template-columns:
    minmax(0, .85fr)
    minmax(460px, 1.15fr);
  align-items: start;
  gap: 64px;
}

.contact-copy {
  max-width: 500px;
}

.contact-copy .heading {
  margin-top: 0;
  color: var(--midnight);
}

.contact-copy .lead {
  color: var(--ink);
}


/* =========================================================
   CONTACT INFORMATION
   ========================================================= */

.contact-list {
  display: grid;
  gap: 18px;

  margin-top: 34px;
}

.contact-item {
  padding-bottom: 18px;

  border-bottom: 1px solid rgba(1, 136, 159, .24);
}

.contact-item span {
  display: block;

  margin-bottom: 3px;

  color: var(--midnight);

  font-size: .85rem;
  font-weight: 750;
  line-height: 1.4;
}

.contact-item p {
  margin: 0;
}

.contact-item a {
  color: var(--ink);

  transition: color .25s ease;
}

.contact-item a:hover,
.contact-item a:focus-visible {
  color: var(--teal);
}


/* =========================================================
   FORM CONTAINER
   ========================================================= */

.contact-form {
  display: grid;

  width: 100%;
  max-width: 680px;
  min-width: 0;
  justify-self: end;
  gap: 20px;

  padding: 36px;

  background: var(--paper);
  border: 1px solid rgba(1, 136, 159, .22);
  border-radius: 12px;

  box-shadow:
    0 16px 42px rgba(15, 77, 92, .1);
}

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

.contact-form .field {
  min-width: 0;
}

.contact-form .field label {
  display: block;

  margin-bottom: 7px;

  color: var(--midnight);

  font-size: .84rem;
  font-weight: 700;
  line-height: 1.4;
}

.required-mark {
  color: var(--teal);
}


/* =========================================================
   FORM CONTROLS
   ========================================================= */

.contact-form input,
.contact-form textarea,
.contact-form select {
  display: block;

  width: 100%;
  max-width: 100%;
  min-width: 0;

  background: var(--canvas);
  border: 1px solid rgba(15, 77, 92, .3);
  border-radius: var(--radius);
  color: var(--ink);

  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background-color .2s ease;
}

.contact-form input,
.contact-form select {
  min-height: 52px;
  padding: 12px 14px;
}

.contact-form textarea {
  min-height: 150px;
  padding: 13px 14px;

  line-height: 1.5;

  resize: vertical;
}

.contact-form input:hover,
.contact-form textarea:hover,
.contact-form select:hover {
  border-color: var(--teal);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  background: var(--paper);
  border-color: var(--teal);

  outline: none;

  box-shadow:
    0 0 0 3px rgba(1, 136, 159, .14);
}


/* =========================================================
   CUSTOM SELECT
   ========================================================= */

.contact-form .select-control {
  position: relative;

  width: 100%;
  min-width: 0;
}

.contact-form .select-control select {
  appearance: none;

  padding-right: 46px;

  overflow: hidden;

  text-overflow: ellipsis;
  white-space: nowrap;

  cursor: pointer;
}

.select-chevron {
  position: absolute;
  top: 50%;
  right: 17px;

  width: 8px;
  height: 8px;

  border-right: 2px solid var(--midnight);
  border-bottom: 2px solid var(--midnight);

  pointer-events: none;

  transform:
    translateY(-70%)
    rotate(45deg);
}

.select-control:focus-within .select-chevron {
  border-color: var(--teal);
}


/* =========================================================
   FORM ACTIONS
   ========================================================= */

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-form .btn--primary {
  flex: 0 0 auto;

  background: var(--midnight);
  border-color: var(--midnight);
  color: var(--paper);
}

.contact-form .btn--primary:hover,
.contact-form .btn--primary:focus-visible {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--paper);

  transform: translateY(-2px);
}

.form-note {
  margin: 0;

  color: rgba(26, 26, 26, .7);

  font-size: .78rem;
  line-height: 1.4;
}

.contact-form .form-status {
  min-height: 24px;

  color: var(--midnight);

  font-size: .9rem;
  font-weight: 700;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {
  .contact-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .contact-section .contact-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .contact-copy {
    max-width: 680px;
  }

  .contact-form {
    max-width: 100%;
    justify-self: stretch;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {
  .contact-hero .page-kicker {
    margin-bottom: 12px;

    font-size: .68rem;
    letter-spacing: .075em;
  }

  .contact-section {
    min-width: 0;
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .contact-section .contact-grid {
    min-width: 0;
    max-width: 100%;
    gap: 36px;
  }

  .contact-form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 17px;

    padding: 22px;

    border-radius: var(--radius);
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .contact-form select {
    font-size: 1rem;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .contact-form .btn--primary {
    width: 100%;
  }
}