/* The Contact page: plan.md "contact". A person reads every message: the bakery's phone with the team's answer beside
   the words and both numbers; the kit form in two steps with the details beside it; the quicker chat over a stylist's
   good news. */

/* ---------- shared: a number or the email, as a pill to tap ---------- */
.ct-phones { display: grid; gap: 10px; justify-items: start; }
html[data-country="US"] .ct-phone[data-tel-country="US"] { order: -1; }
.ct-phone, .ct-mail {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 22px 8px 8px; border-radius: 999px;
  color: var(--c-on-ink); font: 600 var(--fs-body)/1.2 var(--font-ui); text-decoration: none; transition: background-color var(--dur-fast);
}
.ct-phone { border: 1px solid var(--c-hair); background: var(--c-raised); }
.ct-phone:hover { background: var(--c-raised-hi); }
.ct-mail:hover { text-decoration: underline; text-underline-offset: 4px; }
.ct-phone__ico { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; color: var(--c-on-brand); background: var(--c-brand); }
.ct-mail .ct-phone__ico, .ct-card__where .ct-phone__ico { color: var(--c-brand-on-ink); background: color-mix(in srgb, var(--c-brand) 16%, transparent); box-shadow: 0 0 0 1px var(--c-hair); }
.ct-phone__cc { min-width: 1.7em; font: 600 var(--fs-small)/1 var(--font-ui); color: var(--c-accent-on-ink); }

/* ---------- hero: the phone on the bakery's counter, tall, beside the words ---------- */
.ct-hero { padding-block: clamp(2rem, 1rem + 3vw, 4rem) clamp(3.5rem, 2rem + 4vw, 6rem); }
.ct-hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(var(--space-5), 5vw, 5.5rem); align-items: center; }
.ct-hero__frame {
  position: relative; margin: 0; aspect-ratio: 4 / 5; max-height: 680px; border-radius: var(--radius-l); overflow: hidden; background: var(--c-raised);
  box-shadow: 0 0 0 1px var(--c-hair), var(--shadow-l);
}
.ct-hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 21% 50%; }
.ct-hero__words { display: grid; gap: var(--space-3); justify-items: start; }
.ct-hero__title { max-width: 14ch; margin: 0; font-size: var(--fs-h1); }
.ct-hero__line { margin: 0 0 var(--space-3); color: var(--c-on-ink-soft); }
.ct-hero__write { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: var(--space-2); font: 600 var(--fs-ui)/1.2 var(--font-ui); color: var(--c-brand-on-ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- form: two steps, the choices shown, the details beside it ---------- */
.ct-form { padding-block: var(--section-y); border-top: 1px solid var(--c-hair-soft); background: linear-gradient(180deg, color-mix(in srgb, var(--c-raised) 34%, var(--c-ground)), var(--c-ground) 70%); }
.ct-form__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: clamp(var(--space-5), 5vw, 5rem); align-items: start; }
.ct-form__head { display: grid; gap: var(--space-3); margin-bottom: var(--space-5); }
.ct-form__head .section-head__title, .ct-form__head .section-head__line { margin: 0; }
.ct-f { position: relative; padding: clamp(1.25rem, 0.9rem + 1.6vw, 2.25rem); border-radius: var(--radius-l); background: var(--c-raised); box-shadow: 0 0 0 1px var(--c-hair), var(--shadow-m); }
.ct-f__marks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 var(--space-4); padding: 0; list-style: none; counter-reset: ct-step; }
.ct-f__marks li { counter-increment: ct-step; display: inline-flex; align-items: center; gap: 10px; font: 600 var(--fs-small)/1 var(--font-ui); color: var(--c-on-ink-soft); }
.ct-f__marks li::before { content: counter(ct-step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--c-hair); font: 600 var(--fs-small)/1 var(--font-ui); }
.ct-f__marks li[aria-current="step"] { color: var(--c-on-ink); }
.ct-f__marks li[aria-current="step"]::before, .ct-f__marks li[data-kit-past]::before { color: var(--c-on-brand); background: var(--c-brand); border-color: var(--c-brand); }
.ct-f__step { min-width: 0; margin: 0; padding: 0; border: 0; }
.ct-f__legend { margin: 0 0 var(--space-4); padding: 0; font: 600 var(--fs-h3)/1.3 var(--font-display); letter-spacing: -0.01em; color: var(--c-on-ink); }
.ct-f__choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ct-choice {
  position: relative; display: grid; justify-items: center; align-content: start; gap: 10px; padding: 20px 12px 18px; border-radius: var(--radius-m);
  border: 1px solid var(--c-hair-soft); background: var(--c-ground); color: var(--c-on-ink); text-align: center; cursor: pointer;
  transition: border-color var(--dur-fast), background-color var(--dur-fast), box-shadow var(--dur-fast);
}
.ct-choice:hover { border-color: var(--c-hair); }
.ct-choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ct-choice:has(input:focus-visible) { outline: 3px solid var(--c-brand); outline-offset: 2px; }
.ct-choice__ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: var(--c-brand-on-ink); background: color-mix(in srgb, var(--c-brand) 16%, transparent); transition: background-color var(--dur-fast), color var(--dur-fast); }
.ct-choice__t { font: 600 var(--fs-ui)/1.25 var(--font-ui); }
.ct-choice[data-kit-on] { border-color: var(--c-brand); background: color-mix(in srgb, var(--c-brand) 12%, var(--c-ground)); box-shadow: 0 0 0 1px var(--c-brand), 0 0 18px var(--c-glow); }
.ct-choice[data-kit-on] .ct-choice__ico { color: var(--c-on-brand); background: var(--c-brand); }
.ct-f__field { display: grid; gap: 6px; margin-top: var(--space-3); }
.ct-f__step > .ct-f__field:first-of-type { margin-top: 0; }
.ct-f__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-4); }
.ct-f__grid > .ct-f__field:nth-child(-n+2) { margin-top: 0; }
.ct-f__label { font: 600 var(--fs-small)/1.3 var(--font-ui); color: var(--c-on-ink); }
.ct-f__label span { font-weight: 400; color: var(--c-on-ink-soft); }
.ct-f__input { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--radius-s); border: 1px solid var(--c-hair); background: var(--c-ground); color: var(--c-on-ink); font: 400 var(--fs-ui)/1.4 var(--font-ui); }
.ct-f__input:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 1px; }
.ct-f__input[aria-invalid="true"] { border-color: var(--c-paper); box-shadow: 0 0 0 1px var(--c-paper); }
.ct-f__area { min-height: 120px; resize: vertical; }
/* an error says what to do, with a sign beside it (not by its color alone) */
.ct-f__error { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; font: 600 var(--fs-small)/1.35 var(--font-ui); color: var(--c-accent-on-ink); }
.ct-f__error::before { content: "!"; display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; font: 700 var(--fs-small)/1 var(--font-ui); color: var(--c-on-brand); background: var(--c-accent); }
.ct-f__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-4); }
.ct-f__next { margin-left: auto; }
.ct-f__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--c-on-ink-soft); font: 600 var(--fs-ui)/1 var(--font-ui); cursor: pointer; }
.ct-f__back:hover { color: var(--c-on-ink); background: var(--c-raised-hi); }
.ct-f__back:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 2px; }
.ct-f[data-kit-sending] button[type="submit"] { opacity: 0.7; }
.ct-card { position: sticky; top: 124px; display: grid; gap: var(--space-3); justify-items: start; padding: var(--space-4); border-radius: var(--radius-l); background: var(--c-raised); box-shadow: 0 0 0 1px var(--c-hair-soft); }
.ct-card__title { margin: 0 0 var(--space-1); font-size: var(--fs-h3); }
.ct-card .ct-phone { background: var(--c-ground); }
.ct-card .ct-phone, .ct-card .ct-mail { font-size: var(--fs-ui); }
.ct-card__where { display: flex; align-items: center; gap: 12px; margin: 0; padding-left: 8px; font: 600 var(--fs-ui)/1.3 var(--font-ui); color: var(--c-on-ink-soft); }

/* ---------- skip: the chat in a phone in glass over the plain wall beside the stylist ---------- */
.ct-skip { padding-block: var(--section-y); border-top: 1px solid var(--c-hair-soft); }
.ct-skip__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(var(--space-5), 5vw, 5rem); align-items: center; }
.ct-skip__words { display: grid; gap: var(--space-3); justify-items: start; }
.ct-skip__words .section-head__title, .ct-skip__words .section-head__line { margin: 0; }
.ct-skip__act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin-top: var(--space-2); }
.ct-skip__act .btn-line { margin: 0; }
.ct-skip__frame {
  position: relative; margin: 0; aspect-ratio: 4 / 3; min-height: 480px; border-radius: var(--radius-l); overflow: hidden; background: var(--c-raised);
  box-shadow: 0 0 0 1px var(--c-hair), var(--shadow-l);
}
.ct-skip__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 40%; }
/* over 300 px wide the chat inside the phone is 330 px tall: room for its whole story */
.ct-skip__frame .ct-skip__scene { position: absolute; z-index: 3; right: 5%; top: 50%; width: 320px; transform: translateY(-50%); }
.ct-skip__stop { top: 14px; left: 14px; }

/* ---------- under 900 px: one column ---------- */
@media (max-width: 900px) {
  .ct-form__grid, .ct-skip__grid { grid-template-columns: minmax(0, 1fr); }
  .ct-card { position: static; }
}

/* ---------- the phone ---------- */
@media (max-width: 760px) {
  /* the words and the numbers first, the photo under them */
  .ct-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .ct-hero__words { order: -1; }
  .ct-hero__frame { aspect-ratio: 4 / 4.4; }
  .ct-f__choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-f__grid { grid-template-columns: minmax(0, 1fr); }
  .ct-f__grid > .ct-f__field:nth-child(2) { margin-top: var(--space-3); }
  /* the stylist drawn taller, her face in the clear band above the chat, fading into the ground behind most of it */
  /* her face clear above the chat (her chin at 59% of the photo's height), the chat still more than half on the photo */
  .ct-skip__frame { aspect-ratio: auto; min-height: 0; height: 794px; background: var(--c-ground); }
  .ct-skip__photo { inset: 0 0 auto; height: 580px; object-position: 47% 26%; -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 200px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 200px), transparent); }
  .ct-skip__frame .ct-skip__scene { left: 50%; right: auto; top: auto; bottom: 12px; width: min(330px, calc(100% - 24px)); transform: translateX(-50%); }
  /* the stop just above the chat (428 px tall here), so the two are in one view */
  .ct-skip__stop { top: auto; left: auto; right: 16px; bottom: calc(12px + 430px + 10px); }
}
