/* Scoped to Contact so shared listing, legal, header and footer styling remains intact. */
.contact-page { width: 635px; max-width: 100%; margin: 0 auto; padding: 62px 0 80px; box-sizing: border-box; color: #454545; }
.contact-page * { box-sizing: border-box; }
.contact-page h1 { margin: 0 0 81px; text-align: center; font-family: var(--nav-link-font-family); font-size: 50px; font-weight: 400; line-height: 57px; letter-spacing: 2px; color: #000000; }
.contact-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 30px; row-gap: 44px; }
.contact-field { min-width: 0; }
.contact-field-subject, .contact-field-message { grid-column: 1 / -1; }
.contact-field label { display: block; color: #7e7e7e; font-size: 18px; line-height: 26px; letter-spacing: .72px; margin-bottom: 9px; }
.contact-field input, .contact-field textarea { display: block; width: 100%; border: 1px solid transparent; border-radius: 7px; background: #edefed; color: #424242; font: inherit; font-size: 16px; letter-spacing: .2px; padding: 9px 20px; height: 42px; }
.contact-field textarea { height: 192px; resize: vertical; line-height: 1.75; padding-top: 12px; }
.contact-page input:focus-visible, .contact-page textarea:focus-visible, .contact-page button:focus-visible, .contact-page a:focus-visible { outline: 2px solid #597341; outline-offset: 3px; }
.contact-field input[aria-invalid="true"], .contact-field textarea[aria-invalid="true"] { border-color: #ff0000; background: #edefed; }
.contact-field-error { display: block; color: #ff0000; font-size: 14px; line-height: 1.5; }
.contact-field-error:empty { display: none; }
.contact-consent { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 0 13px; margin-top: 58px; padding: 28px; border: 1px solid transparent; background: #f4f4f4; border-radius: 11px; min-height: 122px; align-content: center; }
.contact-consent label { font-size: 16px; line-height: 26px; color: #7e7e7e; }
.contact-consent input { margin: 6px 0 0; width: 16px; height: 16px; accent-color: #597341; }
.contact-consent .contact-field-error { grid-column: 2; }
.contact-consent.has-error { border-color: #a33d35; }
.contact-page a { text-decoration: underline; text-underline-offset: 2px; }
.contact-send { display: block; width: 420px; max-width: 100%; min-height: 60px; margin: 55px auto 0; padding: 12px 24px; color: white; font-size: 24px; line-height: 28px; border: 0; border-radius: 6px; background: linear-gradient(160deg, #c4dcc9 0%, #96b679 34%, #708d55 67%, #314120 100%); cursor: pointer; }
.contact-send:hover { filter: brightness(.95); }
.contact-send:disabled { opacity: .65; cursor: wait; }
.contact-submit-status { margin: 12px 0 0; text-align: center; font-size: 15px; }
.contact-submit-status:empty { display: none; }
.contact-error-summary { margin-bottom: 28px; padding: 16px; border-left: 3px solid #a33d35; background: #fff5f3; line-height: 1.6; }
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-success { text-align: center; padding: 0 0 74px; }
.contact-success img { display: block; width: 140px; height: 116px; object-fit: contain; margin: 0 auto 66px; }
.contact-success h2 { font-family: var(--nav-link-font-family); font-size: 70px; font-weight: 400; line-height: 1.2; margin: 0 0 44px; }
.contact-success p { color: #818181; font-size: 18px; margin: 0; }
@media (max-width: 800px) {
    .body-content:has(> .contact-page) { width: 100%; max-width: none; margin-top: var(--nav-bar-height); }
    .body-content > .contact-page { width: auto; max-width: 635px; margin: 0 auto; padding: 38px 25px 70px; }
    .contact-page > * { margin-left: 0 !important; margin-right: 0 !important; }
    .contact-page h1 { font-size: 35px; line-height: 40px; letter-spacing: 1.4px; margin-bottom: 42px; }
    .contact-fields { grid-template-columns: minmax(0, 1fr); row-gap: 25px; }
    .contact-field label { font-size: 18px; margin-bottom: 9px; }
    .contact-field input { height: 42px; }
    .contact-field textarea { height: 220px; }
    .contact-consent { margin-top: 35px; padding: 22px 18px; gap: 0 12px; }
    .contact-consent label { font-size: 14px; }
    .contact-send { width: 100%; margin-top: 38px; font-size: 22px; }
    .contact-success { padding: 40px 0 110px; }
    .contact-success img { margin-bottom: 65px; }
    .contact-success h2 { font-size: 42px; margin-bottom: 65px; }
    .contact-success p { font-size: 16px; }
}

.contact-field:has([aria-invalid="true"]) label, .contact-consent.has-error label { color: #ff0000; }
