/* Contact page */
.contact-page .contact-hero { padding: 72px 0 40px; background: var(--paper); }
.contact-page .contact-hero h1 { margin: 12px 0 20px; font-size: clamp(40px, 4.4vw, 64px); line-height: 1.08; letter-spacing: -.04em; font-weight: 600; max-width: 18ch; }
.free-review-page .contact-hero h1 { text-wrap: balance; }
.contact-page .contact-hero h1 em { font-style: normal; color: var(--accent); }
.contact-page .contact-lead { max-width: 360px; text-wrap: balance; margin: 0; font-size: 20px; line-height: 1.6; color: var(--muted); }
/* Desktop: "great together." stays together on the second line; the paragraph runs to two lines. */
@media (min-width: 901px) {
  .contact-page .contact-hero h1 em { white-space: nowrap; }
  .contact-page .contact-lead { max-width: 480px; }
}
.contact-page .contact-main { padding: 0 0 96px; background: var(--paper); }
.contact-page .contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
.contact-page .contact-card { padding: 32px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(36,41,37,.06), 0 14px 32px rgba(36,41,37,.08); }
.contact-page .contact-side { display: grid; gap: 20px; }
.contact-page .contact-quote { margin: 0; border-left: 4px solid var(--accent); }
.contact-page .contact-quote .quote-stars { display: block; margin: 0 0 12px; font-size: 20px; line-height: 1; letter-spacing: 3px; color: var(--accent); }
.contact-page .contact-quote blockquote { margin: 0 0 16px; padding: 0; }
.contact-page .contact-quote blockquote p { font-size: 18px; line-height: 1.6; font-weight: 500; color: var(--ink); }
.contact-page .contact-quote figcaption { font-size: 16px; line-height: 1.5; color: var(--muted); }
.contact-page .contact-quote figcaption strong { font-weight: 700; color: var(--ink); }
.contact-page .contact-card h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.25; letter-spacing: -.02em; font-weight: 600; }
.contact-page .contact-card p { margin: 0 0 18px; font-size: 17px; line-height: 1.65; }
.contact-page .contact-card p:last-child { margin-bottom: 0; }
.contact-page .contact-form { display: grid; gap: 22px; }
.contact-page .field label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 600; color: var(--ink); }
.contact-page .req { color: var(--accent); }
.contact-page .field input,
.contact-page .field select,
.contact-page .field textarea { width: 100%; box-sizing: border-box; padding: 13px 14px; font: inherit; font-size: 16px; line-height: 1.5; color: var(--ink); background: #fff; border: 1px solid #b9bdb6; border-radius: 7px; }
.contact-page .field textarea { resize: vertical; min-height: 150px; }
.contact-page .field input:focus-visible,
.contact-page .field select:focus-visible,
.contact-page .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.contact-page .field input[aria-invalid="true"] { border-color: #b3261e; }
.contact-page .field-error { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: #b3261e; }
.contact-page .form-status { margin: 0; padding: 12px 14px; font-size: 16px; line-height: 1.5; color: #8a1c15; background: #fdeceb; border-radius: 7px; }
.contact-page .contact-form .btn { justify-self: start; cursor: pointer; border: 0; font-family: inherit; }
.contact-page .contact-form .btn:disabled { opacity: .6; cursor: wait; }
.contact-page .consent-label { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.6; color: var(--ink); cursor: pointer; }
.contact-page .consent-label input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.contact-page .consent-label input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.contact-page .consent-label input[aria-invalid="true"] { outline: 2px solid #b3261e; outline-offset: 2px; }
.contact-page .consent-label a { text-underline-offset: 3px; }
.contact-page .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-page .form-success h2 { font-size: 26px; }
.contact-page [hidden] { display: none !important; }
@media(max-width:900px) {
  .contact-page .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-page .contact-card { padding: 24px; }
}
.contact-page address { margin: 0 0 18px; font-style: normal; font-size: 17px; line-height: 1.65; }

/* Desktop: the side cards are only as tall as their content, stacked from the top beside the form.
   The form card stretches to the bottom of the side column; the message box takes up the extra height. */
@media (min-width: 901px) {
  .contact-page .contact-grid { align-items: stretch; }
  .contact-page .contact-side { align-content: start; }
  .contact-page .contact-form-card { display: flex; flex-direction: column; }
  .contact-page .contact-form { flex: 1; grid-template-rows: none; display: flex; flex-direction: column; }
  .contact-page .contact-form .field-grow { flex: 1; display: flex; flex-direction: column; }
  .contact-page .contact-form .field-grow textarea { flex: 1; }
  .contact-page .contact-form .btn { align-self: flex-start; }
}

/* Free site review page */
.free-review-page .contact-lead { max-width: 640px; text-wrap: pretty; }
.free-review-page .form-reassure { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
.free-review-page .contact-form .btn { min-height: 48px; }
.free-review-page .consent-label { min-height: 44px; align-items: center; }
.free-review-page .form-success:focus { outline: none; }
.free-review-page .contact-card .form-success p { margin: 0; }
@media (min-width: 901px) {
  .free-review-page .contact-grid { align-items: start; }
}
