/* Submittal Set. The page is a drawing sheet: a wide drawing area and a title-block
   column on the right. White paper, black ink, one grey for lines, red only on the
   Send button. Arial throughout, as on the sheets. */

:root {
  --paper: #ffffff;
  --ink: #000000;
  --line: #767676;
  --red: #c00000;
  --gutter: 40px;
  --gap: 48px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.5 Arial, Helvetica, sans-serif;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

h1, h2, h3 { font-weight: 400; margin: 0; }

/* ---- Sheet layout -------------------------------------------------------- */

.sheet {
  max-width: 1680px;
  margin: 0 auto;
  padding: 40px var(--gutter) 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(290px, 21%, 360px);
  grid-template-areas:
    "head tb"
    "hero tb"
    "draw tb"
    "foot tb";
  grid-template-rows: auto auto 1fr auto;
  column-gap: var(--gap);
}

.sheet__head { grid-area: head; }
.sheet__tb   { grid-area: tb; align-self: start; }
.sheet__hero { grid-area: hero; min-width: 0; margin: 0; }
.sheet__draw { grid-area: draw; min-width: 0; }
.sheet__foot { grid-area: foot; }

h1 {
  font-size: clamp(34px, 3.9vw, 60px);
  line-height: 1.08;
  max-width: 19em;
  margin-bottom: 40px;
}

/* ---- Hero: what you send beside what you get back, same wall, same height -- */

.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 24px;
}
.pair figure { margin: 0; min-width: 0; }
.pair figcaption { margin-top: 16px; font-size: 16px; line-height: 1.5; }

/* ---- Prose ---------------------------------------------------------------- */

.prose {
  max-width: 40em;
  margin: 48px 0 0;
  font-size: 20px;
  line-height: 1.5;
}
.prose p { margin: 0 0 0.9em; }

/* ---- Standard details ----------------------------------------------------- */

.details { margin: 64px 0 0; }
.details figcaption { margin-top: 16px; font-size: 16px; line-height: 1.5; }

/* ---- Questions ------------------------------------------------------------ */

.qa { max-width: 40em; margin: 80px 0 0; }
.qa h2 { font-size: 32px; line-height: 1.2; margin-bottom: 24px; }
.qa h3 { font-size: 19px; font-weight: 700; line-height: 1.35; margin: 28px 0 6px; }
.qa p { margin: 0; }

.sheet__foot {
  margin-top: 96px;
  font-size: 15px;
}

/* ---- Title block ---------------------------------------------------------- */

.tb {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid var(--ink);
}
.tb tr { border-top: 1px solid var(--line); }
.tb tr:first-child { border-top: 0; }
.tb th,
.tb td { display: block; text-align: left; padding: 0 14px; }
.tb th {
  padding-top: 10px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.tb td {
  padding-top: 6px;
  padding-bottom: 14px;
  font-size: 17px;
  line-height: 1.35;
  text-align: center;
}
.tb__name td { padding: 18px 14px 16px; }
.tb__co { display: block; font-size: 26px; line-height: 1.15; text-transform: uppercase; }
.tb__city { display: block; margin-top: 4px; }
.tb__form { border-top: 2px solid var(--ink) !important; }
.tb__form td { text-align: left; padding: 16px 14px 16px; }

.tb h2 {
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 12px;
}

/* ---- Form: each field is a signature line, as in the title block --------- */

.form label {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.3;
}
.form input,
.form textarea {
  display: block;
  width: 100%;
  margin: 2px 0 0;
  padding: 6px 0 5px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 17px/1.35 Arial, Helvetica, sans-serif;
  -webkit-appearance: none;
  appearance: none;
}
.form textarea { resize: vertical; min-height: 4.2em; }
.form input::placeholder,
.form textarea::placeholder { color: var(--line); opacity: 1; }
.form input:focus,
.form textarea:focus { outline: 0; border-bottom: 2px solid var(--ink); padding-bottom: 4px; }

.form button {
  display: block;
  width: 100%;
  margin-top: 22px;
  padding: 13px 16px;
  border: 0;
  border-radius: 0;
  background: var(--red);
  color: #ffffff;
  font: 700 17px/1.2 Arial, Helvetica, sans-serif;
  cursor: pointer;
}
.form button:hover { background: #a00000; }
.form button:disabled { cursor: progress; background: var(--line); }

.form__status { margin: 10px 0 0; font-size: 15px; }
.form__status:empty { margin: 0; }

.notice { display: none; margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.notice:target, .notice.is-shown { display: block; }

/* Turnstile is invisible; keep its box out of the flow */
.form__ts { position: absolute; }

.hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---- Narrow: title block under the heading ------------------------------- */

@media (max-width: 699px) {
  .pair { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
}

@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .sheet {
    padding-top: 28px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "head" "hero" "tb" "draw" "foot";
  }
  h1 { margin-bottom: 28px; }
  .sheet__tb { margin: 40px 0 0; max-width: 560px; }
  .prose { font-size: 18px; margin-top: 40px; }
  .details { margin-top: 48px; }
  .qa { margin-top: 56px; }
  .qa h2 { font-size: 28px; }
  .sheet__foot { margin-top: 64px; }
}
