/* ───────── پرسش‌های یکی‌یکی (ثبت‌نام و تکمیل پروفایل) ───────── */
.wiz-wrap { max-width: 500px; margin: 4px auto 0; }
.wiz-card { padding: 16px 20px 20px; overflow: hidden; overflow: clip; }  /* clip, not hidden: a hidden edge would stop the buttons below from sticking */
.wiz-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.wiz-back {
  width: 40px; height: 40px; display: grid; place-items: center; flex: none; border-radius: 50%;
  color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border);
}
.wiz-back:hover { background: var(--brand-50); text-decoration: none; }
.wiz-back-off { visibility: hidden; }
.wiz-meter { flex: 1; height: 8px; background: var(--brand-100); border-radius: 99px; overflow: hidden; }
.wiz-meter > span {
  display: block; height: 100%; width: var(--to); border-radius: 99px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-600));
  animation: wiz-fill .7s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes wiz-fill { from { width: var(--from); } }
.wiz-count { min-width: 3.6em; text-align: end; font-size: .86rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.wiz-q { font-size: 1.3rem; text-align: center; margin: 2px 0 6px; }
.wiz-hint { text-align: center; margin-bottom: 16px; }

.tiles { display: grid; gap: 8px; margin-bottom: 16px; }
.tiles .choice-card { margin: 0; min-height: 48px; }
@media (min-width: 560px) { .tiles-2 { grid-template-columns: 1fr 1fr; } }
.choice-card.is-picked { border-color: var(--brand-600); background: var(--brand-50); box-shadow: 0 0 0 3px var(--brand-100); }
/* «رشته‌ی دیگر» / «چیز دیگر»: کادر نوشتن فقط وقتی گزینه‌ی دیگر تیک خورده باز می‌شود (بدون جاوااسکریپت) */
.other-box { display: none; margin: -4px 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--brand-50); border: 1.5px solid var(--brand-200); animation: other-in .2s ease-out; }
.tiles:has(input[data-other-trigger]:checked) ~ .other-box { display: block; }
.other-box .label { margin-bottom: 6px; display: block; font-weight: 600; }
@keyframes other-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.multi-count { margin: -6px 0 14px; text-align: center; font-size: .9rem; color: var(--brand-800); font-weight: 600; min-height: 1.4em; }

/* فهرست جست‌وجوپذیر استان و شهر */
.picker-search { margin-bottom: 10px; }
.picker-list { max-height: min(52vh, 420px); overflow-y: auto; padding: 2px 3px 3px; margin-bottom: 8px; overscroll-behavior: contain; scrollbar-width: thin; }
.picker-list[hidden] { display: none; }
.picker-list .choice-card { min-height: 44px; }
.picker-empty { text-align: center; margin: 4px 0 10px; font-size: .92rem; }
.picker-toggle { display: block; margin: 0 auto 14px; background: none; border: 0; padding: 8px 10px; min-height: 40px; color: var(--brand-700); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.picker-toggle:hover { color: var(--brand-800); }
.picker-city .field-error { text-align: center; margin: 0 0 8px; }
@media (prefers-reduced-motion: reduce) { .other-box { animation: none; } }
.chips { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip-btn {
  border: 1.5px solid var(--brand-200); background: var(--brand-50); color: var(--brand-800);
  border-radius: 999px; padding: 6px 16px; min-height: 38px; font-weight: 600;
}
@media (pointer: coarse) { .chip-btn, .wiz-back { min-height: var(--touch); } .wiz-back { width: var(--touch); height: var(--touch); } }
.chip-btn:hover { background: var(--brand-100); }
.wiz-actions { position: sticky; bottom: 0; z-index: 6; margin: 0 -4px; padding: 16px 4px 2px; background: linear-gradient(to top, #fff 72%, rgba(255, 255, 255, 0)); }
.wiz-skip { margin-top: 10px; }
.wiz-note { margin: 14px 0 0; text-align: center; }

/* ───────── صحنه‌ی سه‌بعدی: چند لایه‌ی تخت پشت هم، با چرخش آرام و کمی تمایل به سمت اشاره‌گر ───────── */
.stage3d { position: relative; width: 112px; height: 132px; margin: 4px auto 2px; perspective: 640px; --px: 0; --py: 0; animation: s3-pop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.stage3d .defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.stage3d .tilt {
  position: absolute; left: 0; top: 0; width: 112px; height: 112px; transform-style: preserve-3d;
  transform: rotateX(calc(var(--py) * -11deg)) rotateY(calc(var(--px) * 17deg)); transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.stage3d .body {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(-13deg) rotateY(-22deg); animation: s3-sway 7s ease-in-out infinite; will-change: transform;
}
.stage3d .l { position: absolute; transform: translateZ(var(--z)); }
.stage3d .t { inset: 0; border-radius: 28%; background: var(--c); }
.stage3d .t.front {
  background: linear-gradient(145deg, var(--brand-400), var(--brand-600) 55%, var(--brand-700));
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22), inset 0 2px 0 rgba(255, 255, 255, .4), inset 0 -5px 12px rgba(42, 31, 92, .38);
}
.stage3d .t.front::after { /* a soft reflection across the top-left of the lit face */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(128deg, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, .08) 34%, rgba(255, 255, 255, 0) 46%);
}
.stage3d .g { left: 18%; top: 18%; width: 64%; height: 64%; color: var(--c); }
.stage3d .spark {
  position: absolute; right: -6%; top: -4%; width: 24px; height: 24px; background: #FFD66B;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  transform: translateZ(40px); animation: s3-twinkle 2.4s ease-in-out infinite;
}
.stage3d .orb { position: absolute; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff 0, var(--o) 48%, rgba(42, 31, 92, .55) 100%); animation: s3-float 5s ease-in-out infinite; }
.stage3d .o1 { --o: #9D7BFF; --oz: 46px; width: 15px; height: 15px; left: -9%; top: 60%; }
.stage3d .o2 { --o: #FFD66B; --oz: -8px; width: 10px; height: 10px; right: -3%; bottom: 10%; animation-duration: 4.2s; animation-delay: -1.4s; }
.stage3d .shadow {
  position: absolute; left: 14%; right: 14%; bottom: 0; height: 14px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(42, 31, 92, .32), rgba(42, 31, 92, 0)); animation: s3-shadow 7s ease-in-out infinite;
}
@keyframes s3-pop { from { transform: scale(.55); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes s3-sway {
  0%, 100% { transform: translateY(0) rotateX(-15deg) rotateY(-24deg); }
  50% { transform: translateY(-7px) rotateX(-9deg) rotateY(22deg); }
}
@keyframes s3-twinkle {
  0%, 100% { transform: translateZ(40px) scale(.75) rotate(0deg); opacity: .85; }
  50% { transform: translateZ(40px) scale(1.15) rotate(25deg); opacity: 1; }
}
@keyframes s3-float {
  0%, 100% { transform: translateZ(var(--oz)) translateY(0); }
  50% { transform: translateZ(var(--oz)) translateY(-9px); }
}
@keyframes s3-shadow { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(.8); opacity: .55; } }
@media (prefers-reduced-motion: reduce) {
  .stage3d, .stage3d .body, .stage3d .spark, .stage3d .orb, .stage3d .shadow, .wiz-meter > span { animation: none; }
  .stage3d .tilt { transition: none; transform: none; }
}
@media (max-width: 480px) {
  .wiz-card { padding: 14px 14px 18px; }
  .wiz-q { font-size: 1.2rem; }
}

/* ───────── درباره‌ی ما ───────── */
.about-hero { text-align: center; padding: 4px 0 14px; }
.about-hero h1 { font-size: 1.6rem; margin-bottom: 6px; }
.about-hero p { max-width: 560px; margin-inline: auto; color: var(--text-2); }
.about-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); margin: 8px 0 18px; }
.about-grid .card { padding: 15px 16px 12px; }
.about-grid h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.about-grid h3 .icon { color: var(--brand-600); }
.about-steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 10px; margin-bottom: 20px; }
.about-steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; }
.about-steps li::before {
  content: counter(s, persian); flex: none; width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 50%; background: var(--brand-100); color: var(--brand-800); font-weight: 700; font-size: .95rem;
}

/* ───────── تنظیمات: بخش اطلاعات حرفه‌ای ───────── */
.settings-h { font-size: 1.1rem; margin: 22px 0 4px; padding-top: 16px; border-top: 1px solid var(--border); }

/* public profile address (settings page): shown only while «عمومی» is ticked; where :has() is not supported it is always shown */
.public-box .slug-field { margin-top: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2, rgba(109, 59, 234, .04)); }
.public-box:not(:has(#id_is_public:checked)) .slug-field { display: none; }
.slug-row { display: flex; align-items: stretch; direction: ltr; border: 1px solid var(--border); border-radius: 10px; background: var(--surface, #fff); overflow: hidden; }
.slug-row:focus-within { border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(109, 59, 234, .15); }
.slug-prefix, .slug-suffix { display: flex; align-items: center; padding: 0 10px; color: var(--muted, #6b6880); font-size: .9rem; background: rgba(109, 59, 234, .06); white-space: nowrap; flex: 0 0 auto; }
.slug-suffix { padding: 0 10px 0 4px; background: transparent; }
.slug-row .slug-input { flex: 1 1 0; width: 0; min-width: 9rem; border: 0; border-radius: 0; box-shadow: none; text-align: left; }
.slug-row .slug-input:focus { outline: none; box-shadow: none; }
@media (max-width: 520px) { .slug-row { flex-wrap: wrap; } .slug-prefix { flex: 1 0 100%; padding: 8px 10px; overflow-wrap: anywhere; white-space: normal; } .slug-suffix { display: none; } .slug-row .slug-input { flex: 1 0 100%; border-top: 1px solid var(--border); } }

/* the native «انتخاب فایل» button in the settings form, in the site's colours */
.card .input[type=file]::file-selector-button { margin-inline-end: 12px; border: 0; border-radius: 8px; padding: 6px 14px; background: rgba(109, 59, 234, .1); color: var(--brand-700, #5b2fd0); font: inherit; font-weight: 600; cursor: pointer; }
.card .input[type=file]::file-selector-button:hover { background: rgba(109, 59, 234, .18); }
