/* Client Updates: multi-step request form. Builds on site.css tokens. */

.cu-hero { padding: calc(var(--nav-h) + clamp(56px, 10vh, 120px)) 0 clamp(40px, 6vh, 72px); position: relative; overflow: hidden; }
.cu-hero::before { content: ""; position: absolute; width: 80vw; height: 80vw; right: -30vw; top: -40vw; background: radial-gradient(closest-side, rgba(123, 92, 255, .25), transparent); pointer-events: none; }
.cu-title { max-width: 16ch; font-size: clamp(44px, 7vw, 112px); }
.cu-intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 28px 48px; margin-top: clamp(28px, 4vh, 48px); }
.cu-how { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--ink-2); }
.cu-how b { color: var(--signal-text); font-weight: 500; margin-right: 6px; }

.cu-app { padding-bottom: clamp(80px, 12vh, 140px); }
.cu-steps { position: sticky; top: var(--nav-h); z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 16px 0 14px; margin-bottom: 28px; }
.cu-steps__bar { height: 2px; background: var(--line); margin-bottom: 12px; }
.cu-steps__bar span { display: block; height: 100%; background: var(--signal); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .6s var(--ease); }
.cu-steps__list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; color: var(--mute); font-size: 11px; }
.cu-steps__list li { transition: color .3s; }
.cu-steps__list li.is-on { color: var(--ink); }
.cu-steps__list li.is-now { color: var(--signal-text); }

.cu-form { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: clamp(22px, 4vw, 56px); position: relative; }
.cu-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cu-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.cu-step[hidden] { display: none; }
.cu-step:not([hidden]) { animation: stepIn .55s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } }
.cu-step__head { display: grid; gap: 10px; padding: 0; margin-bottom: 10px; }
.cu-step__head .mono { color: var(--signal-text); }
.cu-step__title { font-size: clamp(32px, 4vw, 56px); font-weight: 620; letter-spacing: -.04em; line-height: 1; outline: none; }
.cu-step__lede { color: var(--ink-2); max-width: 56ch; margin-bottom: 28px; }

.cu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-bottom: 22px; }
.cu-grid .f--wide { grid-column: 1 / -1; }
.f { display: grid; gap: 8px; min-width: 0; }
.f__l { font-size: 14px; font-weight: 560; color: var(--ink); }
.f__l i { color: var(--signal-text); font-style: normal; }
.f__h { font-size: 13px; color: var(--mute); margin-top: -4px; }
.f input, .f select, .f textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 6px;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line);
  font: inherit; font-size: 16px; transition: border-color .25s, box-shadow .25s;
}
.f textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.f select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.f input::placeholder, .f textarea::placeholder { color: color-mix(in srgb, var(--mute) 70%, transparent); }
.f input:hover, .f select:hover, .f textarea:hover { border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 25%, transparent); }
.f .is-bad, .f.is-bad input { border-color: #FF5A5A; }
.f--choice { margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); transition: background-color .25s, border-color .25s, color .25s; }
.chip input:checked + span { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 3px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--signal); flex: none; }
.cu-deadline { margin-top: 10px; }

/* update cards */
.items { display: grid; gap: 18px; margin-bottom: 22px; }
.item { border: 1px solid var(--line); border-radius: 8px; background: var(--bg); padding: clamp(18px, 2.4vw, 28px); animation: stepIn .5s var(--ease) both; }
.item__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.item__n { font-size: 22px; font-weight: 620; letter-spacing: -.02em; }
.item__n span { color: var(--signal-text); font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; margin-right: 10px; font-weight: 400; }
.item__tools { display: flex; gap: 6px; }
.item__tools .iconbtn { width: 38px; height: 38px; font-size: 16px; }
.item__tools .iconbtn:disabled { opacity: .3; }
.item .cu-grid { margin-bottom: 0; }
.item__more { grid-column: 1 / -1; border-top: 1px dashed var(--line); padding-top: 16px; margin-top: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.item__more[hidden] { display: none; }
.item__more-t { grid-column: 1 / -1; color: var(--signal-text); }
.cu-add { width: 100%; border-style: dashed; }

/* uploads */
.drop { display: grid; justify-items: center; gap: 8px; text-align: center; padding: clamp(32px, 6vw, 64px) 20px; border: 1.5px dashed color-mix(in srgb, var(--ink) 25%, transparent); border-radius: 10px; background: var(--bg); cursor: pointer; transition: border-color .3s, background-color .3s; position: relative; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop:hover, .drop.is-over { border-color: var(--signal); background: color-mix(in srgb, var(--signal) 6%, var(--bg)); }
.drop:focus-within { outline: 2px solid var(--signal); outline-offset: 3px; }
.drop__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--signal); color: var(--signal-ink); font-size: 24px; transition: transform .4s var(--ease); }
.drop:hover .drop__icon, .drop.is-over .drop__icon { transform: translateY(-4px); }
.drop__t { font-size: 20px; font-weight: 560; }
.drop__s { color: var(--mute); font-size: 11px; }
.files { display: grid; gap: 10px; margin-top: 18px; }
.file { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.file__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.file__meta { color: var(--mute); font-size: 12px; }
.file select { min-height: 40px; padding: 6px 30px 6px 10px; border-radius: 4px; background: var(--card); color: var(--ink); border: 1px solid var(--line); font: inherit; font-size: 13px; }
.file__bar { grid-column: 1 / -1; height: 2px; background: var(--line); overflow: hidden; }
.file__bar span { display: block; height: 100%; width: 40%; background: var(--signal); animation: load 1s linear infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* review */
.review { display: grid; gap: 14px; margin-bottom: 28px; }
.rv { border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; background: var(--bg); }
.rv__h { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 10px; }
.rv__h b { font-size: 18px; letter-spacing: -.01em; }
.rv__edit { background: none; border: 0; color: var(--signal-text); font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 8px 0; min-height: 36px; }
.rv dl { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 6px 16px; font-size: 15px; }
.rv dt { color: var(--mute); }
.rv dd { overflow-wrap: anywhere; white-space: pre-wrap; }
.approve { border-top: 1px solid var(--line); padding-top: 24px; display: grid; gap: 16px; }
.checks { display: grid; gap: 2px; }

/* nav row */
.cu-error { color: #FF7A7A; min-height: 1.5em; margin-top: 18px; font-size: 15px; }
.cu-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.cu-save { color: var(--mute); font-size: 11px; text-align: center; }
.cu-nav [data-back][disabled] { visibility: hidden; }
.cu-nav [data-next][aria-busy="true"] { opacity: .7; pointer-events: none; }

/* done */
.cu-done { text-align: center; display: grid; justify-items: center; gap: 16px; padding: clamp(20px, 4vw, 40px) 0; }
.cu-done .mono { color: var(--signal-text); }
.cu-done__mark svg { width: 96px; height: 96px; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cu-done__mark circle { stroke: var(--signal); stroke-dasharray: 230; stroke-dashoffset: 230; animation: dash .9s var(--ease-io) forwards; }
.cu-done__mark path { stroke: var(--ink); stroke-dasharray: 60; stroke-dashoffset: 60; animation: dash .6s var(--ease-io) .6s forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.cu-done__title { font-size: clamp(40px, 6vw, 88px); font-weight: 620; letter-spacing: -.045em; line-height: .95; outline: none; }
.cu-done__num { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.cu-done__num b { font-family: var(--f-mono); font-size: clamp(22px, 3vw, 32px); font-weight: 500; letter-spacing: .04em; }
.cu-done .lede { max-width: 52ch; }
.cu-done__ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }

/* status flow */
.cu-status { padding: clamp(40px, 8vh, 100px) 0 clamp(90px, 14vh, 160px); }
.cu-status .display { margin-bottom: clamp(32px, 5vh, 56px); }
.flow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; counter-reset: s; }
.flow li { position: relative; padding: 26px 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.flow li::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--signal); }
.flow li:last-child::before { background: var(--signal); }
.flow b { font-size: 18px; letter-spacing: -.01em; }
.flow span { color: var(--mute); font-size: 14px; }

@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow li { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 22px 24px; }
  .flow li::before { top: 4px; left: -6px; }
}
@media (max-width: 700px) {
  .cu-grid, .item__more { grid-template-columns: 1fr; }
  .cu-steps__list { grid-template-columns: repeat(6, auto); font-size: 9px; overflow: hidden; }
  .cu-steps__list li:not(.is-now) { opacity: .0; width: 0; }
  .cu-steps__list li.is-now { opacity: 1; grid-column: 1 / -1; }
  .cu-save { display: none; }
  .rv dl { grid-template-columns: 1fr; gap: 2px; }
  .rv dt { margin-top: 8px; }
  .file { grid-template-columns: 1fr auto; }
  .file select { grid-column: 1 / -1; width: 100%; }
}
.ts-box { grid-column: 1 / -1; min-height: 0; }
.ts-box:empty { display: none; }
/* phones: card title on its own line, tools on the next, full-size buttons */
@media (max-width: 640px) {
  .item__top { flex-wrap: wrap; row-gap: 10px; }
  .item__n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .item__tools .iconbtn { width: 44px; height: 44px; }
}
.cu-grid[hidden] { display: none; }

/* confirmation: cost estimate notice */
.cu-estimate { display: flex; gap: 14px; align-items: flex-start; text-align: left; max-width: 560px; padding: 16px 18px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--signal) 45%, var(--line)); background: color-mix(in srgb, var(--signal) 8%, var(--card)); }
.cu-estimate b { font-size: 17px; }
.cu-estimate p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.cu-estimate__icon { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--signal); }
.cu-estimate__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--signal-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* confirmation: welcoming portrait with the animated check as a badge */
.cu-done__hello { position: relative; width: clamp(150px, 22vw, 200px); aspect-ratio: 1; margin-bottom: 4px; }
.cu-done__hello img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid var(--signal); box-shadow: 0 0 0 8px color-mix(in srgb, var(--signal) 14%, transparent), 0 24px 60px -20px rgba(0,0,0,.6); animation: helloIn .8s var(--ease) both; }
.cu-done__hello .cu-done__mark { position: absolute; right: -4px; bottom: 2px; width: 58px; height: 58px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; }
.cu-done__hello .cu-done__mark svg { width: 52px; height: 52px; }
@keyframes helloIn { from { opacity: 0; transform: scale(.85); } }
html.calm .cu-done__hello img { animation: none; }
