/* The contact page, /contact/. Loaded after style.css and hub.css. */
/* The script shows and hides parts with the hidden attribute; no display rule below may override it. */
.contact-card [hidden] { display: none !important }
.contact-hero .hub-hero-copy { align-self: start }
.contact-next { display: grid; gap: .85rem; margin: 1.6rem 0 0; padding: 0; list-style: none; counter-reset: next }
.contact-next li { position: relative; padding-left: 2.3rem; line-height: 1.45; counter-increment: next }
.contact-next li::before { content: counter(next); position: absolute; left: 0; top: .05rem; display: grid; place-items: center; width: 1.55rem; height: 1.55rem; border: 1px solid var(--ink); border-radius: 50%; font: 700 .8rem/1 ui-monospace,Menlo,monospace }
.contact-next b { display: block }
.contact-fine { margin: 1rem 0 0; font-size: .9rem; color: #4a5f55 }

.contact-stage { align-items: start }
.contact-card { width: 100%; max-width: 36rem; margin: 0 auto; padding: clamp(1.2rem,2.4vw,2rem); background: #fffdf4; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 0 rgba(33,57,47,.06), 0 14px 32px -22px rgba(33,57,47,.45) }
.contact-card h2 { font-size: clamp(1.6rem,2.3vw,2.1rem) }
.contact-note { margin: 1rem 0 0; padding: .8rem 1rem; background: #f6e4c8; border-radius: 5px }

.contact-form { display: grid; gap: 1.1rem; margin-top: 1.3rem }
.contact-field { display: grid; gap: .35rem }
.contact-field label { font-weight: 650 }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; min-width: 0; padding: .7rem .8rem; border: 1px solid #8fa194; border-radius: 5px; background: #fff; color: var(--ink);
  font: inherit; font-size: 1rem; line-height: 1.35
}
.contact-form textarea { min-height: 9.5rem; resize: vertical }
.contact-form select { appearance: none; padding-right: 2.4rem; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 1.15rem) 52%, calc(100% - .8rem) 52%; background-size: .36rem .36rem; background-repeat: no-repeat }
.contact-form :is(input, select, textarea):focus-visible { outline: 3px solid #b36919; outline-offset: 1px; border-color: var(--ink) }
.contact-form [aria-invalid] { border-color: #a1371b; box-shadow: inset 0 0 0 1px #a1371b }
.contact-hint { font-size: .85rem; color: #4a5f55 }
.contact-error { font-size: .9rem; font-weight: 600; color: #a1371b }
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden }
.contact-human { min-height: 65px }
.contact-send { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.2rem }
.contact-send .button { cursor: pointer; font: inherit; font-weight: 600 }
.contact-send .button:disabled { opacity: .6; cursor: progress }
.contact-status { flex: 1 1 14rem; font-size: .95rem }
.contact-status:empty { display: none }
.contact-status[data-tone="error"] { color: #a1371b; font-weight: 600 }
.contact-form .contact-fine { margin: 0 }
.contact-form .contact-fine a { color: var(--ink) }

.contact-done { margin-top: 1.3rem; padding: 1.4rem 1.3rem; background: #e6ede1; border: 1px solid #a8b7a7; border-radius: 6px }
.contact-done:focus { outline: none }
.contact-done:focus-visible { outline: 3px solid #b36919; outline-offset: 3px }
.contact-done h3 { font-size: 1.6rem }
.contact-done p:last-child { margin-top: .6rem }
.contact-done-mark { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-bottom: .8rem; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700 }

@media (max-width: 800px) {
  .contact-next { margin-top: 1.2rem }
  .contact-card { max-width: none }
}
