/* ==========================================================================
   Repair request · done · tracking
   ========================================================================== */
.repair-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; }
.r-card { background: linear-gradient(165deg, var(--panel), var(--ink-2)); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.1rem, 3vw, 1.75rem); }
.r-form { display: flex; flex-direction: column; gap: 1.4rem; }
.r-alert { padding: .85rem 1rem; border-radius: 14px; background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.35); color: #fecaca; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.r-step { border: 0; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.r-step + .r-step { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.r-step legend { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.08rem; color: var(--white); margin-bottom: .2rem; padding: 0; }
.r-num { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(45,212,255,.12); color: var(--cyan); font-size: .95rem; }

.f-row { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.f-row[hidden] { display: none; }
.f-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.f-row label, .f-label { font-weight: 600; font-size: .95rem; color: var(--text); }
.f-row label small { color: var(--muted); font-weight: 400; }
.req { color: var(--amber); }
.f-row input, .f-row textarea {
  width: 100%; min-height: 50px; padding: .7rem .95rem; border-radius: 14px; border: 1px solid var(--line);
  background: var(--ink-2); color: var(--text); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.f-row textarea { resize: vertical; line-height: 1.9; }
.f-row input::placeholder, .f-row textarea::placeholder { color: #5d6880; }
.f-row input:focus, .f-row textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(45,212,255,.18); }
.f-row [aria-invalid=true] { border-color: #f87171; }
.f-err { color: #fca5a5; font-size: .86rem; }

.dev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.dev-grid.is-invalid .dev-box { border-color: rgba(248,113,113,.5); }
.dev-opt input, .del-opt input, .pills input { position: absolute; opacity: 0; pointer-events: none; }
.dev-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; min-height: 98px; padding: .8rem .5rem;
  text-align: center; border-radius: 16px; border: 1px solid var(--line); background: var(--ink-2); cursor: pointer; font-size: .9rem; font-weight: 600;
  color: var(--muted); transition: border-color .15s, background .15s, color .15s, transform .15s; }
.dev-ic svg { width: 30px; height: 30px; color: var(--cyan); }
.dev-box:hover { border-color: #33405f; color: var(--text); }
.dev-opt input:checked + .dev-box { border-color: var(--cyan); background: rgba(45,212,255,.1); color: var(--white); box-shadow: var(--glow-cyan); }
.dev-opt input:focus-visible + .dev-box, .del-opt input:focus-visible + span, .pills input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }

.del-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.del-opt span { display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1rem; border-radius: 16px; border: 1px solid var(--line); background: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s; }
.del-opt small { color: var(--muted); font-size: .85rem; }
.del-opt input:checked + span { border-color: var(--amber); background: rgba(255,176,32,.08); }
.del-opt input:checked + span b { color: var(--amber); }

.pills { display: flex; gap: .5rem; flex-wrap: wrap; }
.pills span { display: inline-block; padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--ink-2); cursor: pointer; font-weight: 500; }
.pills input:checked + span { border-color: var(--cyan); color: var(--cyan); background: rgba(45,212,255,.08); }

.btn-lg { min-height: 56px; font-size: 1.05rem; width: 100%; }
.btn.is-busy { opacity: .7; pointer-events: none; }
.r-fine { color: var(--muted); font-size: .86rem; text-align: center; margin-top: -.6rem; }

.r-side { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: calc(var(--header-h) + 16px); }
.r-side-title { font-size: 1.05rem; margin-bottom: 1rem; }
.r-flow { counter-reset: f; display: grid; gap: .9rem; }
.r-flow li { counter-increment: f; position: relative; padding-inline-start: 2.4rem; display: flex; flex-direction: column; }
.r-flow li::before { content: counter(f, persian); position: absolute; inset-inline-start: 0; top: .1rem; width: 28px; height: 28px; border-radius: 9px;
  display: grid; place-items: center; background: rgba(255,176,32,.12); color: var(--amber); font-weight: 800; font-size: .85rem; }
.r-flow span { color: var(--muted); font-size: .88rem; }
.r-track-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; transition: border-color .2s; }
.r-track-link:hover { border-color: var(--cyan); }
.r-track-link span:first-child { display: flex; flex-direction: column; }
.r-track-link small { color: var(--muted); }
.r-track-link > span:last-child { color: var(--cyan); font-size: 1.3rem; }
.r-contact { display: flex; flex-direction: column; gap: .6rem; color: var(--muted); }
.r-contact a:hover { color: var(--cyan); }
.r-closed { text-align: center; display: grid; gap: .8rem; }

/* done */
.done-wrap { display: grid; place-items: center; }
.done-card { max-width: 560px; width: 100%; text-align: center; display: grid; justify-items: center; gap: .9rem; padding-block: 2.2rem; }
.done-ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(52,211,153,.14); color: #34d399; box-shadow: 0 0 40px rgba(52,211,153,.25); }
.done-ic svg { width: 36px; height: 36px; }
.done-card h1 { font-size: clamp(1.4rem, 4vw, 1.9rem); }
.code-box { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1rem 1.5rem; border-radius: 16px; border: 1px dashed rgba(45,212,255,.45); background: rgba(45,212,255,.06); margin-block: .4rem; }
.code-box > span { color: var(--muted); font-size: .85rem; }
.code-box b { font-size: 2rem; letter-spacing: .12em; color: var(--white); font-family: ui-monospace, Menlo, Consolas, monospace; }
.btn-sm { min-height: 38px; padding: .4rem .9rem; font-size: .88rem; }

/* tracking */
.track-wrap { max-width: 760px; display: grid; gap: 1.25rem; }
.track-form { display: grid; gap: 1rem; }
.track-form input#t-code { text-transform: uppercase; letter-spacing: .08em; }
.tr-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; }
.tr-head h2 { font-size: 1.15rem; margin-top: .3rem; }
.tr-price { text-align: left; }
.tr-price small { color: var(--muted); display: block; font-size: .8rem; }
.tr-price b { font-size: 1.3rem; color: var(--amber); }
.st { padding: .15rem .7rem; border-radius: 999px; font-size: .95rem; }
.st-info { background: rgba(45,212,255,.12); color: var(--cyan); }
.st-warn { background: rgba(255,176,32,.14); color: var(--amber); }
.st-on { background: rgba(52,211,153,.14); color: #34d399; }
.st-off { background: rgba(139,150,171,.16); color: var(--muted); }
.timeline { display: grid; gap: 0; }
.timeline li { position: relative; display: flex; gap: .9rem; padding-bottom: 1.2rem; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 7px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.tl-dot { flex: none; width: 16px; height: 16px; border-radius: 50%; margin-top: .35rem; background: var(--panel-2); border: 2px solid var(--line); }
.timeline li.is-current .tl-dot { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.timeline b { display: block; color: var(--white); }
.timeline time { color: var(--muted); font-size: .84rem; }
.timeline p { margin-top: .35rem; color: #cfd7e6; font-size: .95rem; background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; }

@media (max-width: 960px) {
  .repair-grid { grid-template-columns: 1fr; }
  .r-side { position: static; }
}
@media (max-width: 560px) {
  .f-2, .del-grid { grid-template-columns: 1fr; }
  .dev-grid { grid-template-columns: repeat(2, 1fr); }
  .dev-box { min-height: 86px; }
  .code-box b { font-size: 1.6rem; }
}
