/* ============================================================
   CONTACT FORM
   Uses the existing tokens only: navy, cream, gold, the two
   typefaces, the existing border, radius and shadow values.
   No new design language.
   ============================================================ */

.cf {
  margin-top: 44px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 34px 30px;
  box-shadow: var(--shadow-sm);
}
.cf-head { margin-bottom: 26px; }

/* Shown only when JavaScript is off (see the noscript rule in the page head).
   The form itself is hidden then, so nothing can be submitted by GET. */
.cf-noscript {
  display: none;
  margin: 0 0 22px; padding: 16px 18px;
  border-left: 3px solid var(--gold); background: rgba(194,160,76,.08);
  font-size: 0.92rem; line-height: 1.6; color: var(--navy);
}
.cf-noscript a { color: var(--navy); }
.cf-head h3 {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  color: var(--navy); margin: 0 0 8px;
}
.cf-head p {
  margin: 0; font-size: 0.94rem; line-height: 1.6; color: var(--grey-text); max-width: 62ch;
}

.cf-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}
.cf-row-full { grid-column: 1 / -1; }

.cf-field { display: flex; flex-direction: column; gap: 7px; }
.cf-field label {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--navy);
}
.cf-field label .cf-opt {
  font-weight: 500; letter-spacing: .02em; text-transform: none;
  color: var(--grey-text); font-size: 0.78rem;
}
.cf-field label .cf-req { color: var(--gold); margin-left: 2px; }

.cf-field input,
.cf-field select,
.cf-field textarea {
  font-family: var(--sans); font-size: 0.95rem; color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 12px 14px; min-height: 46px;          /* comfortable touch target */
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cf-field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.cf-field select { cursor: pointer; }

.cf-field input:hover,
.cf-field select:hover,
.cf-field textarea:hover { border-color: rgba(22,38,63,.28); }

.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(194,160,76,.18);
}
.cf-field input:focus-visible,
.cf-field select:focus-visible,
.cf-field textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* field-level error */
.cf-field[data-invalid="1"] input,
.cf-field[data-invalid="1"] select,
.cf-field[data-invalid="1"] textarea { border-color: #b3402f; }
.cf-err {
  font-size: 0.82rem; line-height: 1.4; color: #b3402f; min-height: 0;
}
.cf-err:empty { display: none; }

/* honeypot: off-screen, never shown, not reachable by keyboard */
.cf-hp {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* summary of errors, announced and focusable */
.cf-summary {
  margin: 0 0 20px; padding: 14px 18px;
  border-left: 3px solid #b3402f; background: rgba(179,64,47,.06);
  font-size: 0.9rem; line-height: 1.55; color: var(--navy);
}
.cf-summary[hidden] { display: none; }
.cf-summary ul { margin: 8px 0 0; padding-left: 18px; }
.cf-summary li { margin-bottom: 3px; }

/* success */
.cf-done {
  margin: 0; padding: 22px 24px;
  border-left: 3px solid var(--gold); background: rgba(194,160,76,.08);
  font-size: 0.98rem; line-height: 1.6; color: var(--navy);
}
.cf-done[hidden] { display: none; }
.cf-done strong { display: block; font-family: var(--serif); font-size: 1.2rem; margin-bottom: 6px; }

.cf-actions {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
  margin-top: 6px;
}
.cf-actions .btn { min-height: 48px; display: inline-flex; align-items: center; }
.cf-actions .btn[disabled] { opacity: .6; cursor: default; }
.cf-note {
  margin: 0; font-size: 0.82rem; line-height: 1.5; color: var(--grey-text); max-width: 46ch;
}
.cf-note a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.cf-note a:hover { color: var(--gold); }

@media (max-width: 760px) {
  .cf { padding: 26px 20px 24px; margin-top: 32px; }
  .cf-grid { grid-template-columns: 1fr; gap: 16px; }
  .cf-head h3 { font-size: 1.3rem; }
  .cf-actions { flex-direction: column; align-items: stretch; }
  .cf-actions .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .cf-field input, .cf-field select, .cf-field textarea { transition: none; }
}
