/* /contact: three ways to get in touch, in order of priority.
   Loads after site.css and only adds what that doesn't have.
   Colours, type and buttons are the brand's own, from site.css. */

.ct-page {
  padding: 180px var(--_dimensions---side-margins) 220px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.ct-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ct-icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hero */
.ct-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 40px;
}

.ct-hero__lead {
  font-size: 1.25rem;
  line-height: 1.75rem;
  max-width: 34ch;
}

.ct-ways {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.ct-ways__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border: 1px solid var(--beige-140);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.4rem;
  transition: background-color .2s, border-color .2s;
}

.ct-ways__link:hover {
  background-color: var(--purple);
  border-color: var(--purple);
}

/* The number of each way to get in touch, above its heading, matching the header's buttons. */
.ct-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.4rem;
}

.ct-label--light {
  color: var(--soft-white);
}

.ct-step {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--beige-140);
  color: var(--dark-blue);
  font-size: .875rem;
}

.ct-step--first {
  background-color: var(--neon-green);
}

.ct-ways__num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--beige-140);
  font-size: .875rem;
}

.ct-ways__link:first-child .ct-ways__num {
  background-color: var(--neon-green);
}

/* 1. The video call */
.ct-call {
  scroll-margin-top: 120px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 80px;
  padding: 64px;
  background-color: var(--beige-140);
  color: var(--dark-blue);
}

.ct-call__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.ct-call__title {
  color: var(--dark-blue);
  font-size: 3rem;
  line-height: 3.5rem;
}

.ct-call__text {
  color: var(--dark-blue);
  max-width: 56ch;
}

.ct-call__action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 8px;
}

.ct-call__button {
  padding: 14px 36px;
  font-size: 18px;
}

.ct-call__button:hover {
  background-color: var(--purple);
  color: var(--dark-blue);
}

.ct-call__note {
  color: var(--dark-blue);
  opacity: .7;
  font-size: .875rem;
  line-height: 1.25rem;
}

.ct-call__aside {
  align-self: center;
  padding: 32px;
  background-color: var(--beige-100);
}

.ct-call__aside-title {
  color: var(--dark-blue);
  font-size: 1.5rem;
  line-height: 2rem;
  margin-bottom: 20px;
}

.ct-expect {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ct-expect li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.4rem;
}

.ct-expect .ct-icon {
  color: var(--dark-blue);
}

.ct-expect strong {
  font-weight: 400;
}

/* 2. Email */
.ct-email {
  scroll-margin-top: 120px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 48px 40px;
  background-color: var(--dark-blue);
  /* The forest photo, under a dark-blue wash so the words stay readable. */
  background-image:
    linear-gradient(90deg, rgba(12, 32, 38, .78) 0%, rgba(12, 32, 38, .5) 60%, rgba(12, 32, 38, .35) 100%),
    url("/images/contact/email-bg-1600.jpg");
  background-size: cover;
  background-position: center;
}

.ct-email .ct-label,
.ct-email__title,
.ct-email__text p,
.ct-email__text a {
  color: var(--soft-white);
}

.ct-email .ct-step {
  background-color: var(--beige-140);
  color: var(--dark-blue);
}

.ct-email__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--neon-green);
  color: var(--dark-blue);
}

.ct-email__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ct-email__title {
  font-size: 1.75rem;
  line-height: 2.25rem;
}

.ct-email__text .ct-label {
  margin-bottom: 6px;
}

.ct-email__button:hover {
  background-color: var(--purple);
  color: var(--dark-blue);
}

.ct-email__text a {
  font-weight: 400;
  word-break: break-word;
}

.ct-email__button {
  flex: none;
}

/* 3. A question: the same layout as the FAQ page's "Have a question?" */
.ct-question {
  scroll-margin-top: 120px;
  padding-top: 80px;
}

.ct-question__intro {
  gap: 24px;
}

.ct-question .w-form-done,
.ct-question .w-form-fail {
  background-color: var(--soft-white);
  color: var(--dark-blue);
  font-weight: 300;
  text-align: left;
}

.ct-checks {
  gap: 8px;
}

.ct-submit-row {
  gap: 20px;
}

@media screen and (max-width: 991px) {
  .ct-call {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px;
  }

  .ct-call__aside {
    align-self: stretch;
  }

  .ct-question .grid-120px {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media screen and (max-width: 767px) {
  .ct-page {
    padding-top: 140px;
    padding-bottom: 200px;
    gap: 24px;
  }

  .ct-hero h1 {
    font-size: 3.5rem;
    line-height: 3.75rem;
  }

  .ct-call {
    padding: 32px 24px;
  }

  .ct-call__title {
    font-size: 2.25rem;
    line-height: 2.75rem;
  }

  .ct-call__action,
  .ct-call__button {
    width: 100%;
  }

  .ct-call__aside {
    padding: 24px;
  }

  .ct-email {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 16px;
    background-image:
      linear-gradient(180deg, rgba(12, 32, 38, .78) 0%, rgba(12, 32, 38, .6) 100%),
      url("/images/contact/email-bg-800.jpg");
  }

  .ct-email__button {
    width: 100%;
  }

  .ct-question {
    padding-top: 48px;
  }

  .ct-names {
    flex-direction: column;
  }

  .ct-submit-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* On laptop widths the navbar narrows its side margins (site.css); keep the
   page lined up with the logo. */
@media screen and (min-width: 992px) and (max-width: 1279px) {
  .ct-page {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
  .ct-page {
    padding-left: 24px;
    padding-right: 24px;
  }
}
