/* Contact us — frames contact-us-page (11:4) and mobile-contact-us (41:236). Numbers from gen.js / fig-outline. */

/* ── 03 hero ──────────────────────────────────────────────────────────── */
.chero { display: flex; align-items: center; min-height: 360px; padding: 20px var(--container-pad); background: var(--color-purple); }   /* frame is FIXED 360: the 320px column is centred, the 64px padding is overrun */
.chero__content { display: flex; flex-direction: column; gap: 24px; width: 800px; max-width: 100%; }
.chero__text { display: flex; flex-direction: column; gap: 16px; }
.chero__eyebrow { font-weight: 800; font-size: 14px; line-height: 18px; text-transform: uppercase; color: var(--color-brand); }
.chero__title { font-family: var(--font-display); font-size: 56px; line-height: 60px; text-transform: uppercase; color: var(--color-text); }
.chero__lead { font-size: 16px; line-height: 24px; color: var(--color-card-3); }
.chero__actions { display: flex; gap: 16px; align-self: flex-start; }
.chero__link { font-weight: 800; font-size: 14px; line-height: 18px; text-transform: uppercase; color: var(--color-brand); text-decoration: none; }
.chero__link:hover { text-decoration: underline; }

/* ── 04 support routing strip ─────────────────────────────────────────── */
.routing { display: flex; align-items: flex-start; min-height: 90px; padding: 0 var(--container-pad); background: var(--color-surface); box-shadow: inset 0 -1px 0 var(--color-border); }
.routing__grid { display: flex; align-items: flex-start; flex: 1; min-height: 90px; }
.routing__cell {
  display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; min-height: 69px; padding: 20px;
  text-decoration: none; transition: background-color var(--dur-fast) var(--ease);
}
.routing__cell:not(:last-child) { box-shadow: inset -1px 0 0 var(--color-border); }
.routing__cell:hover { background: var(--color-surface-2); }
.routing__cell:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.routing__num { font-family: var(--font-display); font-size: 18px; line-height: 20px; color: var(--color-purple-light); }
.routing__text { display: flex; flex-direction: column; gap: 2px; }
.routing__title { font-family: var(--font-display); font-size: 12px; line-height: 13px; text-transform: uppercase; color: var(--color-text); }
.routing__desc { font-size: 11px; line-height: 14px; color: var(--color-muted); }

/* ── 05 workspace: form + directory ───────────────────────────────────── */
.cws { display: flex; align-items: flex-start; gap: 48px; padding: 64px var(--container-pad); background: var(--color-bg); }
.cform-col { display: flex; flex-direction: column; gap: 40px; flex: 1; min-width: 0; }
.cform-head { display: flex; flex-direction: column; gap: 8px; }
.cform-head__eyebrow { font-weight: 800; font-size: 11px; line-height: 14px; text-transform: uppercase; color: var(--color-brand); }
.cform-head__title { font-family: var(--font-display); font-size: 32px; line-height: 36px; text-transform: uppercase; color: var(--color-text); }
.cform-head__lead { font-size: 16px; line-height: 24px; color: var(--color-muted); }
.cform-head__req { font-size: 12px; line-height: 16px; color: var(--color-red); }

.cform { display: flex; flex-direction: column; gap: 48px; }
.cgroup { display: flex; gap: 24px; min-width: 0; margin: 0; padding: 0; border: 0; }
.cgroup__num { flex: 0 0 48px; align-self: flex-start; width: 48px; font-family: var(--font-display); font-size: 24px; line-height: 26px; color: var(--color-purple-light); }
.cgroup__content { display: flex; flex-direction: column; gap: 24px; flex: 1; min-width: 0; padding-bottom: 32px; }
.cgroup--last .cgroup__content { padding-bottom: 0; }
.cgroup__title { font-family: var(--font-display); font-size: 14px; line-height: 15px; text-transform: uppercase; color: var(--color-text); }
.cgroup__row { display: flex; gap: 16px; }
.cgroup__row > .cfield { flex: 1; min-width: 0; }

.cform .cfield { display: flex; flex-direction: column; gap: 8px; }
.cfield__label { display: flex; align-items: center; gap: 4px; min-height: 16px; font-weight: 800; font-size: 12px; line-height: 16px; text-transform: uppercase; color: #f2f5f7; }   /* one-off near-white label from the frame */
.cfield__req { color: var(--color-red); }
/* .cfield__input repeated: components.css .field input:not(…) weighs (0,4,1) and would keep its 15px/44px */
.cform-col .cform .cfield .cfield__input.cfield__input {
  width: 100%; min-height: 48px; padding: 14px 16px;
  border: 1px solid var(--color-border-light); border-radius: var(--radius-sm); background: var(--color-card); color: var(--color-ink);
  font-size: 14px; line-height: 18px;
}
.cform-col .cform .cfield .cfield__input.cfield__input::placeholder { color: var(--color-muted-2); }
.cform-col .cform .cfield select.cfield__input.cfield__input { padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; }
.cform-col .cform .cfield select.cfield__input.cfield__input:invalid, .cform .cfield select.cfield__input option[value=""] { color: var(--color-ink); }
.cform-col .cform .cfield .cfield__textarea.cfield__textarea { min-height: 160px; padding: 16px; resize: vertical; }
.cform-col .cform .cfield .cfield__input.cfield__input:focus { border-color: var(--color-brand); box-shadow: var(--focus-ring); outline: none; }
.cform-col .cform .cfield.has-error .cfield__input.cfield__input { border-color: var(--color-red); }
.cfield__hint { font-size: 11px; line-height: 14px; color: var(--color-muted-2); }
.cform__note { min-height: 40px; padding: 12px; border-radius: var(--radius-sm); background: var(--color-surface); font-size: 12px; line-height: 16px; color: var(--color-muted); }

.upload__label { color: var(--color-text); }
.upload__box {
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 13px 16px; border-radius: var(--radius-sm);   /* frame is FIXED 60: its 16px padding is overrun by 3 */
  background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-border); cursor: pointer;
  transition: box-shadow var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.upload__box:hover { box-shadow: inset 0 0 0 1px var(--color-border-2); }
.upload__box:focus-within { box-shadow: inset 0 0 0 1px var(--color-brand), var(--focus-ring); }
.upload.has-file .upload__box { box-shadow: inset 0 0 0 1px var(--color-brand); }
.upload__icon { width: 20px; height: 20px; color: var(--color-brand); }
.upload__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.upload__title { font-weight: 700; font-size: 14px; line-height: 18px; text-transform: uppercase; color: var(--color-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload__desc { font-size: 11px; line-height: 14px; color: var(--color-muted); }
.cform__submit { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-height: 98px; padding: 16px 0 0; }   /* frame is FIXED 98: the bottom padding is clipped */
.cform__check { font-size: 12px; line-height: 16px; color: var(--color-muted); }
.cform__btn { width: 200px; min-height: 50px; padding: 16px 32px; border-radius: var(--radius-sm); font-size: 14px; line-height: 18px; }

.cdone { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: var(--radius-sm); background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-green); }
.cdone__dot { flex: none; width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: var(--color-green); }
.cdone__copy { display: flex; flex-direction: column; gap: 4px; }
.cdone__title { font-weight: 700; font-size: 14px; line-height: 18px; text-transform: uppercase; color: var(--color-text); }
.cdone__text { font-size: 13px; line-height: 18px; color: var(--color-muted); }
.cdone__link { align-self: flex-start; font-weight: 700; font-size: 13px; line-height: 17px; text-transform: uppercase; color: var(--color-brand); text-decoration: none; }
.cdone__link:hover { text-decoration: underline; }

.dirp { display: flex; flex-direction: column; gap: 24px; flex: 0 0 380px; width: 380px; padding: 32px; border-radius: 6px; background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-border); }
.dirp__title { font-family: var(--font-display); font-size: 16px; line-height: 17px; text-transform: uppercase; color: var(--color-text); }
.dirp__block { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.dirp__eyebrow { font-family: var(--font-display); font-size: 11px; line-height: 12px; text-transform: uppercase; color: var(--color-brand); }
.dirp__name { font-family: var(--font-display); font-size: 16px; line-height: 17px; text-transform: uppercase; color: var(--color-text); }
.dirp__text { align-self: stretch; font-size: 13px; line-height: 18px; color: var(--color-muted); }
.dirp__label { font-weight: 700; font-size: 12px; line-height: 16px; text-transform: uppercase; color: var(--color-text); }
.dirp__link { font-weight: 700; font-size: 13px; line-height: 17px; text-transform: uppercase; color: var(--color-brand); text-decoration: none; }
.dirp__link[href^="mailto"] { text-transform: none; }
.dirp__link:hover, .dirp__phone:hover { text-decoration: underline; }
.dirp__line { align-self: stretch; height: 1px; margin: 0 0 -1px; border: 0; background: var(--color-border); }   /* Figma LINE: 1px paint, 0 in flow */
.dirp__callout { display: flex; flex-direction: column; align-items: flex-start; align-self: stretch; gap: 4px; }
.dirp__phone { font-family: var(--font-narrow); font-weight: 700; font-size: 24px; line-height: 32px; color: var(--color-red); text-decoration: none; }

/* ── 06 support-distinction transition ────────────────────────────────── */
.ctrans { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 56px var(--container-pad); background: var(--color-purple); text-align: center; }
.ctrans__eyebrow { font-weight: 800; font-size: 11px; line-height: 14px; text-transform: uppercase; color: var(--color-brand); }
.ctrans__title { align-self: stretch; font-family: var(--font-display); font-size: 24px; line-height: 28px; text-transform: uppercase; color: var(--color-text); }
.ctrans__text { max-width: 800px; font-size: 14px; line-height: 20px; color: var(--color-card-3); }

/* ── mobile (390 frame) ───────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .chero { display: block; min-height: 0; padding: 32px var(--container-pad); }
  .chero__content { gap: 16px; width: auto; }
  .chero__text, .chero__actions { display: contents; }
  .chero__eyebrow { font-size: 12px; line-height: 16px; }
  .chero__title { font-size: 36px; line-height: 38px; }
  .chero__lead { font-size: 14px; line-height: 20px; }
  .chero__link { align-self: flex-start; }

  .routing { display: block; min-height: 0; padding: 0; background: var(--color-bg); box-shadow: none; }
  .routing__grid { display: block; }
  .routing__cell { gap: 12px; min-height: 62px; padding: 16px var(--container-pad); box-shadow: inset 0 -1px 0 var(--color-border); }
  .routing__cell:not(:last-child) { box-shadow: inset 0 -1px 0 var(--color-border); }
  .routing__text { flex: 1; }
  .routing__title { font-size: 13px; line-height: 14px; }

  .cws { display: block; padding: 0; }
  .cform-col { gap: 28px; padding: 32px var(--container-pad); background: var(--color-card-2); }
  .cform-head { gap: 6px; }
  .cform-head__eyebrow { color: var(--color-muted-2); }
  .cform-head__title { font-size: 28px; line-height: 32px; color: var(--color-ink); }
  .cform-head__lead { font-size: 14px; line-height: 20px; color: var(--color-muted-2); }
  .cform-head__req { font-weight: 700; }

  .cform { gap: 28px; }
  .cgroup { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; row-gap: 16px; }
  .cgroup__num { flex: none; width: auto; grid-column: 1; grid-row: 1; }
  .cgroup__content { display: contents; }
  .cgroup__title { grid-column: 2; grid-row: 1; color: var(--color-ink); }
  .cgroup__content > :not(.cgroup__title) { grid-column: 1 / -1; }
  .cgroup__row { flex-direction: column; }
  .cform .cfield { gap: 6px; }
  .cfield__label { min-height: 14px; font-size: 11px; line-height: 14px; color: var(--color-muted-2); }
  .cform-col .cform .cfield .cfield__input.cfield__input { min-height: 52px; }
  .cform .upload { gap: 8px; }
  .cform-col .cform .cfield .cfield__textarea.cfield__textarea { min-height: 180px; }
  .cform__note { min-height: 58px; background: #fff9e6; font-size: 13px; line-height: 17px; color: #b27b00; }   /* amber note from the mobile frame */
  .upload__label { font-size: 11px; line-height: 14px; color: var(--color-ink); }
  .upload__box { min-height: 64px; padding: 12px; background: #f1f3f5; box-shadow: inset 0 0 0 1px var(--color-border-light); }   /* one-off light grey from the mobile frame */
  .upload__icon { color: #b27b00; }
  .upload__title { font-size: 13px; line-height: 17px; color: var(--color-ink); }
  .upload__desc { color: var(--color-muted-2); }
  .cform__submit { align-items: stretch; gap: 12px; min-height: 0; margin-top: 12px; padding: 0; }   /* the mobile frame draws the submit row outside group 03, 28 below it */
  .cform__check { font-size: 13px; line-height: 17px; color: var(--color-muted-2); }
  .cform__btn { width: 100%; min-height: 56px; padding: 16px; }
  .cdone { background: var(--color-card); }
  .cdone__title { color: var(--color-ink); }
  .cdone__text { color: var(--color-muted-2); }
  .cdone__link { color: var(--color-purple-btn); }

  .dirp { flex: none; width: auto; padding: 32px var(--container-pad); border-radius: 0; box-shadow: none; background: var(--color-bg); }
  .dirp__label { font-family: var(--font-display); font-weight: 400; font-size: 16px; line-height: 17px; }   /* the mobile frame sets this label in the display face */
  .dirp__label--callout { font-family: var(--font-body); font-weight: 700; font-size: 11px; line-height: 14px; }
  .dirp__phone { font-family: var(--font-body); font-size: 24px; line-height: 31px; }

  .ctrans { padding: 32px var(--container-pad); }
  .ctrans__text { font-size: 13px; line-height: 18px; }
}
