/* CRM بیمه — shared base: fonts, tokens, reset, forms */
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-VF.f6d31671339d.woff2") format("woff2-variations"), url("../fonts/Vazirmatn-VF.f6d31671339d.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Markazi"; src: url("../fonts/markazi-text-arabic-500-normal.128cb43781a8.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Markazi"; src: url("../fonts/markazi-text-arabic-700-normal.0109a93a5bbd.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Lalezar"; src: url("../fonts/lalezar-arabic-400-normal.d29aca20adbd.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Naskh"; src: url("../fonts/noto-naskh-arabic-arabic-400-normal.9ebecc332fb3.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Naskh"; src: url("../fonts/noto-naskh-arabic-arabic-700-normal.de2762f6a840.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Kufi"; src: url("../fonts/noto-kufi-arabic-arabic-400-normal.20fb38d522c0.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-065F, U+066A-06EF, U+06FA-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Kufi"; src: url("../fonts/noto-kufi-arabic-arabic-700-normal.bd18b7a9da0a.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-065F, U+066A-06EF, U+06FA-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }

:root {
  --ink: #12233f;
  --ink-2: #3b4a63;
  --muted: #6b7789;
  --paper: #f6f7f9;
  --surface: #ffffff;
  --line: #dce1e8;
  --seal: #0e7c66;
  --seal-soft: #e3f2ee;
  --amber: #a8660b;
  --amber-soft: #fbf0dc;
  --red: #b42318;
  --red-soft: #fdecea;
  --radius: 10px;
  --font: "Vazirmatn", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.75; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
[dir="ltr"], .ltr { direction: ltr; unicode-bidi: plaintext; text-align: left; }
.num { font-feature-settings: "tnum"; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--seal) 55%, transparent); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .6em 1.2em; border-radius: 8px; border: 1px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; background: var(--seal); color: #fff; transition: background-color .15s; }
.btn:hover { background: #0b6553; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #eef1f5; }
.btn-danger { background: transparent; color: var(--red); border-color: #efc2be; }
.btn-danger:hover { background: var(--red-soft); }
.btn-sm { padding: .3em .8em; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Forms */
.field { margin-bottom: 1.1rem; }
.field > label, .field-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: .35rem; }
.field .help { color: var(--muted); font-size: 13px; margin-top: .3rem; }
.field .errors { color: var(--red); font-size: 13px; margin-top: .3rem; list-style: none; padding: 0; }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=date], input[type=search], input[type=url], input:not([type]), select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #c9d0da; border-radius: 8px; padding: .55em .8em; }
input:focus, select:focus, textarea:focus { border-color: var(--seal); outline: none; box-shadow: 0 0 0 3px var(--seal-soft); }
input[type=color] { width: 56px; height: 38px; padding: 2px; border: 1px solid #c9d0da; border-radius: 8px; background: #fff; }
input[type=checkbox], input[type=radio] { accent-color: var(--seal); width: 1.05em; height: 1.05em; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .3rem .8rem; }
.checklist label { display: flex; gap: .5em; align-items: center; font-weight: 400; }

/* Messages */
.flash { list-style: none; padding: 0; margin: 0 0 1rem; }
.flash li { padding: .7rem 1rem; border-radius: 8px; margin-bottom: .5rem; background: var(--seal-soft); color: #08503f; }
.flash li.error { background: var(--red-soft); color: var(--red); }
.flash li.warning { background: var(--amber-soft); color: #6d4206; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Template swatches (sign-up wizard and panel) */
.tpl-swatch { height: 56px; border-radius: 6px; display: grid; place-items: center; color: #fff; background: var(--tpl); font-size: 18px; }
.tpl-swatch.tpl-etemad { font-family: "Markazi", serif; font-weight: 700; font-size: 24px; box-shadow: inset 0 -4px 0 #b08d57; }
.tpl-swatch.tpl-modern { background: #f1f7f6; color: var(--tpl); font-weight: 300; }
.tpl-swatch.tpl-khanevadeh { background: #fcf0f4; color: var(--tpl); font-family: "Naskh", serif; font-weight: 700; }
.tpl-swatch.tpl-khodro { background: #1c1f24; color: var(--tpl); font-family: "Lalezar", sans-serif; font-size: 24px; }
.tpl-swatch.tpl-chandsherkati { background: #eef2fb; color: var(--tpl); font-family: "Kufi", sans-serif; font-weight: 700; font-size: 14px; }
