/* ═══ Contact ═══════════════════════════════════════════════ */
/* Short page: pin the footer to the bottom of the viewport. */
.contact-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.contact-page .ct { flex: 1; }
.contact-page #site-footer { margin-top: auto; }

.ct { padding-bottom: 104px; }

.ct .wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 96px;
  align-items: start;
}
/* The goat is not pinned to a corner: it takes whatever height the copy
   leaves in this column and centres itself in it, so it sits between the
   security@ block and the bottom of the form at any viewport height. */
.ct-left { align-self: stretch; display: flex; flex-direction: column; }

.ct-goat {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 48px;
  overflow: hidden;
}
.ct-goat-art { position: relative; display: flex; justify-content: center; }
.ct-goat-art > :not(.hero-wash) { position: relative; }
/* The illustration paints its own cast shadow, so no CSS one. */
.ct-goat img { max-height: 380px; max-width: 100%; width: auto; height: auto; filter: saturate(0.78); }

.ct .h-page { font-size: 44px; line-height: 1.15; }
.ct .sub { margin-top: 16px; max-width: 42ch; font-size: 18px; line-height: 1.6; }

.ct-emails {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.ct-email {
  border-top: 1px solid var(--cm-border-strong);
  padding-top: 18px;
}
.ct-email span { display: block; font-size: 14px; color: var(--cm-ink-secondary); }
.ct-email a {
  font-size: 18px;
  color: var(--cm-ink-primary);
  margin-top: 4px;
  display: inline-block;
}
.ct-email a:hover { color: var(--cm-accent); }

.ct-form {
  background: var(--cm-bg-primary);
  border: 1px solid var(--cm-border);
  border-radius: var(--cm-radius-lg);
  padding: 40px;
  box-shadow: var(--cm-shadow-soft);
}

.field { display: flex; flex-direction: column; gap: 7px; }

/* Rhythm between stacked fields, scoped to the form's own children: the
   pair inside a .field-row is spaced by the row's gap, and picking up a
   top margin as well is what knocked Last Name a line below First. */
.ct-form > .field + .field,
.ct-form > .field-row + .field { margin-top: 20px; }

.field label { font-size: 13.5px; color: var(--cm-ink-secondary); }

.field input,
.field textarea {
  padding: 0 14px;
  height: 44px;
  border: 1px solid var(--cm-border-strong);
  border-radius: var(--cm-radius);
  background: var(--cm-bg-primary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 300;
  color: var(--cm-ink-primary);
  box-sizing: border-box;
  width: 100%;
}

.field textarea { height: auto; padding: 12px 14px; resize: vertical; }

.field input:focus,
.field textarea:focus { outline: none; border-color: var(--cm-accent); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.consent {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.consent input { width: 16px; height: 16px; accent-color: var(--cm-accent); margin: 0; flex: none; }
.consent label { font-size: 14px; color: var(--cm-ink-secondary); }
.consent a { color: var(--cm-accent); }

.ct-form .btn { margin-top: 28px; height: 44px; padding: 0 24px; }

.form-status { font-size: 14px; color: var(--cm-accent); margin: 16px 0 0; }
@media (max-width: 940px) {
  .ct .wrap { grid-template-columns: 1fr; gap: 48px; }
  /* The armchair goat is a desktop luxury. */
  .ct-goat { display: none; }
}

@media (max-width: 767px) {
  /* Longhand, never the shorthand: .ct is a hero, and the canvas's 56px
     step sits under a nav the hero is pulled -68px beneath. */
  .ct { padding-top: 124px; padding-bottom: 64px; }
  .ct .h-page { font-size: 36px; }
  .ct-form { padding: 24px 20px; }
}

@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
}
