/* Contact (Part 2): a split on cream with the form in the first screen (the words, Dana's card with how the answer
   comes back landing beside it, the ways to reach her; the three-step form in a white card at the right); then the
   chat as the quicker way, its conversion card over the left of a framed photo of a landscaper at her pickup. */

/* ---------- hero ---------- */
.cth { padding-block: clamp(48px, 5vw, 80px) clamp(80px, 8vw, 120px); background: var(--c-paper-alt); }
.cth__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); column-gap: clamp(40px, 6vw, 96px); align-items: start; }
.cth__words h1 { font-size: var(--fs-h1); }
.cth__line { max-width: 520px; margin-top: var(--space-3); color: var(--c-ink-soft); font-size: var(--fs-lead); }
/* Dana's card, and how the answer comes back landing over its right side, clear of her face */
.cth__dana { position: relative; display: flex; align-items: center; width: max-content; max-width: 100%; margin-top: 68px; }
.cth__card { flex: none; width: 236px; margin: 0; padding: 10px 10px 16px; border-radius: var(--radius-l); background: var(--c-paper); border: 1px solid var(--c-line); box-shadow: var(--shadow-l); }
.cth__photo { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--radius-l) - 6px); }
.cth__card figcaption { padding: 12px 6px 0; }
.cth__card b { display: block; color: var(--c-brand); font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; }
.cth__card span { display: block; margin-top: 2px; color: var(--c-ink-soft); font-size: var(--fs-small); }
.cth__stop { top: -50px; right: 0; }
/* the kit's hold: Dana's card is the sequence's first item, always on; the three cards land one by one by a fade, hold,
   then fade out together and land again (never one taken back while another stays) */
.cth__steps { position: relative; z-index: 2; display: grid; gap: 10px; width: 260px; margin: 0 0 0 -40px; padding: 0; list-style: none; }
.cth__step { display: flex; align-items: flex-start; gap: 11px; padding: 12px 14px 12px 12px; border-radius: var(--radius-m); background: var(--c-paper); border: 1px solid var(--c-line); box-shadow: var(--shadow-m); opacity: var(--kit-in, 1); }
.cth__ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-accent); color: var(--c-brand); }
.cth__step b { display: block; color: var(--c-brand); font-family: var(--font-display); font-size: 0.975rem; font-weight: 700; line-height: 1.25; }
.cth__step small { display: block; margin-top: 2px; color: var(--c-ink-soft); font-size: 0.8125rem; line-height: 1.35; }
.cth__ways { display: flex; flex-wrap: wrap; gap: 12px 26px; margin: 36px 0 0; padding: 0; list-style: none; }
.cth__ways a, .cth__ways span { display: inline-flex; align-items: center; gap: 8px; color: var(--c-brand); font-weight: 600; text-decoration: none; }
.cth__ways a:hover, .cth__ways a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.cth__ways svg { flex: none; color: var(--c-brand); }

/* ---------- the form ---------- */
.ctf { box-sizing: border-box; padding: clamp(22px, 2.4vw, 30px); border-radius: var(--radius-l); background: var(--c-paper); border: 1px solid var(--c-line); box-shadow: var(--shadow-l); scroll-margin-top: 96px; }
.ctf__marks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.ctf__mark { display: grid; gap: 8px; color: var(--c-ink-soft); font-size: 0.8125rem; font-weight: 600; }
.ctf__mark::before { content: ''; height: 4px; border-radius: 4px; background: var(--c-line); transition: background-color var(--dur-fast) var(--ease-out); }
.ctf__mark[aria-current="step"], .ctf__mark[data-kit-past] { color: var(--c-brand); }
.ctf__mark[aria-current="step"]::before, .ctf__mark[data-kit-past]::before { background: var(--c-accent); }
.ctf fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.ctf legend { padding: 0; color: var(--c-brand); font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.ctf__hint { margin-top: 6px; color: var(--c-ink-soft); font-size: var(--fs-small); }
.ctf__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ctf__chips label { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--c-line); border-radius: var(--radius-pill); background: var(--c-paper); color: var(--c-brand); font-size: 0.9375rem; font-weight: 600; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.ctf__chips label:hover { border-color: var(--c-brand); }
.ctf__chips input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.ctf__chips label[data-kit-on] { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-on-brand); }
.ctf__chips label:has(input:focus-visible) { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.ctf__chips .ctf__err { flex-basis: 100%; }
.ctf__field { margin-top: 16px; }
.ctf__field label { display: block; margin-bottom: 6px; color: var(--c-ink); font-size: 0.9375rem; font-weight: 600; }
.ctf__opt { color: var(--c-ink-soft); font-weight: 500; }
.ctf__field input { box-sizing: border-box; width: 100%; height: 50px; padding: 0 14px; border: 1.5px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-paper); color: var(--c-ink); font-family: var(--font-ui); font-size: 1rem; }
.ctf__field input::placeholder { color: color-mix(in srgb, var(--c-ink-soft) 70%, transparent); }
.ctf__field input:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 1px; border-color: var(--c-brand); }
.ctf__field[data-kit-invalid] input { border-color: var(--c-accent-text); }
.ctf__err { margin-top: 6px; color: var(--c-accent-text); font-size: 0.875rem; font-weight: 600; }
.ctf__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.ctf[data-kit-sending] [type="submit"] { opacity: 0.7; pointer-events: none; }

/* ---------- skip: the chat, the quicker way ---------- */
.ctk__head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 48px); }
.ctk__stage { position: relative; height: clamp(500px, 42vw, 580px); }
.ctk__frame { position: absolute; top: 0; bottom: 0; left: 96px; right: 0; overflow: hidden; border-radius: var(--radius-l); background: var(--c-brand-dark); box-shadow: var(--shadow-l); }
.ctk__img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 40%; transform-origin: 72% 35%; animation: ctk-push 30s var(--ease-out) both; }
@keyframes ctk-push { from { transform: scale(1); } to { transform: scale(1.06); } }
.ctk:has(.ctk__stop[aria-pressed="true"]) .ctk__img { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .ctk__img { animation: none; } }
.ctk__stop { top: 16px; right: 16px; }
.ctk__convert { position: absolute; z-index: 2; left: 0; top: 50%; transform: translateY(-50%); width: min(440px, 46%); }

/* ---------- narrower ---------- */
@media (max-width: 1099px) {
  .cth__in { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
  .ctf { max-width: 620px; }
}
@media (max-width: 899px) {
  .ctk__frame { left: 48px; }
  .ctk__convert { width: min(420px, 60%); }
}
/* the phone: Dana's card with its stop icon beside its foot, then the answer's three cards just under it (never over her
   name); the skip photo tall, the landscaper in its top, the card over its lower part */
@media (max-width: 699px) {
  .cth__dana { display: grid; grid-template-columns: minmax(0, 220px) minmax(36px, 1fr); grid-template-areas: "card stop" "steps steps"; align-items: end; column-gap: 12px; row-gap: 14px; width: min(100%, 372px); margin-top: 48px; }
  .cth__card { grid-area: card; width: 100%; }
  .cth__stop { grid-area: stop; position: relative; top: auto; right: auto; justify-self: end; }
  .cth__steps { grid-area: steps; width: auto; margin: 0 0 0 32px; }
  .ctk__stage { height: 760px; }
  .ctk__frame { left: 0; }
  .ctk__img { object-position: 74% 50%; }
  .ctk__convert { left: 12px; right: 12px; top: auto; bottom: 12px; transform: none; width: auto; }
}
