/* contact.php -- the public contact form, on the shared marketing chrome
   (marketing_header()/marketing_footer(), css/tokens.css + css/marketing.css).
   Prose layout, so the shell already constrains the width; everything here is
   the form itself. */

.contact-head {
  padding: 40px 0 26px;
}

.contact-head h1 {
  font-size: clamp(30px, 4.4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.032em;
  font-weight: 700;
  margin: 0 0 14px;
  max-width: 18ch;
  text-wrap: balance;
}

.contact-head .lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--mk-ink-2);
  margin: 0;
  max-width: 60ch;
}

/* ---------------------------------------------------------------- the form */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 0 40px;
  max-width: 640px;
}

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

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

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.contact-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--mk-ink);
}

.contact-field .contact-hint {
  font-weight: 400;
  color: var(--mk-ink-3);
  font-size: 13px;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--mk-ink);
  background: var(--mk-paper);
  border: 1px solid var(--mk-line-strong);
  border-radius: 10px;
  padding: 11px 13px;
  transition: border-color 0.14s, box-shadow 0.14s;
}

.contact-field textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.55;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--mk-accent);
  box-shadow: 0 0 0 3px var(--mk-accent-soft);
}

.contact-field p.contact-hint {
  margin: 0;
}

/* The honeypot. Kept out of sight without display:none -- some bots skip
   display:none fields precisely because it is the obvious tell, and a few
   password managers ignore them too. Moved off-screen instead, which real
   people never see and a field-filling bot still finds. */
.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.contact-privacy {
  font-size: 13px;
  line-height: 1.55;
  color: var(--mk-ink-3);
  margin: 0;
  max-width: 56ch;
}

.contact-error {
  background: var(--mk-danger-soft);
  border: 1px solid var(--mk-danger-border);
  border-left: 3px solid var(--mk-danger);
  color: var(--mk-danger);
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  margin: 0 0 22px;
  font-size: 14.5px;
  font-weight: 500;
  max-width: 640px;
}

/* --------------------------------------------------------- after it is sent */

.contact-sent {
  background: var(--mk-accent-soft);
  border: 1px solid var(--mk-accent-border);
  border-radius: var(--mk-radius);
  padding: 28px 30px;
  margin: 0 0 40px;
  max-width: 640px;
}

.contact-sent h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--mk-accent);
}

.contact-sent p {
  margin: 0 0 14px;
  color: var(--mk-ink-2);
  line-height: 1.6;
  max-width: 54ch;
}

.contact-sent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0 !important;
}

/* ------------------------------------------------------ the "try this first" */

.contact-alt {
  border-top: 1px solid var(--mk-line);
  padding-top: 26px;
  margin-bottom: 48px;
  max-width: 640px;
}

.contact-alt h2 {
  font-size: 12px;
  font-weight: 660;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mk-ink-3);
  margin: 0 0 12px;
}

.contact-alt ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.contact-alt li {
  color: var(--mk-ink-2);
  line-height: 1.55;
}

.contact-alt li::marker {
  color: var(--mk-accent-border);
}
