/* Contact: places and sizes its parts and draws the form, with system.css's tokens. */
.page-contact section[id] { scroll-margin-top: 80px; }

/* ===== hero: the owner's photo at the left with his message answered on it, the words and the form at the right ===== */
.contact-hero { padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3.5rem, 7vw, 6rem); }
.contact-hero__in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 4.5vw, 4.5rem); align-items: stretch; }
.contact-hero__frame { min-height: 640px; }
.contact-hero__frame > img { object-position: 40% 35%; }
.contact-hero__frame::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgba(13, 14, 21, 0) 45%, rgba(13, 14, 21, 0.55) 100%); }
.contact-hero__scene.scene { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; z-index: 2; }
.contact-hero__stop { position: absolute; top: 0.9rem; right: 0.9rem; z-index: 3; }
/* the chat seen from the owner's side, as he types: his message goes out on the right in violet, our team's reply and
   its typing come in on the left */
.contact-hero__scene[data-scene="fastreply"] .fr-them { justify-self: end; border-radius: 18px 18px 5px 18px; background: var(--c-brand-text); color: var(--c-on-brand); font-weight: 650; transform-origin: 100% 100%; }
.contact-hero__scene[data-scene="fastreply"] .fr-mine { justify-items: start; }
.contact-hero__scene[data-scene="fastreply"] .fr-us { border-radius: 18px 18px 18px 5px; background: var(--fr-them); color: var(--fr-ink); font-weight: 500; }
.contact-hero__scene[data-scene="fastreply"] .fr-typing { border-radius: 18px 18px 18px 5px; background: var(--fr-them); }
.contact-hero__title { max-width: 11em; margin: 0; font-size: var(--fs-h1); font-weight: var(--fw-display); line-height: 1.04; letter-spacing: -0.03em; color: var(--c-text); }
.contact-hero__line { max-width: 30rem; margin: 1rem 0 1.75rem; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--c-text-soft); }

/* ===== the form: three steps, its markers on top, each step one screen ===== */
.cform { box-sizing: border-box; padding: clamp(1.25rem, 2.5vw, 1.75rem); border-radius: var(--radius-l); background: var(--grid), var(--c-panel); box-shadow: inset 0 0 0 1px var(--c-rule); }
.cform__marks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.cform__marks li { display: flex; align-items: center; gap: 0.5rem; padding-bottom: 0.6rem; border-bottom: 2px solid rgba(255, 255, 255, 0.12); font: 600 0.875rem/1.25 var(--font-ui); color: var(--c-text-meta); }
.cform__marks i { display: grid; place-items: center; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); font: 700 0.8125rem/1 var(--font-ui); font-style: normal; }
.cform__marks li[aria-current="step"] { border-color: var(--c-accent); color: var(--c-text); }
.cform__marks li[aria-current="step"] i { background: var(--c-brand-text); box-shadow: none; color: var(--c-on-brand); }
.cform__marks li[data-kit-past] { border-color: var(--c-brand); color: var(--c-text-soft); }
.cform__marks li[data-kit-past] i { background: color-mix(in srgb, var(--c-brand) 30%, transparent); box-shadow: inset 0 0 0 1px var(--c-brand); color: var(--c-text); }
.cform__step { min-width: 0; margin: 0; padding: 0; border: 0; }
.cform__q { padding: 0; margin-bottom: 1rem; font: 700 clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem)/1.25 var(--font-display); color: var(--c-text); }
.cform__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.cform__tile { position: relative; display: block; cursor: pointer; }
.cform__tile input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cform__tile span { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 0.75rem; row-gap: 0.15rem; align-items: center; height: 100%; box-sizing: border-box; padding: 0.95rem 1rem; border-radius: var(--radius-m); background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); transition: background-color var(--dur-fast), box-shadow var(--dur-fast); }
.cform__tile svg { grid-row: span 2; color: var(--c-brand-on-ink); }
.cform__tile b { font: 700 1.0625rem/1.25 var(--font-ui); color: var(--c-text); }
.cform__tile small { font-size: var(--fs-small); line-height: 1.35; color: var(--c-text-soft); }
.cform__tile:hover span { background: rgba(115, 103, 240, 0.12); box-shadow: inset 0 0 0 1px var(--c-brand-on-ink); }
.cform__tile input:checked + span { background: rgba(115, 103, 240, 0.28); box-shadow: inset 0 0 0 1.5px var(--c-brand); }
.cform__tile input:checked + span svg { color: var(--c-accent); }
.cform__tile input:focus-visible + span { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.cform__tiles .cform__error { grid-column: 1 / -1; }
.cform__count .picker__choices { max-width: 30rem; }
.cform__echo { margin: -0.4rem 0 1rem; font: 600 0.9375rem/1.4 var(--font-ui); color: var(--c-accent); }
.cform__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem 0.9rem; }
.cform__field { display: grid; gap: 0.35rem; align-content: start; }
.cform__field--wide { grid-column: 1 / -1; }
.cform__label { font: 600 0.9375rem/1.3 var(--font-ui); color: var(--c-text); }
.cform__label small { font-weight: 500; font-size: 0.875rem; color: var(--c-text-soft); }
.cform input:not([type="radio"]), .cform textarea { box-sizing: border-box; width: 100%; min-height: 3rem; padding: 0.7rem 0.85rem; border: 0; border-radius: var(--radius-m); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); color: var(--c-text); font: 500 1.0625rem/1.35 var(--font-ui); }
.cform textarea { resize: vertical; min-height: 5.5rem; }
.cform input:not([type="radio"]):focus-visible, .cform textarea:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 1px; box-shadow: inset 0 0 0 1px var(--c-brand); }
.cform [aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--c-alert) !important; }
.cform__error { margin: 0.35rem 0 0; font: 600 0.9375rem/1.35 var(--font-ui); color: #FF8A8B; }
.cform__nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.6rem; margin-top: 1.25rem; }
.cform__nav .button--line { margin-right: auto; }
.cform[data-kit-sending] [type="submit"] { opacity: 0.7; pointer-events: none; }
.cform__line { margin: 0.85rem 0 0; text-align: right; font-size: var(--fs-small); color: var(--c-text-soft); }
@media (max-width: 900px) {
  .contact-hero__in { grid-template-columns: 1fr; }
  /* the words and the form first, the owner's photo with his answered message after them */
  .contact-hero__frame { order: 2; min-height: 0; aspect-ratio: 4 / 4.4; }
  .contact-hero__frame > img { object-position: 36% 30%; }
}
@media (max-width: 560px) {
  .cform__tiles, .cform__grid { grid-template-columns: 1fr; }
  .cform__marks li { font-size: 0; gap: 0; justify-content: center; }
  .cform__marks li[aria-current="step"] { font-size: 0.875rem; gap: 0.5rem; justify-content: flex-start; }
  .cform__marks { grid-template-columns: auto auto auto; justify-content: start; gap: 1rem; }
  .cform__line { text-align: left; }
  .contact-hero__scene.scene { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; }
}

/* ===== skip: the words and the main button at the left, the chat over the owner's porch at the right ===== */
.contact-skip__in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.contact-skip__title { max-width: 11em; margin: 0; font-size: var(--fs-h1); font-weight: var(--fw-display); line-height: 1.04; letter-spacing: -0.03em; color: var(--c-text); }
.contact-skip__line { max-width: 26rem; margin: 1rem 0 1.75rem; font-size: 1.125rem; line-height: 1.55; color: var(--c-text-soft); }
.contact-skip__frame { min-height: 520px; aspect-ratio: 4 / 3.1; }
.contact-skip__frame > img { object-position: 62% 40%; }
.contact-skip__scene.scene { position: absolute; z-index: 2; left: 5%; top: 50%; width: 340px; transform: translateY(-50%); }
.contact-skip__stop { position: absolute; top: 0.9rem; right: 0.9rem; z-index: 3; }
@media (max-width: 900px) {
  .contact-skip__in { grid-template-columns: 1fr; }
  /* the owner framed above, the chat's phone over the photo's lower part, more than half of it on the photo */
  .contact-skip__frame { container-type: inline-size; min-height: 0; aspect-ratio: auto; padding: min(60%, 380px) 0 1.25rem; }
  .contact-skip__frame > img { top: -1px; bottom: auto; height: calc(min(60cqw, 380px) + 260px); object-position: 80% 40%; }
  .contact-skip__frame::before { content: ""; position: absolute; inset: 0 0 auto; z-index: 0; height: calc(min(60cqw, 380px) + 262px); pointer-events: none; background: linear-gradient(180deg, rgba(13, 14, 21, 0) 45%, rgba(13, 14, 21, 0.45) 80%, var(--c-panel) 100%); }
  .contact-skip__scene.scene { position: relative; left: auto; top: auto; transform: none; width: min(340px, 94%); margin: 0 auto; }
  .contact-skip__stop { top: calc(min(60cqw, 380px) - 3.25rem); }
}
