/* ========================= CONTACT — LAYOUT ========================= */
/* The form is the page: one small card in the middle of the screen, the client logos under it and nothing
   else. The header carries the logo alone.

   The form itself (step tabs, card) is the site's one lead form: partials/lead-form.html, lead-form.css.
   Its sizes are multiples of one unit, 16px, and this page lowers that unit when the window is short, so a
   whole step (every field and its main button) still fits on the screen without scrolling. Step 2, the
   tallest, is 37 units and starts 100px down (header and gap): the unit is a 38th of what is left under
   116px, which keeps a little air under the card. From a window 724px tall it is the full 16px.
   Sizes on this page are px on purpose: a card in the middle of the screen should not grow with the
   monitor. */
.ct-main {
  --cj-lf-unit: clamp(12px, calc((100vh - 116px) / 38), 16px);
  --ct-header: 76px;
}

/* Navbar on /contact: the logo, on the left edge of the site's 1232px column.
   One class more specific than styles.css's .navbar__inner on purpose: the three stylesheets arrive one by one
   after the first paint (the inlined critical CSS draws it), and with equal weight styles.css would undo these
   sizes for the moment it lands before this file, making the header jump. */
.navbar .navbar__inner--contact {
  max-width: 1312px;
  height: 76px;
  padding: 0 40px;
  justify-content: flex-start;
}

.navbar__inner--contact .navbar__logo {
  position: static;
  transform: none;
  order: 0;
  flex-shrink: 0;
}

.navbar__inner--contact .navbar__logo img {
  display: block;
  width: auto;
  height: 28px;
}

/* The card and the logos, centred in what the header leaves of the screen. When they are taller than that
   (step 2 on a laptop, the booking calendar), they start 24px under the header and the page scrolls. */
.ct-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--ct-header) + 24px) 24px 40px;
}

/* 38 of the form's units: 608px at full size */
.ct-main > .cj-lf-host {
  width: 100%;
  max-width: calc(38 * var(--cj-lf-unit));
}

/* ========================= UNDER THE CARD: CLIENT LOGOS ========================= */
/* The brands that already work with ContentJet (the same white logos as the home page band), one quiet row
   as wide as the card. */
.ct-brands {
  width: 100%;
  max-width: calc(38 * var(--cj-lf-unit));
  margin-top: 32px;
  text-align: center;
}

.ct-brands__label {
  margin: 0;
  font-family: 'Sohne', sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
}

.ct-brands__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.ct-brands__logos img {
  display: block;
  width: auto;
  height: 20px;
  opacity: 0.72;
}

/* ========================= RESPONSIVE ========================= */
/* Phone: the card starts right under the header, at the form's full unit; its buttons stay pinned to the
   bottom of the window (data-lf-pin, lead-form.css), so the fields are what has to fit. */
@media (max-width: 767px) {
  .ct-main {
    --cj-lf-unit: 16px;
    --ct-header: 56px;
    justify-content: flex-start;
    padding: calc(var(--ct-header) + 8px) 16px 40px;
  }

  .navbar .navbar__inner--contact { height: 56px; padding: 0 20px; }
  .navbar__inner--contact .navbar__logo img { height: 24px; }

  /* the five logos on one line */
  .ct-brands { margin-top: 28px; }
  .ct-brands__label { font-size: 11px; }
  .ct-brands__logos { flex-wrap: nowrap; justify-content: space-between; gap: 12px; margin-top: 10px; }
  .ct-brands__logos li { min-width: 0; }
  .ct-brands__logos img { height: 13px; }
}

/* Where the form pins its buttons to the bottom of the window (data-lf-pin, lead-form.css: small phones, a
   phone on its side, a window much wider than tall), a field that takes focus scrolls clear of the header
   and of that bar. */
@media (max-width: 767px), (max-height: 520px), (min-aspect-ratio: 5/2) {
  html { scroll-padding: 72px 0 88px; }
}
