/* The Contact page's own CSS: the header's contact cards beside the framed photo, the two-step form in a white box
   like the picker's with the quicker way beside it, the skip part with the estimate. Tokens of design\system.css only. */

/* the header: the words and four contact cards on the left, the hands typing a reply on the right */
.hero--contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero--contact .hero__text { max-width: 640px; }
.contact__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.contact__media > .stop { top: 16px; right: 16px; bottom: auto; z-index: 4; }
.hero__chip { position: absolute; right: 16px; bottom: 16px; z-index: 3; width: min(290px, calc(100% - 32px)); }
.hero__chipscene { position: relative; width: 100%; }
.contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.contact { display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px 18px; box-sizing: border-box; border-radius: var(--radius-m); background: var(--c-paper); color: var(--c-ink); text-decoration: none; box-shadow: var(--shadow-m); }
a.contact:hover, a.contact:focus-visible { box-shadow: var(--shadow-l), 0 0 0 2px var(--c-brand); }
.contact__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--c-paper-teal); color: var(--c-brand-text); }
.contact__icon svg { width: 22px; height: 22px; }
.contact__label { display: block; font: var(--fw-bold) var(--fs-micro)/1.3 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--c-brand-text); }
.contact__value { display: block; margin-top: 2px; font: var(--fw-xbold) 1rem/1.3 var(--font-ui); color: var(--c-ink); overflow-wrap: anywhere; }
@media (max-width: 899px) {
  .hero--contact { grid-template-columns: minmax(0, 1fr); }
  .hero__chip { right: 10px; bottom: 10px; width: min(280px, calc(100% - 20px)); }
  .contact__media > .stop { top: 10px; right: 10px; }
}
@media (max-width: 559px) { .contacts { grid-template-columns: minmax(0, 1fr); } }

/* the form: a white box, its two steps marked, the quicker way beside it */
.contactform__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: clamp(20px, 3vw, 36px); align-items: start; }
.form-box { padding: clamp(22px, 3vw, 34px); border-radius: 20px; background: var(--c-paper); box-shadow: var(--shadow-l); color: var(--c-text); }
.form-steps { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 22px; padding: 0 0 16px; border-bottom: 1px solid var(--c-line-soft); list-style: none; font: var(--fw-bold) 15px/1.3 var(--font-ui); color: var(--c-ink-soft); }
.form-steps li { display: inline-flex; align-items: center; gap: 9px; }
.form-steps span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--c-line); font-size: 14px; }
.form-steps li[aria-current] { color: var(--c-ink); }
.form-steps li[aria-current] span { border-color: var(--c-brand); background: var(--c-brand); color: var(--c-on-brand); }
.form-steps li[data-kit-past] span { border-color: var(--c-brand); color: var(--c-brand-text); }
.form-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.form-step__q { padding: 0; margin-bottom: 14px; font: var(--fw-black) 1.25rem/1.3 var(--font-display); color: var(--c-ink); }
.topicchips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.chip--icon span { display: grid; justify-items: center; align-content: center; gap: 8px; height: auto; min-height: 104px; padding: 14px 8px; font-size: 15px; line-height: 1.2; white-space: normal; text-align: center; }
.chip--icon svg { width: 28px; height: 28px; color: var(--c-brand-text); }
.chip--icon input:checked + span svg { color: var(--c-on-ink); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .field:last-child { grid-column: 1 / -1; }
.field__label { display: block; margin-bottom: 6px; font: var(--fw-bold) 15px/1.3 var(--font-ui); color: var(--c-ink); }
.field__opt { font-weight: var(--fw-medium); color: var(--c-ink-soft); }
.field__input { width: 100%; min-height: 50px; padding: 12px 14px; box-sizing: border-box; border: 1.5px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-paper); font: var(--fw-medium) 1rem/1.4 var(--font-ui); color: var(--c-ink); }
.field__input--area { min-height: 120px; resize: vertical; }
.field__input:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-brand) 22%, transparent); }
.field[data-kit-invalid] .field__input { border-color: var(--c-loss); }
.field__error { margin-top: 6px; font: var(--fw-semi) 14px/1.35 var(--font-ui); color: var(--c-loss); }
.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.form-next, .form-send { margin-left: auto; }
.quick { display: grid; gap: 12px; justify-items: start; padding: 26px; border-radius: 20px; background: var(--c-ink); color: var(--c-on-ink); box-shadow: var(--shadow-m); }
.quick__title { font: var(--fw-black) 1.375rem/1.2 var(--font-display); color: var(--c-on-ink); }
.quick__line { color: var(--c-on-ink-soft); }
.quick__phone { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; font: var(--fw-xbold) 1.0625rem/1.3 var(--font-ui); color: var(--c-on-ink); text-decoration: none; }
.quick__phone svg { width: 20px; height: 20px; color: var(--c-brand-on-ink); }
.quick__phone:hover span { text-decoration: underline; }
@media (max-width: 899px) {
  .contactform__grid { grid-template-columns: minmax(0, 1fr); }
  .topicchips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .topicchips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topicchips .chip:last-child { grid-column: 1 / -1; }
  .chip--icon span { min-height: 84px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-send { flex: 1 1 auto; justify-content: center; }
}

/* the skip part: the estimate in glass over the kitchen table's calm left, the owner smiling at his laptop on the right */
.skip__media { aspect-ratio: auto; height: clamp(560px, 48vw, 620px); --pos: 50%; }
.skip__media > .skip__scene { left: 0; right: auto; width: 54%; display: grid; align-content: center; padding: 28px; box-sizing: border-box; }
.skip__media > .stop { top: 14px; right: 14px; bottom: auto; }
.skip__cta { display: flex; justify-content: center; margin-top: 28px; }
@media (max-width: 759px) {
  .skip__media { height: 840px; --pos-m: 72%; }
  .skip__media > .skip__scene { top: 400px; bottom: auto; width: 100%; height: 440px; padding: 12px 16px 24px; }
  .skip__media > .stop { top: 412px; }
}
