/* =========================================================
   RESET & FORM STYLES  |  Vazir Edition  |  Compact
   ========================================================= */

/* ---------- 1. Box sizing & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; padding: 0; font-family: Vazir, tahoma, sans-serif; direction: rtl; line-height: 1.9; font-size: 13px; color: #333; background: #fff; }

/* ---------- 2. Margins & paddings reset ---------- */
body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote, pre, fieldset, legend, button, input, textarea, select { margin: 0; padding: 0; }

/* ---------- 3. Lists & links ---------- */
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; background-color: transparent; }

/* ---------- 4. Media reset (images, video, iframe, etc.) ---------- */
img, picture, video, canvas, svg, iframe, embed, object, audio, source, track { display: block; max-width: 100%; height: auto; border: 0; }
img { vertical-align: middle; }
.content img, .post-content img, .entry-content img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.br img, .bimg img, .bimgl img, .bimglast img, .cover img, .pic1 img, .ad2 img, .pimg img, .pimgs img, bimg img, .smsday img { max-width: 100%; height: auto; }

/* ---------- 5. Typography helpers ---------- */
p, h1, h2, h3, h4, h5, h6, li, a, span, div { word-wrap: break-word; overflow-wrap: break-word; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; }

/* ---------- 6. Tables ---------- */
table { border-collapse: collapse; width: 100%; }
th, td { padding: 8px; border: 1px solid #ddd; text-align: right; }

/* ---------- 7. Clearfix ---------- */
.clearfix::after, .c::after { content: ""; display: table; clear: both; }

/* ---------- 8. Responsive iframe wrapper ---------- */
.responsive-iframe { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.responsive-iframe iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ---------- 9. Form elements base ---------- */
input, textarea, select, button { font-family: inherit; font-size: inherit; line-height: inherit; }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]), textarea, select { width: 100%; }
input, textarea, select { padding: 8px 12px; border: 1px solid #ccc; border-radius: 4px; background-color: #fff; color: #333; font-size: 14px; transition: border-color .2s, box-shadow .2s; margin-bottom: 10px; }
input:focus, textarea:focus, select:focus { border-color: #007cba; box-shadow: 0 0 0 2px rgba(0,124,186,.2); outline: none; }
input:disabled, textarea:disabled, select:disabled { background-color: #f5f5f5; color: #999; cursor: not-allowed; }
::placeholder { color: #999; opacity: 1; }
label { display: inline-block; margin-bottom: 5px; font-weight: 600; }
fieldset { border: 1px solid #ccc; padding: 10px; margin-bottom: 15px; border-radius: 4px; }
legend { padding: 0 5px; font-weight: bold; }

/* ---------- 10. Textarea ---------- */
textarea { resize: vertical; min-height: 100px; }

/* ---------- 11. Select ---------- */
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: left 10px center; background-size: 16px; padding-left: 35px; }

/* ---------- 12. Buttons & submit ---------- */
button, input[type="submit"], input[type="button"], input[type="reset"] { display: inline-block; width: auto; padding: 8px 16px; border: none; border-radius: 4px; background-color: #007cba; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .2s, transform .1s; margin-bottom: 10px; }
button:hover, input[type="submit"]:hover, input[type="button"]:hover, input[type="reset"]:hover { background-color: #006ba1; }
button:active, input[type="submit"]:active, input[type="button"]:active, input[type="reset"]:active { transform: translateY(1px); }
button:disabled, input[type="submit"]:disabled, input[type="button"]:disabled, input[type="reset"]:disabled { background-color: #ccc; color: #666; cursor: not-allowed; }

/* ---------- 13. Checkbox & Radio ---------- */
input[type="checkbox"], input[type="radio"] { width: auto; margin-left: 6px; margin-bottom: 0; vertical-align: middle; }
input[type="checkbox"] + label, input[type="radio"] + label { display: inline-block; margin-bottom: 5px; font-weight: normal; }

/* ---------- 14. File & Color & Range ---------- */
input[type="file"] { padding: 5px; background: #f9f9f9; border: 1px solid #ccc; border-radius: 4px; }
input[type="color"] { padding: 2px; width: 50px; height: 40px; }
input[type="range"] { padding: 0; }

/* ---------- 15. Selection ---------- */
::selection { background: #007cba; color: #fff; }