/* =========================================================================
   Contact (/contact), 2026-09-30. The split counter, now the sibling of the
   new quote form: the same field, chip and button language (vintage tokens,
   2-3px control radius, square ink buttons), the form on the left and an ink
   counter on the right. Page-local, no Tailwind utilities, so no css:build.
   1rem = 10px (62.5% root).
   ========================================================================= */
.ct { --ct-on-ink: #FDFCF7;
    --ct-on-ink-2: rgba(253, 252, 247, .74);
    --ct-on-ink-3: rgba(253, 252, 247, .56);
    --ct-rule-ink: rgba(253, 252, 247, .16);
    padding: 5.6rem 0 10.4rem;
    background: var(--vh-cream);
    color: var(--vh-ink);
    font-family: var(--vh-body); }
.ct *, .ct *::before, .ct *::after { box-sizing: border-box; }
.ct-wrap { max-width: 128rem; margin: 0 auto; padding: 0 3.2rem; }
.ct a:focus-visible, .ct button:focus-visible { outline: 2px solid var(--vh-ink); outline-offset: 3px; }
.ct-side a:focus-visible, .ct-side button:focus-visible { outline-color: var(--ct-on-ink); }
.ct [x-cloak] { display: none !important; }
.ct-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ct-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 42rem); background: var(--vh-white); border: 1px solid var(--vh-line); border-radius: 6px; overflow: hidden; box-shadow: 0 1px 0 rgba(24, 21, 16, .03), 0 18px 40px -28px rgba(24, 21, 16, .35); }
.ct-main { padding: 4.8rem 5.6rem 5.2rem; }
.ct-side { padding: 4.8rem 4.4rem 4.4rem; background: var(--vh-ink); color: var(--ct-on-ink); }

/* -- heading: the title, the promise beside it (as on the quote form) ------ */
.ct-head { display: flex; align-items: flex-start; gap: 3.2rem; margin-bottom: 4rem; }
.ct-h1 { flex: none; margin: 0; font-family: var(--vh-display); font-weight: 600; font-size: 4.2rem; line-height: 1; letter-spacing: .01em; text-transform: uppercase; color: var(--vh-ink); }
.ct-head__text { padding-top: .3rem; }
.ct-lede { margin: 0; max-width: 40ch; font-size: 1.65rem; line-height: 1.55; color: var(--vh-muted); text-wrap: pretty; }
.ct-mail { display: none; margin: 1rem 0 0; font-size: 1.5rem; color: var(--vh-muted); }
.ct-mail a, .ct-help a, .ct-note a { color: var(--vh-ink); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }

/* -- controls ------------------------------------------------------------------ */
.ct-lbl { display: block; margin: 0 0 .9rem; padding: 0; font-family: var(--vh-display); font-weight: 600; font-size: 1.25rem; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; color: var(--vh-muted); }
.ct-opt { font-family: var(--vh-body); font-weight: 400; font-size: 1.3rem; letter-spacing: 0; text-transform: none; color: var(--vh-text-faint); }
.ct-field { min-width: 0; }
.ct-in, .ct-ta { display: block; width: 100%; margin: 0; padding: 1.2rem 1.4rem; background: var(--vh-cream); border: 1px solid var(--vh-line-strong); border-radius: 2px; font-family: var(--vh-body); font-size: 1.6rem; line-height: 1.4; color: var(--vh-ink); transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.ct-in { min-height: 5rem; }
.ct-ta { min-height: 15rem; line-height: 1.55; resize: vertical; }
.ct-in::placeholder, .ct-ta::placeholder { color: var(--vh-text-faint); opacity: 1; }
.ct-in:focus, .ct-ta:focus { outline: none; border-color: var(--vh-ink); background: #FFFFFF; box-shadow: 0 0 0 1px var(--vh-ink); }
.ct-in:disabled { opacity: .55; }

.ct-topic { margin: 0; padding: 0; border: 0; min-width: 0; }
.ct-chips { display: flex; flex-wrap: wrap; gap: .8rem; }
.ct-chip { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 4.4rem; padding: .6rem 1.6rem; background: #FFFFFF; border: 1.5px solid var(--vh-line-strong); border-radius: 3px; font-family: var(--vh-display); font-weight: 500; font-size: 1.3rem; line-height: 1.15; letter-spacing: .07em; text-transform: uppercase; color: var(--vh-ink); cursor: pointer; transition: border-color .15s ease; }
.ct-chip:hover { border-color: var(--vh-ink); }
.ct-chip:has(input:checked) { border-color: var(--vh-ink); box-shadow: inset 0 0 0 1px var(--vh-ink); font-weight: 600; }
.ct-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ct-chip:has(input:focus-visible) { outline: 2px solid var(--vh-ink); outline-offset: 2px; }

.ct-when { margin-top: 2.4rem; }
.ct-order { display: grid; grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); column-gap: 2.4rem; align-items: end; }
.ct-help { margin: 0 0 1.4rem; font-size: 1.4rem; line-height: 1.5; color: var(--vh-muted); }
.ct-note { padding: 1.4rem 1.8rem; background: var(--vh-cream); border: 1px solid var(--vh-line); border-radius: 3px; font-size: 1.45rem; line-height: 1.6; color: var(--vh-muted); text-wrap: pretty; }
.ct-note p { margin: 0; }
.ct-note p + p { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--vh-line); }
.ct-msg { margin-top: 2.8rem; }
.ct-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.4rem; margin-top: 2.4rem; }

.ct-error { margin: 0 0 2.8rem; padding: 1.4rem 1.8rem; background: var(--vh-stop-tint); border: 1px solid var(--vh-stop); border-radius: 3px; font-size: 1.5rem; line-height: 1.55; color: var(--vh-stop); }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* -- the send row: square ink button, the promise beside it -------------------- */
.ct-send { display: flex; align-items: center; gap: 2.4rem; margin-top: 3.2rem; }
.ct-btn { display: inline-flex; align-items: center; justify-content: center; gap: 1.2rem; min-height: 5.6rem; padding: 0 3.2rem; background: var(--vh-ink); border: 1.5px solid var(--vh-ink); border-radius: 0; font-family: var(--vh-display); font-weight: 600; font-size: 1.5rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--ct-on-ink); cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.ct-btn svg { width: 1.6rem; height: 1.6rem; flex: none; transition: transform .2s ease; }
.ct-btn:hover { background: #2C271F; border-color: #2C271F; color: var(--ct-on-ink); }
.ct-btn:hover svg { transform: translateX(3px); }
.ct-btn:disabled { opacity: .7; cursor: default; }
.ct-promise { margin: 0; font-size: 1.4rem; line-height: 1.5; color: var(--vh-text-faint); }

/* -- after sending --------------------------------------------------------------- */
.ct-done { max-width: 58rem; }
.ct-status { display: inline-flex; align-items: center; gap: .8rem; margin: 0 0 2.4rem; padding: .4rem 1rem; background: var(--vh-ok-tint); border-radius: 3px; font-family: var(--vh-display); font-weight: 500; font-size: 1.2rem; letter-spacing: .12em; text-transform: uppercase; color: var(--vh-ok); }
.ct-status::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: currentColor; }
.ct-done__p { margin: 2rem 0 0; max-width: 50ch; font-size: 1.65rem; line-height: 1.6; color: var(--vh-muted); text-wrap: pretty; }
.ct-done__p b { color: var(--vh-ink); font-weight: 600; overflow-wrap: anywhere; }
.ct-echo { margin: 2.8rem 0 0; }
.ct-echo__q { margin: 0; max-height: 20rem; overflow: auto; padding: 1.4rem 1.8rem; background: var(--vh-cream); border: 1px solid var(--vh-line); border-radius: 3px; font-size: 1.5rem; line-height: 1.6; color: var(--vh-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.ct-echo + .ct-done__p { margin-top: 2.8rem; }
.ct-done__go { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem 2.8rem; margin-top: 3.2rem; }
.ct-textlink { display: inline-flex; align-items: center; min-height: 4.4rem; font-size: 1.5rem; color: var(--vh-ink); text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }

/* -- the ink counter --------------------------------------------------------------- */
.ct-eb { margin: 0; font-family: var(--vh-display); font-weight: 500; font-size: 1.2rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ct-on-ink-3); }
.ct-side__go { margin-top: 4.4rem; }
.ct-email { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.6rem; margin-top: 1.6rem; padding: 1.7rem 0 1.6rem; border-top: 1px solid var(--ct-rule-ink); border-bottom: 1px solid var(--ct-rule-ink); }
.ct-email__a { font-size: 1.9rem; line-height: 1.3; color: var(--ct-on-ink); text-decoration: underline; text-decoration-color: rgba(253, 252, 247, .38); text-underline-offset: .22em; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.ct-email__a:hover { text-decoration-color: currentColor; }
.ct-email__note { flex: 1 0 100%; margin: 0; font-size: 1.35rem; line-height: 1.45; color: var(--ct-on-ink-2); }
.ct-copy { flex: none; min-height: 3rem; padding: .3rem 1rem; background: transparent; border: 1px solid rgba(253, 252, 247, .4); border-radius: 3px; font-family: var(--vh-display); font-weight: 500; font-size: 1.1rem; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; color: var(--ct-on-ink); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.ct-copy:hover { border-color: var(--ct-on-ink); }
.ct-copy.is-done { background: var(--ct-on-ink); border-color: var(--ct-on-ink); color: var(--vh-ink); }
.ct-copy[hidden] { display: none; }

.ct-reach { margin: 0; }
.ct-reach > div { display: grid; grid-template-columns: 9.6rem minmax(0, 1fr); column-gap: 1.6rem; align-items: baseline; padding: 1.5rem 0; border-bottom: 1px solid var(--ct-rule-ink); }
.ct-reach dt { font-family: var(--vh-display); font-weight: 500; font-size: 1.15rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ct-on-ink-3); }
.ct-reach dd { margin: 0; font-size: 1.55rem; line-height: 1.45; color: var(--ct-on-ink); }
.ct-reach dd a { color: var(--ct-on-ink); text-decoration: underline; text-decoration-color: rgba(253, 252, 247, .38); text-underline-offset: .22em; text-decoration-thickness: 1px; }
.ct-reach dd a:hover { text-decoration-color: currentColor; }

.ct-routes { margin-top: 1.6rem; border-top: 1px solid var(--ct-rule-ink); }
.ct-route { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "d a" "t a"; align-items: center; column-gap: 1.6rem; padding: 1.5rem 0; border-bottom: 1px solid var(--ct-rule-ink); color: var(--ct-on-ink); text-decoration: none; }
.ct-route__d { grid-area: d; font-size: 1.35rem; line-height: 1.4; color: var(--ct-on-ink-2); }
.ct-route__t { grid-area: t; margin-top: .3rem; font-weight: 600; font-size: 1.65rem; line-height: 1.3; color: var(--ct-on-ink); }
.ct-route svg { grid-area: a; width: 1.6rem; height: 1.6rem; color: var(--ct-on-ink); transition: transform .2s ease; }
.ct-route:hover .ct-route__t { text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.ct-route:hover svg { transform: translateX(3px); }
.ct-local { margin: 2.8rem 0 0; font-size: 1.4rem; line-height: 1.55; color: var(--ct-on-ink-2); }

/* -- desktop: the message box takes up the slack, so the form ends level with
      the ink counter whatever topic is picked (no jump when the chips change) -- */
@media (min-width: 901px) {
    .ct-main { display: flex; flex-direction: column; }
    .ct-form { display: flex; flex: 1 1 auto; flex-direction: column; }
    .ct-msg { display: flex; flex: 1 1 auto; flex-direction: column; }
    .ct-ta { flex: 1 1 auto; }
}

/* -- responsive ------------------------------------------------------------------ */
@media (max-width: 1100px) {
    .ct-main { padding: 4.4rem 4rem 4.8rem; }
    .ct-card { grid-template-columns: minmax(0, 1fr) minmax(0, 36rem); }
    .ct-side { padding: 4.4rem 3.6rem 4rem; }
    .ct-head { flex-direction: column; gap: 1.4rem; }
}
@media (max-width: 900px) {
    .ct { padding-top: 4rem; }
    .ct-card { grid-template-columns: minmax(0, 1fr); }
    .ct-mail { display: block; }
    /* the counter sits under the form: its two halves side by side */
    .ct-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 4.8rem; padding: 4rem; }
    .ct-side__go { margin-top: 0; }
}
@media (max-width: 640px) {
    .ct { padding: 0 0 3.2rem; background: var(--vh-white); }
    .ct-wrap { padding: 0; }
    .ct-card { background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
    .ct-main { padding: 3.2rem 2rem 4rem; }
    .ct-head { margin-bottom: 3.2rem; }
    .ct-h1 { font-size: 3.4rem; }
    .ct-lede { font-size: 1.6rem; }
    .ct-chips { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .ct-chip { padding: .6rem 1rem; }
    .ct-order { grid-template-columns: minmax(0, 1fr); row-gap: 1.2rem; }
    .ct-help { margin: 0; }
    .ct-pair { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .ct-send { flex-direction: column; align-items: stretch; gap: 1.4rem; }
    .ct-btn { width: 100%; }
    .ct-promise { text-align: center; }
    /* the counter becomes an inset ink card, clear of the footer */
    .ct-side { display: block; margin: 0 2rem; padding: 3.2rem 2.4rem 3.6rem; border-radius: 6px; }
    .ct-side__go { margin-top: 4rem; }
    .ct-email__a { font-size: 1.8rem; }
    .ct-done__go { flex-direction: column; align-items: stretch; gap: 1.2rem; }
    .ct-done__go .ct-textlink { justify-content: center; }
}
@media (max-width: 374px) {
    .ct-side { padding: 2.8rem 2rem 3.2rem; }
}
@media (prefers-reduced-motion: reduce) {
    .ct *, .ct *::before, .ct *::after { transition: none !important; }
}
