/* بازار کار دُرج (jobs.dorj.app) — همان زبان طراحی فرم استخدام صفحهٔ مطب، با برند دُرج.
   فقط موبایل‌محور؛ بدون فریم‌ورک تا روی گوشی ضعیف هم سریع باز شود. */
@font-face{font-family:Y;font-weight:400;src:url(/fonts/IRANYekanXFaNum-Regular.woff2) format("woff2");font-display:swap}
@font-face{font-family:Y;font-weight:700;src:url(/fonts/IRANYekanXFaNum-Bold.woff2) format("woff2");font-display:swap}
@font-face{font-family:Y;font-weight:800;src:url(/fonts/IRANYekanXFaNum-Bold.woff2) format("woff2");font-display:swap}
    :root {
color-scheme:light;
--accent:#198992; --accent-text:#115D71; --accent-soft:#DCEFF0; --accent-line:#96D1D2;
--cover-a:#132D4D; --cover-b:#115D71; --glow:rgba(82,207,203,.38);
--btn-a:#132D4D; --btn-b:#115D71; --btn-ink:#ffffff; --btn-shadow:rgba(19,45,77,.55);
--bg:#F5FAFA; --card:#ffffff; --ink:#132D4D; --text:#3C5668; --muted:#6A8593;
--line:rgba(19,45,77,.12); --field:#F5FAFA;
--ok:#0f8a5f; --ok-soft:#e6f6ef; --bad:#b4332a; --bad-soft:#fdeeee;
--shadow:0 1px 2px rgba(19,45,77,.05), 0 14px 34px -18px rgba(19,45,77,.28);
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
a { color:var(--accent-text); }
body {
margin:0; background:var(--bg); color:var(--text);
font-family:Y,Tahoma,sans-serif;
font-size:15px; line-height:1.85; -webkit-text-size-adjust:100%;
}
.cover { height:150px; position:relative; overflow:hidden; background:linear-gradient(135deg, var(--cover-a), var(--cover-b)); }
.cover::before, .cover::after { content:''; position:absolute; border-radius:50%; }
.cover::before { width:300px; height:300px; top:-150px; inset-inline-start:-80px; background:radial-gradient(circle, var(--glow), transparent 68%); }
.cover::after { width:240px; height:240px; bottom:-150px; inset-inline-end:-50px; background:radial-gradient(circle, var(--glow), transparent 68%); }
.wrap { max-width:600px; margin:0 auto; padding:0 16px 44px; }
.profile { position:relative; margin-top:-70px; padding:22px 20px; text-align:center; background:var(--card); border-radius:24px; box-shadow:var(--shadow); }
.profile .logo { width:72px; height:72px; margin:-56px auto 10px; border-radius:22px; background:#fff; padding:8px; border:4px solid var(--card); box-shadow:0 10px 26px rgba(15,23,42,.16); display:flex; align-items:center; justify-content:center; font-size:32px; }
.profile .logo img { width:100%; height:100%; object-fit:contain; }
.profile .kicker { color:var(--muted); font-size:13px; font-weight:700; margin:0; }
.profile h1 { font-size:22px; line-height:1.6; margin:2px 0 0; font-weight:800; color:var(--ink); text-wrap:balance; }
.card { background:var(--card); border-radius:22px; padding:20px; margin-top:14px; box-shadow:var(--shadow); }
.card h2 { margin:0 0 12px; font-size:16px; font-weight:800; color:var(--ink); }
.desc { white-space:pre-line; margin:0; }
.flash { border-radius:14px; padding:12px 14px; margin-bottom:14px; font-size:14px; font-weight:700; }
.flash-ok { background:var(--ok-soft); color:var(--ok); }
.flash-bad { background:var(--bad-soft); color:var(--bad); }
.errors { margin:0; padding-inline-start:18px; }
fieldset { border:0; margin:0; padding:0; min-width:0; }
/* هر سؤال یک بلوک با فاصلهٔ یکسان — شلوغی بیشتر از فاصله‌های نامنظم می‌آمد. */
.q { margin:0 0 24px; }
label.lbl, legend.lbl { display:block; font-size:14px; font-weight:800; color:var(--ink); margin:0 0 9px; padding:0; }
.lbl .opt, summary .opt { color:var(--muted); font-weight:500; font-size:12px; }

/* ── مرحله‌ها ── بدون جاوااسکریپت همه دیده می‌شوند و دکمه‌های مرحله پنهان‌اند. */
.js-only { display:none !important; }
form.is-stepped .js-only { display:flex !important; }
form.is-stepped .step { display:none; }
form.is-stepped .step.is-active { display:block; animation:step-in .22s ease; }
@keyframes step-in { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }
.step + .step { margin-top:8px; padding-top:20px; border-top:1px solid var(--line); }
form.is-stepped .step + .step { margin-top:0; padding-top:0; border-top:0; }
.step-title { margin:0 0 18px; font-size:17px; font-weight:800; color:var(--ink); }
form.is-stepped .step-title { display:none; }
.progress { flex-direction:column; gap:8px; margin:0 0 22px; }
.progress-text { display:flex; justify-content:space-between; font-size:13px; font-weight:800; color:var(--ink); }
.progress-text [data-step-count] { color:var(--muted); font-weight:700; }
.progress-bar { height:6px; border-radius:99px; background:var(--accent-soft); overflow:hidden; }
.progress-bar i { display:block; height:100%; width:33%; border-radius:99px; background:var(--accent); transition:width .3s ease; }
.step-nav { display:flex; flex-direction:column; align-items:stretch; gap:4px; margin-top:6px; }
.step-nav .btn { margin-top:0; }
.btn-back { background:none; border:0; padding:10px; font:inherit; font-size:14px; font-weight:700; color:var(--muted); cursor:pointer; }
.q-error { margin:8px 0 0; font-size:13px; font-weight:700; color:var(--bad); }
.q.has-error input[type=text], .q.has-error input[type=tel] { border-color:var(--bad); }
.q.has-error .choice span { border-color:var(--bad); }
.privacy { text-align:center; margin-top:14px; }

/* «رشته» فقط وقتی «دانشجو هستم» انتخاب شده. */
.student-field { display:none; margin-top:10px; }
.student:has(input[value="1"]:checked) .student-field { display:block; }

/* جمع‌شونده‌ها: پرسش‌های اختیاری، و فرم بعد از ثبت. */
details > summary { list-style:none; cursor:pointer; display:flex; align-items:center; gap:8px; font-weight:800; color:var(--ink); }
details > summary::-webkit-details-marker { display:none; }
details > summary::after { content:''; margin-inline-start:auto; width:8px; height:8px; border:solid var(--muted); border-width:0 2px 2px 0; transform:rotate(45deg); transition:transform .2s ease; }
details[open] > summary::after { transform:rotate(-135deg); }
.more { padding:13px 14px; border-radius:14px; border:1.5px dashed var(--line); font-size:14px; }
.more-body { padding-top:6px; }
.more-body .lbl { margin-top:14px; }
.edit-toggle > summary { font-size:15px; }
.edit-toggle[open] > summary { margin-bottom:18px; }
.hint { color:var(--muted); font-size:12.5px; margin:5px 0 0; }
input[type=text], input[type=tel], textarea, select {
width:100%; font:inherit; font-size:16px; /* ۱۶px: iOS زوم نکند */
padding:12px 14px; border:1.5px solid var(--line); border-radius:14px;
background:var(--field); color:var(--ink);
}
select { padding-inline:10px; appearance:auto; }
input:focus, textarea:focus, select:focus { outline:none; border-color:var(--accent); background:var(--card); }
input.ltr { direction:ltr; text-align:right; }
textarea { min-height:96px; resize:vertical; }
.choices { display:flex; flex-wrap:wrap; gap:8px; }
.choice { position:relative; }
.choice input { position:absolute; opacity:0; width:1px; height:1px; }
.choice span {
display:inline-flex; align-items:center; gap:6px; padding:8px 15px; border-radius:999px; cursor:pointer;
border:1.5px solid var(--line); background:var(--field); color:var(--ink); font-weight:700; font-size:14px;
}
.choice input:checked + span { border-color:var(--accent); background:var(--accent-soft); color:var(--accent-text); }

/* جدول هم‌اندازه: گزینه‌ها در ستون‌های برابر، نه دکمه‌هایی با پهنای متفاوت. */
.choices.grid-2, .choices.grid-3 { display:grid; gap:8px; }
.choices.grid-2 { grid-template-columns:repeat(2, minmax(0, 1fr)); }
.choices.grid-3 { grid-template-columns:repeat(3, minmax(0, 1fr)); }
/* سه‌ستونه: یک خط و هم‌قد، حتی «کارشناسی ارشد» و «در حال گذراندن». */
.grid-3 .choice span { padding-inline:2px !important; font-size:13px !important; white-space:nowrap; letter-spacing:-.2px; }
.grid-2 .choice span, .grid-3 .choice span, .seg .choice span {
display:flex; align-items:center; justify-content:center; text-align:center; width:100%; min-height:44px;
padding:8px 6px; border-radius:12px; font-size:13.5px; line-height:1.5;
}
/* «بله / خیر» کنار عنوان، هم‌ردیف. */
.q-inline { display:flow-root; }
.q-inline > legend { float:inline-start; margin:10px 0 0; }
.choices.seg { display:grid; grid-template-columns:repeat(2, 64px); gap:6px; justify-content:end; }
.q-inline .student-field { clear:both; }
/* فهرست تیک‌دار برای چندانتخابی: هر کار یک ردیف با دایرهٔ تیک. */
.choices.list { display:grid; gap:0; border:1.5px solid var(--line); border-radius:14px; overflow:hidden; background:var(--field); }
.list .choice + .choice { border-top:1px solid var(--line); }
.list .choice span {
display:flex; align-items:center; gap:10px; width:100%; padding:11px 14px; border:0; border-radius:0;
background:transparent; font-size:14px;
}
.list .choice span::before {
content:''; flex:0 0 auto; width:20px; height:20px; border-radius:6px; border:1.5px solid var(--accent-line);
background:var(--card) center/12px no-repeat;
}
.list .choice input:checked + span { background:var(--accent-soft); color:var(--accent-text); }
.list .choice input:checked + span::before {
border-color:var(--accent); background-color:var(--accent);
background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6 9.6 3.6' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.q.has-error .list { border-color:var(--bad); }
hr.split { border:0; border-top:1px solid var(--line); margin:4px 0 22px; }
/* پرانتزِ توضیح یک‌جا به خط بعد برود، نه نصفه. */
.lbl .opt { display:inline-block; }
.choice input:focus-visible + span { outline:2px solid var(--accent); outline-offset:2px; }
.btn {
display:flex; align-items:center; justify-content:center; gap:9px; width:100%; margin-top:22px;
padding:15px 14px; border:0; border-radius:16px; cursor:pointer;
font:inherit; font-size:16px; font-weight:800; text-decoration:none;
color:var(--btn-ink); background:linear-gradient(135deg, var(--btn-a), var(--btn-b));
box-shadow:0 10px 22px -10px var(--btn-shadow);
}
.btn:active { transform:scale(.985); }
.note { margin-top:16px; padding:12px 14px; border-radius:14px; background:var(--accent-soft); color:var(--accent-text); font-size:14px; }
.note b { display:block; color:var(--ink); font-size:13.5px; margin-bottom:2px; }
.note p { margin:0; white-space:pre-line; }
.note-soft { background:var(--field); border:1px solid var(--line); color:var(--text); }

/* ── چرخ سال تولد (حس انتخابگر تاریخ آیفون) ──
   فهرست با scroll-snap می‌چرخد؛ نوار وسط «انتخاب» را نشان می‌دهد و دو سر با
   ماسک محو می‌شوند. چرخش سه‌بعدی هر ردیف را public/jobs.js می‌دهد. */
.wheel {
position:relative; height:220px; border-radius:18px; overflow:hidden;
background:var(--field); border:1.5px solid var(--line);
-webkit-mask-image:linear-gradient(to bottom, transparent 0, #000 28%, #000 72%, transparent 100%);
        mask-image:linear-gradient(to bottom, transparent 0, #000 28%, #000 72%, transparent 100%);
}
.wheel-band {
position:absolute; inset-inline:10px; top:88px; height:44px; border-radius:12px; z-index:0;
background:var(--accent-soft); box-shadow:inset 0 0 0 1px var(--accent-line);
}
.wheel-list {
/* فقط عمودی، مثل چرخ آیفون: کشیدن انگشت به چپ و راست هیچ اثری ندارد. */
position:relative; z-index:1; height:100%; overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain;
touch-action:pan-y;
scroll-snap-type:y mandatory; scrollbar-width:none; -webkit-overflow-scrolling:touch; outline:none;
}
.wheel-list::-webkit-scrollbar { display:none; }
.wheel-pad { height:88px; }
.wheel-item {
height:44px; display:flex; align-items:center; justify-content:center; cursor:pointer;
scroll-snap-align:center; font-size:21px; font-weight:800; color:var(--muted);
-webkit-user-select:none; user-select:none; will-change:transform, opacity;
}
.wheel-item input { position:absolute; opacity:0; width:1px; height:1px; }
.wheel-item span { display:inline-block; will-change:transform; }
.wheel-item.is-center, .wheel-item input:checked + span { color:var(--ink); }
.wheel:focus-within { border-color:var(--accent); }
.wheel-hint.is-done { color:var(--ok); font-weight:700; }
.hp { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); opacity:0; pointer-events:none; }
.done { text-align:center; }
.done .tick { width:60px; height:60px; margin:0 auto 10px; border-radius:50%; background:var(--ok-soft); color:var(--ok); display:flex; align-items:center; justify-content:center; font-size:30px; font-weight:800; }
.foot { text-align:center; margin-top:22px; font-size:12.5px; color:var(--muted); }
.foot p { margin:0 0 8px; }
.foot .dorj { display:inline-flex; align-items:center; gap:6px; color:var(--muted); font-weight:700; text-decoration:none; }
.foot .dorj img { width:16px; height:16px; }
.jobs { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.jobs a { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:14px 16px; border-radius:16px; border:1.5px solid var(--line); background:var(--field); color:var(--ink); font-weight:800; text-decoration:none; }
.jobs a:hover { border-color:var(--accent); background:var(--accent-soft); color:var(--accent-text); }
.day { margin-top:16px; }
.day h3 { margin:0 0 8px; font-size:14px; font-weight:800; color:var(--ink); }
.times { display:grid; grid-template-columns:repeat(auto-fill, minmax(86px, 1fr)); gap:8px; }
.times button {
font:inherit; font-size:15px; font-weight:800; padding:10px 6px; border-radius:12px; cursor:pointer;
border:1.5px solid var(--line); background:var(--field); color:var(--ink);
}
.times button:hover { border-color:var(--accent); background:var(--accent-soft); color:var(--accent-text); }
.booked { padding:14px 16px; border-radius:16px; background:var(--accent-soft); color:var(--accent-text); font-weight:800; text-align:center; }
@media (prefers-reduced-motion: reduce) { * { transition:none !important; scroll-behavior:auto !important; } }

/* ── نوار بالا: برند دُرج + حساب ── */
.topbar { position:absolute; z-index:3; top:0; inset-inline:0; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:max(12px, env(safe-area-inset-top)) 16px 0; max-width:600px; margin:0 auto; }
.topbar .brand { display:flex; align-items:center; gap:8px; color:#fff; font-weight:800; text-decoration:none; font-size:15px; }
.topbar .brand img { width:30px; height:30px; border-radius:9px; background:#fff; padding:3px; }
.topbar .brand small { font-weight:500; opacity:.8; font-size:12.5px; }
.topbar .acct { color:#fff; font-size:13px; font-weight:700; text-decoration:none; padding:6px 12px; border-radius:99px; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.28); }
.cover-wrap { position:relative; }

/* ── فهرست آگهی‌ها ── */
.job-card { display:block; padding:16px; border-radius:18px; border:1.5px solid var(--line); background:var(--card); text-decoration:none; color:var(--text); box-shadow:var(--shadow); }
.job-card + .job-card { margin-top:10px; }
.job-card .t { font-size:16px; font-weight:800; color:var(--ink); }
.job-card .o { font-size:13px; color:var(--muted); margin-top:2px; }
.job-card:hover { border-color:var(--accent-line); }
.empty { text-align:center; color:var(--muted); padding:26px 10px; margin:0; }

/* ── حساب: شماره، کد، نام ── */
.auth .profile h1 { font-size:20px; }
.auth .lead { color:var(--muted); font-size:14px; margin:6px 0 0; }
.otp-input { text-align:center !important; letter-spacing:10px; font-size:24px !important; font-weight:800; direction:ltr; }
.err { color:var(--bad); font-size:13px; font-weight:700; margin:6px 0 0; }
.linkish { display:block; text-align:center; margin-top:12px; color:var(--muted); font-size:14px; font-weight:700; text-decoration:none; background:none; border:0; font-family:inherit; cursor:pointer; width:100%; }

/* ── پنل داوطلب ── */
.app-card .head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.app-card .head .t { font-size:16px; font-weight:800; color:var(--ink); }
.app-card .head .o { font-size:13px; color:var(--muted); }
.pill { display:inline-block; white-space:nowrap; padding:3px 12px; border-radius:99px; font-size:12.5px; font-weight:800; background:var(--accent-soft); color:var(--accent-text); }
.pill.ok { background:var(--ok-soft); color:var(--ok); }
.pill.mute { background:var(--field); color:var(--muted); border:1px solid var(--line); }
.track { list-style:none; margin:16px 0 0; padding:0; display:grid; grid-template-columns:repeat(4, 1fr); gap:4px; }
.track li { text-align:center; font-size:11.5px; font-weight:700; color:var(--muted); }
.track li::before { content:''; display:block; height:5px; border-radius:99px; background:var(--line); margin-bottom:6px; }
.track li.on { color:var(--accent-text); }
.track li.on::before { background:var(--accent); }
.app-card .msg { margin:14px 0 0; font-size:14px; }
.app-card .actions { display:flex; gap:14px; margin-top:12px; font-size:13.5px; font-weight:700; }
.app-card .actions a { color:var(--accent-text); text-decoration:none; }
.me-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.me-head form { margin:0; }
