@font-face {
    font-family: Vazirmatn;
    src: url("vazirmatn.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}
:root {
    color-scheme: light;
    --ink: #172f2a;
    --muted: #4b625b;
    --green: #164b3c;
    --border: #d7e3dd;
    --soft: #edf5f0;
    --error: #9c2d30;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font: 16px/1.8 Vazirmatn, Tahoma, sans-serif;
    color: var(--ink);
    background: radial-gradient(ellipse at top, #eaf3eb, #f8faf7 70%) fixed;
}
a { color: var(--green); text-underline-offset: .22em; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #347f69; outline-offset: 3px; }
.shell { width: min(760px, calc(100% - 32px)); margin-inline: auto; }
.shell.wide { width: min(1020px, calc(100% - 32px)); }
.shell.narrow { width: min(480px, calc(100% - 32px)); }
.top { background: #fff; border-bottom: 1px solid var(--border); }
.top-inner, .steps, .actions, .choices, .search { display: flex; align-items: center; gap: 14px; }
.top-inner { min-height: 68px; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--green); color: white; border-radius: 10px; }
main { padding-block: 36px 64px; }
.steps { justify-content: center; margin-bottom: 22px; color: var(--muted); font-size: .9rem; }
.steps span { display: flex; align-items: center; gap: 8px; }
.steps b { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 50%; }
.steps [aria-current] { color: var(--green); font-weight: 800; }
.steps [aria-current] b { background: var(--green); color: white; }
.step-line { width: min(7vw, 56px); border-bottom: 1px solid #aac2b6; }
.card { overflow: hidden; background: white; border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 16px 54px #133e2710; }
.hero { position: relative; background: linear-gradient(125deg, #153e33, #1b5643); color: #fff; padding: 28px 34px; }
.hero a, .hero p { color: #e0eee6; }
.arch { display: grid; place-items: center; width: 39px; height: 47px; font-size: 1.3rem; border: 1px solid #e6d5aa80; color: #f3dfb0; border-radius: 48% 48% 4px 4px; margin-bottom: 10px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.7rem, 5vw, 2.45rem); line-height: 1.45; }
.hero p { margin-top: 5px; }
h2 { font-size: 1.12rem; margin-bottom: 12px; }
.body { padding: 30px 34px 34px; }
.terms { color: var(--muted); border-inline-start: 3px solid #a9c8b7; padding-inline-start: 14px; }
.terms p + p { margin-top: 8px; }
.agreement { display: flex; gap: 10px; align-items: center; padding: 13px 15px; background: var(--soft); border-radius: 10px; margin-top: 24px; cursor: pointer; }
.actions { margin-top: 24px; flex-wrap: wrap; }
button { border: 0; border-radius: 9px; background: var(--green); color: white; padding: 9px 18px; cursor: pointer; white-space: nowrap; font-weight: 700; }
button:hover { background: #22624f; }
button span { margin-inline-start: 8px; }
.subtle { color: var(--green); font-size: .9rem; }
button.subtle { background: var(--soft); }
.label, legend { display: block; font-weight: 650; margin-bottom: 6px; }
input:not([type=checkbox],[type=radio],[type=file]) { width: 100%; padding: 8px 11px; border: 1px solid #b9cec3; border-radius: 8px; color: var(--ink); background: #fff; }
input[type=checkbox], input[type=radio] { accent-color: var(--green); width: 17px; height: 17px; flex: 0 0 auto; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 22px; }
.stack { display: grid; gap: 16px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices label { display: flex; gap: 5px; align-items: center; }
hr { border: 0; border-top: 1px solid var(--border); margin-block: 24px; }
.hint { color: var(--muted); margin: -5px 0 12px; font-size: .9rem; }
.upload { border: 1px dashed #9ab8a9; border-radius: 10px; background: #f6faf7; padding: 12px; }
input[type=file] { max-width: 100%; font-size: .83rem; }
input::file-selector-button { font: inherit; background: var(--soft); border: 1px solid var(--border); padding: 4px 8px; border-radius: 6px; cursor: pointer; }
.error { display: block; color: var(--error); margin-top: 4px; }
.notice { padding: 9px 12px; background: #fff1ee; border-radius: 8px; margin-bottom: 14px; }
.search { flex-wrap: wrap; }
.search input { flex: 1 1 180px; }
.table-wrap { overflow-x: auto; margin-top: 20px; }
table { width: 100%; border-collapse: collapse; text-align: start; white-space: nowrap; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: start; }
th { background: var(--soft); }
.details { margin: 0; }
dt { color: var(--muted); font-size: .88rem; }
dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.attachment { display: grid; gap: 6px; border: 1px solid var(--border); border-radius: 10px; padding: 10px; text-align: center; }
.attachment img { width: 100%; height: 190px; object-fit: contain; background: var(--soft); border-radius: 6px; }
@media (max-width: 560px) {
    main { padding-block: 24px 40px; }
    .hero, .body { padding: 22px 18px; }
    .grid { grid-template-columns: 1fr; }
}
