/* ---------- /request/ (SPEC_V3_12 §5): the request form as its own page, in the fitting room's white style.
   Left: "Tell us about you" and a separate "Your message" card, one black button. Right: the "Your estimate" card (sticky on
   desktop; first and collapsed on phones). The receipt's language (hairlines, uppercase block titles, tabular figures) is
   reused for the estimate so it reads as the same estimate the visitor just built. ---------- */
.fit-top { position: sticky; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 16px; height: var(--hdr); padding: 0 var(--g); background: #fff; transition: box-shadow .3s var(--ease); }
.fit-top.scrolled { box-shadow: 0 1px 0 var(--hair); }
.fit-top .back { font-size: 13px; }

.rq { padding: clamp(48px, 8vh, 96px) var(--g) 0; }
.rq-head { max-width: 1320px; margin-bottom: clamp(40px, 7vh, 72px); }
.rq-head .lab { margin-bottom: 22px; }
.rq h1.sec-h { max-width: 14ch; font-size: clamp(44px, 6.6vw, 104px); line-height: .92; text-wrap: balance; }
.rq-head .lead { margin-top: 22px; max-width: 34em; color: var(--ink-2); }

.rq-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 31vw, 440px); gap: clamp(32px, 4.4vw, 72px); align-items: start; max-width: 1400px; }
.rq-form, .rq-sent { grid-column: 1; grid-row: 1; min-width: 0; }
.pk { grid-column: 2; grid-row: 1; }
.rq-form[hidden], .rq-sent[hidden], .pk[hidden] { display: none; }

/* ---------- the two form cards ---------- */
.rq-card { border-top: 1px solid var(--ink); padding-top: 16px; }
.rq-card + .rq-card { margin-top: clamp(48px, 7vh, 72px); }
.rq-ch { font: 500 clamp(24px, 2.2vw, 34px)/1.08 var(--sans); letter-spacing: -.035em; }
.rq-ch label { cursor: pointer; }
.rq-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 24px; margin-top: 28px; }
.fld { display: flex; flex-direction: column; gap: 9px; min-width: 0; border: 0; padding: 0; margin: 0; }
.fld-wide { grid-column: 1 / -1; }
.fld > label, .fld legend { font: 600 15px/1.2 var(--sans); color: var(--ink); padding: 0; }
.fld small, .rq-msg-top small { font-size: 13.5px; font-weight: 500; color: var(--ink-3); margin-left: 6px; }
.rq input:not([type="radio"]), .rq textarea { width: 100%; min-height: 56px; border: 1px solid #c4c4c4; border-radius: 0; background: #fff; padding: 14px 16px; font: 500 18px/1.35 var(--sans); color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease); -webkit-appearance: none; appearance: none; }
.rq input::placeholder, .rq textarea::placeholder { color: #767676; font-weight: 400; }
.rq input:hover, .rq textarea:hover { border-color: #8f8f8f; }
.rq input:not([type="radio"]):focus, .rq textarea:focus { outline: none; border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.rq [aria-invalid="true"] { border-color: var(--err) !important; box-shadow: inset 0 0 0 1px var(--err) !important; }
.ferr { font-size: 14px; font-weight: 500; color: var(--err); }
.ferr[hidden] { display: none; }

/* text / email (v3.13: Call removed): a two-way switch (a native radio group: arrow keys move inside it) */
.reach legend { margin-bottom: 9px; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid #c4c4c4; max-width: 320px; }
.seg label { position: relative; cursor: pointer; }
.seg label + label { border-left: 1px solid #c4c4c4; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 54px; font: 600 16px/1 var(--sans); color: var(--ink-2); transition: background .2s, color .2s; }
.seg label:hover span { background: #f5f5f5; color: var(--ink); }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; position: relative; z-index: 1; }

/* the message: its own card, visually apart from the contact fields */
.rq-msg { background: #f6f6f4; border-top: 0; padding: 22px clamp(18px, 2vw, 28px) 18px; }
.rq-msg-top { display: flex; align-items: baseline; }
.rq-msg textarea { margin-top: 18px; min-height: 160px; resize: vertical; border-color: #d2d2d0; line-height: 1.5; }
.msg-count { margin-top: 8px; text-align: right; font-size: 13px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.msg-count.near { color: var(--ink); }

.rq-send { display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap; margin-top: 36px; }
.rq-send .bbtn { min-width: 260px; justify-content: space-between; }
.rq-send .bbtn[disabled] { opacity: .6; cursor: progress; }
.rq-note { color: var(--ink-2); max-width: 30em; }
.rq-pkgline { flex-basis: 100%; order: -1; font: 600 15px/1.3 var(--sans); font-variant-numeric: tabular-nums; }
.rq-pkgline[hidden] { display: none; }
.rq-note a { font-weight: 600; }
.rq .status:empty { display: none; }

/* ---------- the estimate card ---------- */
.pk { position: sticky; top: calc(var(--hdr) + 16px); border: 1px solid var(--ink); padding: 20px clamp(18px, 1.8vw, 26px) 18px; background: #fff;
  max-height: calc(100svh - var(--hdr) - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }   /* ui-compare: a long estimate scrolls inside the card, never past the screen */
.pk-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pk-top h2 { font: 700 13px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.pk-toggle { display: none; }
.pk-none { margin-top: 26px; font: 500 clamp(26px, 2.2vw, 32px)/1.05 var(--sans); letter-spacing: -.035em; }
.pk-note { margin-top: 10px; color: var(--ink-2); font-weight: 500; }
.pk-note.small { margin-top: 16px; font-weight: 400; }
.pk-build { margin-top: 22px; width: 100%; justify-content: space-between; text-decoration: none; }
/* ui-polish: the card's button is secondary (outlined), so "Send request" stays the page's one black action */
.pk-build { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); min-height: 56px; }
.pk-build .fb-c { background: var(--ink); color: #fff; }
.pk-build:hover, .pk-build:focus-visible { background: var(--ink); color: #fff; }
.pk-build:hover .fb-c, .pk-build:focus-visible .fb-c { background: #fff; color: var(--ink); }
.pk-biz { margin-top: 18px; font: 500 clamp(24px, 2vw, 30px)/1.05 var(--sans); letter-spacing: -.03em; }
.pk-blk { margin-top: 20px; }
.pk-bt { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--ink); padding-bottom: 8px; margin-bottom: 2px; }
.pk-bt h3 { font: 700 12px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.pk-bt small { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.pk-lines li { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; font-size: 15px; line-height: 1.3; border-bottom: 1px solid var(--hair); font-variant-numeric: tabular-nums; }
.pk-lines li > span:last-child { white-space: nowrap; text-align: right; }
.pk-lines em { display: block; font-style: normal; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.pk-tot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0 0; }
.pk-tot > span { font: 700 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .03em; }
.pk-tot b { font: 600 clamp(28px, 2.4vw, 36px)/1 var(--sans); letter-spacing: -.045em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pk-tot b small { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.pk-acts { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; border-top: 1px solid var(--hair); padding-top: 6px; }
.pk-acts .tl { font-size: 14px; min-height: 44px; align-items: center; }
.pk-fine { margin-top: 6px; color: var(--ink-3); }

/* ---------- sent ---------- */
.rq-grid.done { grid-template-columns: minmax(0, 1fr); }
.rq-head[hidden] { display: none; }   /* ui-polish: after sending, the thank-you is the first thing on the page */
.rq-sent { max-width: 760px; border-top: 1px solid var(--ink); padding-top: 18px; outline: none; }
.rq-sent .lab { margin-bottom: 22px; }
.rq-sent-h { font: 500 clamp(32px, 3.8vw, 56px)/1.02 var(--sans); letter-spacing: -.04em; text-wrap: balance; }
.rq-sent .lead { margin-top: 18px; color: var(--ink-2); }
.rq-sent .rq-ch { margin-top: 44px; font-size: clamp(20px, 1.6vw, 24px); }
.rq-dl { display: grid; grid-template-columns: minmax(110px, 180px) minmax(0, 1fr); margin: 14px 0 28px; border-top: 1px solid var(--hair); }
.rq-dl dt, .rq-dl dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 16px; line-height: 1.4; }
.rq-dl dt { font-weight: 600; color: var(--ink-2); }
.rq-dl dd { white-space: pre-line; overflow-wrap: anywhere; }

/* ---------- phones: one column, the estimate first and collapsed (its summary shows the totals) ---------- */
@media (max-width: 900px) {
  .rq-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .pk { grid-column: 1; grid-row: 1; position: static; padding: 0; border: 1px solid var(--ink); max-height: none; overflow: visible; }
  .rq-form, .rq-sent { grid-row: 2; }
  .pk-top { padding: 0; }
  .pk-top h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pk-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; min-height: 60px; padding: 10px 16px; border: 0; background: none; cursor: pointer; text-align: left; }
  .pk-toggle::before { content: 'Your estimate'; font: 700 13px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
  .pk-sum { margin-left: auto; font: 600 16px/1.2 var(--sans); font-variant-numeric: tabular-nums; }
  .pk-chev { width: 10px; height: 10px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .3s var(--ease); flex: none; }
  .pk.open .pk-chev { transform: translateY(2px) rotate(-135deg); }
  .pk-toggle:focus-visible { outline-offset: -3px; }
  .pk-body { display: none; padding: 0 16px 16px; border-top: 1px solid var(--hair); }
  .pk.open .pk-body { display: block; }
  .rq-fields { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .rq-send .bbtn { width: 100%; min-width: 0; }
  .seg { max-width: none; }
  .rq-dl { grid-template-columns: minmax(0, 1fr); }
  .rq-dl dt { border-bottom: 0; padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .pk-chev, .seg span, .rq input, .rq textarea { transition: none; } }
