/* وب‌اپ امداد خودرو — هم‌شکل اپ اندروید (سرمه‌ای، کهربایی، سفید) */
@font-face { font-family: Vazirmatn; src: url(../fonts/Vazirmatn-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(../fonts/Vazirmatn-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(../fonts/Vazirmatn-Black.woff2) format("woff2"); font-weight: 900; font-display: swap; }

:root { --navy: #0F2A4A; --navy2: #16365E; --amber: #F2A900; --mist: #F0F3F6; --steel: #5B6670; --line: #D9DFE5; --ok: #1E8E4E; --err: #B42318; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { font: 400 15px/1.7 Vazirmatn, Tahoma, sans-serif; color: #15191E; background: var(--mist); display: flex; flex-direction: column; min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.bar { display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top) + 8px) 14px 8px; background: var(--navy); color: #fff; position: relative; z-index: 1000; }
.bar h1 { flex: 1; margin: 0; font-size: 18px; font-weight: 900; }
.bar-logo img { display: block; border-radius: 10px; }
.bar-call { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); }
.bar-call svg { width: 22px; fill: var(--amber); }

.install, .notice { position: relative; padding: 10px 44px 10px 14px; font-size: 13.5px; background: #FFF5DB; border-bottom: 1px solid #F5D58A; }
.notice { padding-left: 14px; background: #E8F0FA; border-color: #C8D8EE; }
.install a { color: var(--navy); font-weight: 700; }
.install .x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 22px; width: 36px; height: 36px; cursor: pointer; }
.share-ico svg { width: 18px; vertical-align: -4px; fill: #0A84FF; }

main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.step { flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* نقشه */
.step-loc { position: relative; }
.map-wrap { position: relative; flex: 1; min-height: 46vh; }
#map { position: absolute; inset: 0; background: #e5e9ec; }
.pin { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -46px 0 0 -23px; z-index: 500; pointer-events: none; filter: drop-shadow(0 3px 3px rgba(0,0,0,.35)); }
.pin svg { width: 100%; fill: var(--amber); stroke: var(--navy); stroke-width: .8; }
.fab { position: absolute; left: 14px; bottom: 54px; z-index: 600; width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.25); display: grid; place-items: center; cursor: pointer; }
.fab svg { width: 26px; fill: var(--navy); }
.fab.busy svg { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.acc { position: absolute; left: 12px; right: 12px; bottom: 8px; z-index: 600; margin: 0; padding: 6px 12px; background: rgba(15,42,74,.88); color: #fff; border-radius: 10px; font-size: 13px; text-align: center; }
.acc.warn { background: rgba(180,35,24,.92); }
.acc.good { background: rgba(30,142,78,.92); }

.sheet { background: #fff; border-radius: 20px 20px 0 0; margin-top: -16px; position: relative; z-index: 700; padding: 18px 16px calc(env(safe-area-inset-bottom) + 16px); box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
.sheet h2 { margin: 0 0 8px; font-size: 18px; font-weight: 900; }
input, select, textarea { display: block; width: 100%; padding: 12px 14px; min-height: 50px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font-size: 16px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(242,169,0,.3); }
[aria-invalid="true"] { border-color: var(--err); }
.lbl { display: block; font-weight: 700; font-size: 14px; margin: 12px 0 6px; }
.lbl input, .lbl textarea { margin-top: 6px; font-weight: 400; }
.lbl em { color: var(--err); font-style: normal; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; margin-top: 14px; border-radius: 16px; border: 0; font-weight: 900; font-size: 17px; text-decoration: none; cursor: pointer; }
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-ink { background: var(--navy); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line); font-weight: 700; font-size: 15px; min-height: 50px; margin-top: 10px; }
.btn[disabled] { opacity: .6; }

/* مشخصات */
.step-form { padding: 10px 16px calc(env(safe-area-inset-bottom) + 20px); overflow: auto; }
.back { align-self: flex-start; border: 0; background: none; color: var(--navy); font-weight: 700; padding: 6px 0; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 8px 14px; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.err { color: var(--err); font-weight: 700; margin: 12px 0 0; }
.muted { color: var(--steel); }

/* رادار */
.step-track { align-items: center; text-align: center; padding: 24px 18px calc(env(safe-area-inset-bottom) + 20px); overflow: auto; }
.step-track h2 { margin: 18px 0 4px; font-size: 20px; font-weight: 900; }
.radar { position: relative; width: 210px; height: 210px; border-radius: 50%; background: radial-gradient(circle, #16365E 0%, #0F2A4A 70%); overflow: hidden; flex: none; box-shadow: 0 8px 30px rgba(15,42,74,.35); }
.radar span { position: absolute; inset: 0; margin: auto; border: 1.5px solid rgba(242,169,0,.35); border-radius: 50%; }
.radar span:nth-child(1) { width: 33%; height: 33%; }
.radar span:nth-child(2) { width: 66%; height: 66%; }
.radar span:nth-child(3) { width: 99%; height: 99%; }
.radar i { position: absolute; inset: 0; background: conic-gradient(from 0deg, rgba(242,169,0,.55), rgba(242,169,0,0) 70deg, transparent 360deg); border-radius: 50%; animation: spin 2.4s linear infinite; }
.radar.ok { background: radial-gradient(circle, #23a05b, #1E8E4E 70%); }
.radar.ok i, .radar.stop i { animation: none; opacity: 0; }
.radar.stop { background: radial-gradient(circle, #6b7680, #4b555e 70%); }
.helpers { width: 100%; margin-top: 16px; display: flex; flex-direction: column; gap: 8px; text-align: right; }
.helpers h3 { margin: 0; font-size: 15px; }
.helper { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.helper div { flex: 1; }
.helper b { display: block; }
.helper small { color: var(--steel); }
.helper a { background: var(--navy); color: #fff; text-decoration: none; font-weight: 700; border-radius: 12px; padding: 8px 14px; }

.leaflet-control-attribution { font-size: 10px; }
@media (min-width: 720px) {
  body { max-width: 560px; margin: 0 auto; box-shadow: 0 0 30px rgba(0,0,0,.08); }
}
