/* The contact pages, in the home page's vocabulary (home.css loads first): the title on night as on the
   Features page, then the form on a paper card, one column, the width of a letter. The thanks and failure
   pages are the title and a line, with a way back. */

.ct-head {
  padding: clamp(56px, 10vh, 120px) 0 clamp(32px, 5vh, 56px);
  text-align: center;
}

.ct-head h1 {
  margin: 0 auto;
  font-size: clamp(42px, 5.6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--on-night);
}

.ct-head .lede {
  margin: 24px auto 0;
  max-width: 30em;
  font-family: var(--serif);
  font-size: clamp(21px, 1.9vw, 26px);
  line-height: 1.3;
  color: var(--on-night);
}

.ct-head .lede a {
  color: inherit;
}

.ct-done {
  padding-bottom: clamp(80px, 14vh, 160px);
}

.ct-done .button-paper {
  margin-top: 16px;
}

/* The form: paper, like the pricing cards */
.ct-form {
  padding: 0 0 clamp(80px, 14vh, 160px);
}

.contact-form {
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px);
  background: var(--panel);
  color: var(--ink);
}

.contact-form .field + .field {
  margin-top: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.contact-form .optional {
  font-weight: 400;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* 16px and up: iOS doesn't zoom into the field */
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid var(--patina-deep);
  outline-offset: 0;
  border-color: var(--patina-deep);
}

.contact-form .button {
  margin-top: 28px;
  border: 0;
  font-family: var(--sans);
  cursor: pointer;
}

/* The field for bots: off screen, never hidden from them */
.ct-extra {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ct-alt {
  margin: 20px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.ct-alt a {
  color: inherit;
}

/* The footer alone, without "Still thinking it over?": this page is the ask */
.ct-foot {
  padding-top: 0;
}

.ct-foot .footer {
  margin-top: 0;
}

@media (max-width: 860px) {
  .ct-head {
    padding: 48px 0 32px;
    text-align: left;
  }

  .ct-head h1 {
    margin-left: 0;
    font-size: 44px;
    line-height: 1.04;
    letter-spacing: -0.01em;
  }

  .ct-head .lede {
    margin-left: 0;
    font-size: 22px;
  }

  .ct-done {
    text-align: left;
  }

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