/* ============================================================================
   LET'S TALK — the contact form page
   ----------------------------------------------------------------------------
   Loaded after /styles.css. Built from design_handoff_cmm_lets_talk_101626.
   Error is Brick (#A4372A): the one place it is used. Errors always pair the
   colour with a written message, never colour alone.
============================================================================ */

:root { --brick: #A4372A; --field-line: #4F5B57; }

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

.talk-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px clamp(40px, 6vw, 96px);
  padding-top: clamp(56px, 7vw, 104px);
  padding-bottom: clamp(64px, 7vw, 104px);
}
.talk-intro { flex: 1 1 320px; min-width: 0; }
.talk-h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--pine);
  margin-bottom: clamp(24px, 2.6vw, 34px);
}
.talk-lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--charcoal); max-width: 46ch; }
.talk-lead strong { font-weight: 600; color: var(--pine); }

.talk-form {
  flex: 2 1 540px;
  min-width: 0;
  border-top: 2px solid var(--pine);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.talk-required-note { font-size: 14px; color: var(--moss); }
.talk-star { font-weight: 700; color: var(--pine); }

/* Two fields per line; one when the form is narrower than ~460px. */
.talk-line {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px 20px;
  align-items: start;
}

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .field-head label, fieldset.group > legend { font-weight: 600; font-size: 15px; color: var(--pine); }
.field-optional { font-weight: 400; color: var(--moss); }
.field-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tz-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--pine);
  color: var(--linen);
  font-weight: 600;
  font-size: 12.5px;
}

.field input[type="text"], .field input[type="email"], .field input[type="url"],
.field select, .field textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: var(--white);
  border: 1px solid var(--field-line);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--charcoal);
}
.field select { padding: 0 12px; }
.field textarea { height: auto; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible,
.choice input:focus-visible { outline: 2px solid var(--lake); outline-offset: 2px; }
.field-count { align-self: flex-end; font-size: 13.5px; color: var(--moss); }

/* Radio and checkbox groups. The outline is drawn outside the box so an
   error never moves the layout. */
fieldset.group { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.group legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; }
.choices { clear: both; display: flex; flex-wrap: wrap; gap: 0 26px; }
[data-field="tz"] .choices { gap: 0 22px; }
.choice {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-size: 16px;
  color: var(--charcoal);
  cursor: pointer;
}
.choice-tall { min-height: 48px; }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--pine); }
.field-other { margin-top: 8px; max-width: 360px; }
.field-other label { font-weight: 400; font-size: 14.5px; color: var(--moss); }
.field-other input { height: 44px; }

/* Error state, set by lets-talk.js as .is-invalid on the .field. */
.field-error { font-weight: 500; font-size: 14px; color: var(--brick); }
.field.is-invalid > label, .field.is-invalid > .field-head label, .field.is-invalid > legend { color: var(--brick); }
.field.is-invalid > input, .field.is-invalid > select { border: 2px solid var(--brick); }
fieldset.group.is-invalid { outline: 2px solid var(--brick); outline-offset: 10px; }

/* `hidden` has to beat the display rules on these three, or the success
   message and the "where did you find me" box render on page load and the
   Submit button survives a successful send. A class that sets `display`
   outranks the browser's own [hidden] rule. */
.talk-submit-row[hidden], .field-other[hidden], .talk-success[hidden] { display: none; }

.talk-submit { padding-top: 6px; }
.talk-submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.talk-submit .btn { min-height: 48px; padding: 15px 32px; border: 0; border-radius: 0; cursor: pointer; }
.talk-submit .btn[disabled] { opacity: 0.7; cursor: progress; }
.talk-fail { flex: 1 1 240px; font-weight: 500; font-size: 15.5px; line-height: 1.5; color: var(--brick); }
.talk-fail a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.talk-success { margin-top: 0; max-width: 560px; }
.talk-success:focus { outline: none; }
