/* Contact on the 2.0 page kit (src/pages/contact.html; "css": "contact"; site plan Part 2). Only what the kit doesn't already
   place: the two ways in as one framed list, and the form (src/partials/form.html, its classes unchanged) on the page's one
   forest card, with paper fields and the paper button that a primary takes on forest. Tokens only. */

.ct-grid { align-items: start; }
.ct-hero .kit-hero__copy > .kit-acts { margin-top: 28px; }

/* ───────── The ways in: one frame, two rows, each with its icon square ───────── */
.ct-routes { display: grid; width: 100%; margin: 40px 0 0; padding: 0; list-style: none; border-radius: var(--o2-r-card); box-shadow: inset 0 0 0 1px var(--o2-line); }
.ct-routes li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; row-gap: 2px; align-items: center; padding: 20px 24px; }
.ct-routes li + li { box-shadow: 0 -1px 0 var(--o2-line); }
.ct-routes .kit-grid__ic { grid-row: 1 / span 2; margin: 0; }
.ct-routes__big { font: 500 var(--o2-t-h4)/1.3 var(--o2-font); letter-spacing: -0.02em; color: var(--o2-ink); overflow-wrap: anywhere; }
a.ct-routes__big { text-decoration: underline; text-decoration-color: var(--o2-ink-4); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a.ct-routes__big:hover { text-decoration-color: currentColor; }
.ct-routes li > span:last-child { font-size: 15px; line-height: 1.5; color: var(--o2-ink-3); }
.ct-try { display: grid; justify-items: start; gap: 6px; margin: 24px 0 0; }

/* ───────── The form on the forest card ───────── */
.ct-card { display: grid; align-content: start; gap: 10px; padding: clamp(28px, 4vw, 48px); border-radius: 24px; }
.ct-card .o2-rings { --rings-size: 560px; --rings-o: 0.2; }
.ct-card__title { margin: 0; font: 500 var(--o2-t-h3)/1.2 var(--o2-font); letter-spacing: var(--o2-tracking-head); color: var(--o2-on-forest); }
.ct-card__line { margin: 0; font-size: 16px; line-height: 1.55; }
.ct-form { margin-top: 18px; }
.ct-form__grid { display: grid; gap: 18px; }
.ct-field { display: grid; gap: 8px; min-width: 0; }
.ct-field label { font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--o2-on-forest); }
.ct-field__opt { font-weight: 400; color: var(--o2-on-forest-muted); }
.ct-field :is(input, select) { width: 100%; height: 48px; padding: 0 14px; border: 0; border-radius: var(--o2-r-control); background: var(--o2-paper-fixed); color: var(--o2-ink-fixed); font: 400 16px/1.2 var(--o2-font); box-shadow: inset 0 0 0 1px rgb(14 27 18 / 0.12); }
.ct-field select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--o2-ink-fixed) 50%), linear-gradient(135deg, var(--o2-ink-fixed) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.ct-field :is(input, select):focus { outline: none; box-shadow: 0 0 0 3px var(--o2-on-forest); }
.ct-field input[aria-invalid="true"] { box-shadow: 0 0 0 2px var(--o2-on-forest), inset 0 0 0 2px var(--o2-ink-fixed); }
.ct-field--hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ct-form__error { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; font-size: 14.5px; font-weight: 500; line-height: 1.4; color: var(--o2-on-forest); }
.ct-form__error[hidden] { display: none; }
.ct-form__erricon { display: inline-grid; flex: none; }
.ct-form__erricon svg { width: 18px; height: 18px; }
.ct-form__send { display: inline-flex; align-items: center; justify-content: center; justify-self: start; height: 46px; min-width: 140px; padding: 0 22px; border: 0; border-radius: var(--o2-r-control); background: var(--o2-paper-fixed); color: var(--o2-ink-fixed); font: 500 15px/1 var(--o2-font); cursor: pointer; transition: background-color var(--o2-fast) ease; }
.ct-form__send:hover { background: #FFFFFF; }
.ct-form__send:active { transform: translateY(1px); }
.ct-form__send:disabled { cursor: progress; opacity: 0.8; }
.ct-form__note { margin: 18px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--o2-on-forest-muted); }
.ct-form__note a, .ct-nojs a { color: var(--o2-on-forest); text-underline-offset: 3px; }
.ct-form .form__done { display: grid; gap: 4px; padding: 20px 22px; border-radius: var(--o2-r-card); background: var(--o2-paper-fixed); color: var(--o2-ink-fixed); font-size: 16px; line-height: 1.5; }
.ct-form .form__done b { font-weight: 500; }
.ct-nojs { display: none; margin: 8px 0 0; font-size: 16px; line-height: 1.55; color: var(--o2-on-forest) !important; }
html:not(.js) .ct-form { display: none; }
html:not(.js) .ct-nojs { display: block; }

@media (max-width: 640px) {
  .ct-card { padding: 28px 20px; border-radius: 20px; }
  .ct-routes li { padding: 18px 18px; column-gap: 14px; }
  .ct-form__send { width: 100%; }
}
