/* Project brief, request tracking and call booking */
.flow { padding: calc(72px + clamp(36px, 6vw, 72px)) 0 clamp(64px, 9vw, 112px); position: relative; overflow: hidden; }
.flow::before { content: ""; position: absolute; inset: -10% -20% auto 35%; height: 560px; background: radial-gradient(closest-side, var(--tint), transparent); z-index: -1; pointer-events: none; }
.flow-wrap { max-width: 860px; display: grid; gap: 28px; }
.flow-head { display: grid; gap: 16px; }
.flow-head h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.035em; line-height: 1; font-variation-settings: "opsz" 96, "wdth" 92; text-wrap: balance; }
.ok-mark { width: 52px; height: 52px; border-radius: 999px; display: grid; place-items: center; background: var(--chrome); color: var(--on-accent); }
.ok-mark svg { width: 26px; height: 26px; }
.muted { color: var(--muted); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Card + steps */
.brief, .track-card, .brief-sum { padding: clamp(22px, 4vw, 40px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 40px 100px -50px rgba(0,0,0,.6); }
.brief { display: grid; gap: 28px; scroll-margin-top: 96px; }
.steps-bar { display: none; list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.brief.is-stepped .steps-bar { display: grid; }
.steps-bar li { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.steps-bar li::before { content: ""; height: 3px; border-radius: 3px; background: var(--line-2); }
.steps-bar li.done::before { background: var(--silver); }
.steps-bar li.now::before { background: var(--chrome); }
.steps-bar li.now { color: var(--text); }
.steps-bar span { display: none; }
.steps-bar em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .steps-bar em { display: none; } }

.f-step { border: 0; margin: 0; padding: 0; display: grid; gap: 20px; min-width: 0; }
.brief.is-stepped .f-step:not(.is-open) { display: none; }
.brief:not(.is-stepped):not(.booking) .f-step + .f-step { padding-top: 28px; box-shadow: 0 -1px 0 var(--line); }
.booking .f-step + .f-step { padding-top: 28px; box-shadow: 0 -1px 0 var(--line); }
.f-step legend { padding: 0; margin-bottom: 20px; font-family: var(--display); font-weight: 600; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; line-height: 1.15; outline: none; }
.f-count { display: block; font-family: var(--body); font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }

/* Fields */
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .f-label { font-weight: 600; font-size: 15px; }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--bg-2, #101215); color: var(--text); font-size: 16px; line-height: 1.5;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(228,231,235,.18); }
.field ::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.f-help { font-size: 14px; color: var(--muted); }
.f-err { font-size: 14px; color: #ff8a7a; font-weight: 600; }
.has-err input, .has-err textarea, [aria-invalid="true"] { border-color: #ff8a7a !important; }
.f-step.has-err .svc-pick { outline: 2px solid #ff8a7a; outline-offset: 6px; border-radius: 18px; }
.f-alert { padding: 16px 20px; border-radius: 18px; border: 1px solid rgba(255,138,122,.5); background: rgba(255,138,122,.08); outline: none; }
.f-alert ul { margin: 6px 0 0; padding-left: 20px; color: var(--text); }

/* Service picker */
.svc-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .svc-pick { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .svc-pick { grid-template-columns: 1fr; } }
.pick { position: relative; display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--bg-2, #101215); cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.pick:hover { border-color: var(--silver); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); margin-bottom: 6px; transition: background .2s, color .2s; }
.pick-ico svg { width: 21px; height: 21px; }
.pick-t { font-weight: 600; font-size: 16.5px; }
.pick-d { font-size: 14px; color: var(--muted); line-height: 1.45; }
.pick:has(input:checked) { border-color: var(--text); background: color-mix(in srgb, var(--surface) 70%, #2a2e34); }
.pick:has(input:checked) .pick-ico { background: var(--chrome); color: var(--on-accent); }
.pick:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 15px; transition: background .2s, color .2s, border-color .2s; }
.chip:hover span { border-color: var(--silver); }
.chip input:checked + span { background: var(--chrome); color: var(--on-accent); border-color: transparent; font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.check { display: flex; gap: 12px; align-items: center; font-weight: 500; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: #d5d9df; }

.f-nav { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.f-nav [data-next], .f-nav [data-submit] { margin-left: auto; }
.booking .f-nav { justify-content: space-between; }
.f-nav [hidden] { display: none; }
@media (max-width: 560px) { .f-nav .btn { flex: 1; } .booking .f-nav .btn { flex-basis: 100%; } }

.flow-side { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; font-size: 15px; color: var(--muted); }
.flow-side a[href^="mailto"] { color: var(--text); font-weight: 600; text-underline-offset: 3px; }
.side-link { color: var(--text); font-weight: 600; text-decoration: none; }
.side-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Tracking */
.track-card { display: grid; gap: 24px; }
.track-top { display: flex; flex-wrap: wrap; gap: 16px 48px; }
.track-top .k, .call-facts dt { display: block; font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .03em; }
.track-top b { font-size: 20px; font-weight: 600; }
.ref { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.timeline li { position: relative; display: grid; gap: 10px; justify-items: start; font-size: 14.5px; color: var(--muted); padding-right: 8px; }
.timeline li::before { content: ""; position: absolute; top: 9px; left: 22px; right: 0; height: 2px; background: var(--line-2); }
.timeline li:last-child::before { display: none; }
.timeline li.done::before { background: var(--silver); }
.timeline i { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 999px; border: 2px solid var(--line-2); background: var(--surface); }
.timeline li.done i { background: var(--silver); border-color: var(--silver); }
.timeline li.now i { background: var(--chrome); border-color: transparent; box-shadow: 0 0 0 6px rgba(228,231,235,.14); }
.timeline li.done, .timeline li.now { color: var(--text); }
.timeline li.now span { font-weight: 600; }
@media (max-width: 520px) {
  .timeline { grid-template-columns: 1fr; gap: 14px; }
  .timeline li { grid-template-columns: 20px 1fr; align-items: center; gap: 14px; }
  .timeline li::before { top: 22px; bottom: -14px; left: 9px; right: auto; width: 2px; height: auto; }
}
.track-next { font-size: 17px; }
.track-closed { font-weight: 600; }
.track-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.track-actions form { margin: 0; }
@media (max-width: 560px) { .track-actions .btn { width: 100%; white-space: normal; text-align: center; } .track-actions form { width: 100%; } }

.brief-sum h2 { font-size: 24px; margin-bottom: 16px; }
.brief-sum dl, .call-facts { margin: 0; display: grid; gap: 0; }
.brief-sum dl > div, .call-facts > div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.brief-sum dt { color: var(--muted); font-size: 15px; }
.brief-sum dd, .call-facts dd { margin: 0; overflow-wrap: anywhere; }
.call-facts > div:first-child { border-top: 0; padding-top: 0; }
.call-facts dd b { font-size: 20px; font-weight: 600; }
@media (max-width: 560px) { .brief-sum dl > div, .call-facts > div { grid-template-columns: 1fr; gap: 4px; } }

/* Booking */
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.day { flex: none; scroll-snap-align: start; min-width: 82px; display: grid; justify-items: center; gap: 2px; padding: 12px 10px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--bg-2, #101215); cursor: pointer; }
.day .dw, .day .dm { font-size: 12px; color: var(--muted); }
.day b { font-family: var(--display); font-size: 24px; font-weight: 600; line-height: 1.1; }
.day[aria-selected="true"] { background: var(--chrome); color: var(--on-accent); border-color: transparent; }
.day[aria-selected="true"] .dw, .day[aria-selected="true"] .dm { color: #33383f; }
.booking:not(.is-js) .days { display: none; }
.days.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.times { display: grid; gap: 12px; }
.times[hidden] { display: none; }
.booking:not(.is-js) .times + .times { margin-top: 18px; }
.times-h { font-size: 15px; color: var(--muted); }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot { position: relative; cursor: pointer; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot span { display: grid; place-items: center; min-height: 46px; border-radius: 12px; border: 1px solid var(--line-2); font-weight: 600; font-variant-numeric: tabular-nums; transition: background .2s, border-color .2s; }
.slot:hover span { border-color: var(--silver); }
.slot input:checked + span { background: var(--chrome); color: var(--on-accent); border-color: transparent; }
.slot input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
