@font-face{font-family:Local;src:url('/fonts/vazirmatn.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}*{box-sizing:border-box} :root{--bg:#f3f5f0;--paper:#fff;--ink:#173c36;--muted:#61766d;--line:#dde7df;--green:#226d55;--soft:#e9f2e9;--gold:#a47e36}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.95 Local,Tahoma,Arial,sans-serif}button,input,textarea{font:inherit}button,a,input,label{-webkit-tap-highlight-color:transparent}a{color:var(--green);text-decoration:none}nav{max-width:1180px;margin:auto;padding:25px 32px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:16px}.brand{font-weight:800;font-size:24px;line-height:1.4}.brand span{display:block;font-weight:400;font-size:11px;color:var(--muted);margin-top:5px}.quiet{font-size:13px;color:var(--muted)}main{max-width:890px;margin:auto;padding:36px 22px 50px}main.admin{max-width:1160px}header{padding:20px 0 35px}.eyebrow{font-size:12px;color:var(--green);font-weight:700;letter-spacing:.3px}h1{font-size:clamp(28px,5vw,43px);font-weight:800;line-height:1.65;margin:12px 0}header p{font-size:16px;max-width:720px;color:var(--muted)}h2{font-size:19px;line-height:1.95;margin:0 0 16px}h3{font-size:15px}p{margin:10px 0}.badges{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}.badges span{background:#e5ede3;border:1px solid #d9e4d6;border-radius:30px;padding:4px 13px;font-size:12px}.panel{border:1px solid var(--line);background:var(--paper);border-radius:18px;padding:27px;margin-bottom:22px;box-shadow:0 4px 15px #14322503}.question .eyebrow{margin-bottom:12px}.question h2{font-weight:500}.muted{color:var(--muted)}.small{font-size:12px}.notice{padding:13px 16px;border-radius:10px;background:#f8f5e9;font-size:12px;color:#7c683a;margin:20px 0}.field{display:block;margin:20px 0}.field>input,.field>textarea{display:block;margin-top:8px;width:100%}input:not([type=radio]):not([type=checkbox]),textarea{border:1px solid #cbd9cd;border-radius:9px;background:#fcfdfb;padding:11px 13px;min-width:0;color:var(--ink)}input:focus,textarea:focus{outline:2px solid #81b79b;outline-offset:2px}.check{display:flex;gap:10px;align-items:flex-start;margin:18px 0}.check input{margin-top:9px;accent-color:var(--green);width:17px;height:17px;flex-shrink:0}.progressbar{position:sticky;top:0;z-index:2;background:#f3f5f0f5;backdrop-filter:blur(10px);padding:14px 0 15px;font-size:12px;color:var(--muted)}progress{display:block;width:100%;height:6px;margin-top:8px;accent-color:var(--green)}fieldset{border:0;padding:0;min-width:0;margin:23px 0 28px}fieldset:last-child{margin-bottom:0}legend{padding:0;margin-bottom:13px;font-size:14px}.choices{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.choice{cursor:pointer;position:relative}.choice input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0}.choice>span{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px solid var(--line);border-radius:10px;padding:10px 4px;min-height:85px;background:#fdfefd;transition:background .15s,border-color .15s}.choice span span{font-size:11px}.choice b{font-size:21px;font-weight:500}.choice:hover>span{background:#f2f7f0}.choice input:checked+span{background:#e6f2e8;border:2px solid var(--green);padding:9px 3px}.choice input:focus-visible+span{outline:3px solid #caaa63;outline-offset:2px}button,.button{display:inline-flex;align-items:center;justify-content:center;background:var(--green);color:#fff;padding:10px 21px;border:1px solid transparent;border-radius:9px;cursor:pointer;font-size:14px;line-height:1.8}button:hover,.button:hover{filter:brightness(.94)}button:disabled{opacity:.45;cursor:default}.secondary{background:var(--soft);color:var(--ink);border-color:#d7e4d7}.danger{background:#ad4944;color:white}.actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.end{text-align:center;padding:35px}.end button{min-width:230px;margin-top:12px}.status{color:#a14133;white-space:pre-wrap}.status:empty{display:none}.success{padding:45px;text-align:center}.success code{display:block;background:var(--bg);border-radius:8px;padding:16px;font-size:16px;overflow-wrap:anywhere;margin:24px 0}footer{font-size:11px;color:var(--muted);margin:35px 0;text-align:center}.login{max-width:440px;margin:20px auto 50px}.login button{width:100%;margin:10px 0}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.stats .panel{margin:0}.stats strong{display:block;font-size:31px;font-weight:600;margin-top:12px}.tabs{display:flex;gap:10px;flex-wrap:wrap;margin:28px 0 20px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}.section-head h2{margin:0}#search{flex:1;max-width:500px}.table-wrap{overflow-x:auto;margin:22px 0}table{border-collapse:collapse;width:100%;min-width:600px;font-size:12px}th{text-align:right;font-weight:500;color:var(--muted);background:#f4f7f1}th,td{padding:14px 12px;border-bottom:1px solid var(--line)}td button{font-size:12px;padding:5px 12px}.tracking{font:11px/1.8 monospace;direction:ltr;overflow-wrap:anywhere;max-width:200px}#settingsForm,#passwordForm{max-width:650px}dialog{color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:18px;width:min(850px,94vw);max-height:90vh;padding:26px}dialog::backdrop{background:#112b2470;backdrop-filter:blur(3px)}.detail-question{border-top:1px solid var(--line);padding:12px 0} [hidden]{display:none!important}:focus-visible{outline:3px solid #caaa63;outline-offset:3px}@media(max-width:600px){nav{padding:18px}.brand{font-size:20px}main{padding:20px 13px}.panel{padding:19px;border-radius:13px}header{padding:12px 2px 25px}.choices{gap:4px}.choice>span{min-height:83px;padding:8px 2px}.choice span span{font-size:9px}.choice input:checked+span{padding:7px 1px}legend{font-size:13px}.stats{gap:7px}.stats .panel{padding:13px 9px}.stats span{font-size:10px}.stats strong{font-size:22px}.success{padding:28px 16px}.section-head .button{font-size:12px}}@media print{nav,.actions,.tabs,button,.progressbar,#guide,#survey{display:none!important}body{background:white}main{max-width:none;padding:0}.panel{box-shadow:none}.success{border:0}dialog{position:static;max-height:none}}

.progress-next{margin-top:10px;padding:4px 12px;font-size:12px}fieldset{scroll-margin-top:140px}.question{scroll-margin-top:140px}@media print{#copyStatus{display:none}}

/* Step-by-step questionnaire */
.survey-page{background:radial-gradient(ellipse at top right,#e6efe4 0,transparent 55%),var(--bg);min-height:100svh}
.survey-page nav{max-width:1060px;padding:18px 28px}
.wizard{max-width:820px;padding:24px 22px 16px}
.wizard h1{font-size:clamp(24px,3vw,32px);line-height:1.65;margin:10px 0 12px;letter-spacing:-.5px}
.wizard .panel{padding:26px 30px;margin-bottom:16px;box-shadow:0 12px 40px #173c3605}
.welcome .badges{margin-top:16px;gap:7px}.welcome .badges span{padding:3px 10px}
.guide-copy{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.guide-copy h2{font-size:16px;margin:0 0 6px}.guide-copy p{font-size:14px;line-height:1.95}
.identity-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.identity-fields .field{margin:14px 0 0;font-size:14px;font-weight:500}
.identity-fields input{font-weight:400;background:white}.identity-fields input::placeholder{font-size:13px;color:#7d8c84}
#phone{text-align:left;letter-spacing:.7px}.identity-fields .small{font-weight:400}
.consent{font-size:13px;line-height:1.9;margin:17px 0 8px}.privacy-copy{margin:6px 0 16px;line-height:1.9}
#start{gap:30px;min-width:205px}.journey-meta{display:flex;align-items:center;justify-content:space-between;font-size:13px;gap:10px;margin:0 2px 10px}
#journey>progress{margin:0 0 20px;height:5px}
.wizard .question h2{font-size:18px;font-weight:600;line-height:1.95;margin:0;padding-bottom:18px;border-bottom:1px solid var(--line)}
.wizard fieldset{margin:18px 0}.wizard fieldset:last-child{margin-bottom:0}
.wizard legend{font-size:15px;line-height:1.9;margin-bottom:12px}
.wizard .choice>span{min-height:70px;padding:8px 4px}
.wizard .choice span span{font-size:12px;line-height:1.7}.wizard .choice b{font-size:22px;font-weight:600}
.wizard .choice input:checked+span{padding:7px 3px;box-shadow:0 2px 8px #226d550c}
.wizard-bottom{display:flex;flex-direction:column;gap:10px}.wizard-actions{display:flex;align-items:center;justify-content:space-between;gap:14px}
.wizard-actions button{min-width:124px;min-height:46px}
.save-status{font-size:12px;color:var(--muted);margin:0;min-height:24px;line-height:1.8}
.save-status[data-kind=saved]{color:var(--green)}.save-status[data-kind=pending]{color:#8b5d23}
.wizard footer{margin:20px 0 0;font-size:12px}.wizard .status{font-size:13px;padding:10px 14px;background:#fff0e9;border-radius:10px;margin:0 0 14px}
.review dl{background:var(--bg);padding:15px 20px;border-radius:12px}.review dt{color:var(--muted);font-size:12px}.review dd{margin:2px 0 14px;font-size:16px}.review dd:last-child{margin-bottom:0;text-align:right}
.success-mark{display:grid;place-items:center;margin:0 auto 15px;width:58px;height:58px;border-radius:50%;background:var(--soft);color:var(--green);font-size:30px}
.receipt-actions{justify-content:center}.badge-status{display:inline-block;padding:3px 9px;border-radius:30px;font-size:11px;white-space:nowrap;background:#fff3dd;color:#865a18}.badge-status.completed{background:var(--soft);color:var(--green)}
.admin .stats{grid-template-columns:repeat(5,1fr)}.admin .stats span{font-size:12px}.admin .stats strong{font-size:26px}
select{font:inherit;color:var(--ink);padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:var(--paper)}.phone-cell{direction:ltr;white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}
@media(max-width:600px){
 .survey-page nav{padding:13px 18px}.survey-page .brand{font-size:21px}.survey-page .brand span{font-size:10px}
 .wizard{padding:16px 13px}.wizard .panel{padding:20px 17px}.wizard h1{font-size:24px}
 .welcome .badges span{font-size:10px}.guide-copy{margin-top:14px;padding-top:12px}
 .identity-fields{gap:10px}.identity-fields .field{font-size:12px}.identity-fields input{padding:10px 9px;font-size:14px}.identity-fields input::placeholder{font-size:11px}
 .identity-fields .small{font-size:10px}.consent{font-size:12px}.privacy-copy{font-size:11px}
 .journey-meta{font-size:12px}#journey>progress{margin-bottom:14px}
 .wizard .question h2{font-size:16px;line-height:1.9;padding-bottom:14px}.wizard legend{font-size:14px}
 .wizard .choices{gap:5px}.wizard .choice>span{min-height:68px;padding:7px 2px}.wizard .choice span span{font-size:10px}.wizard .choice input:checked+span{padding:6px 1px}
 .wizard fieldset{margin:16px 0}.wizard legend{margin-bottom:10px}.wizard .choice b{font-size:20px}
 .admin .stats{grid-template-columns:repeat(2,1fr)}.admin .stats .panel:last-child{grid-column:1/-1}.admin .stats strong{font-size:24px}.save-status{font-size:11px}
}
@media(max-width:350px){.identity-fields{grid-template-columns:1fr}.wizard .choice span span{font-size:9px}}
@media print{.survey-page nav,.wizard footer,#journey,#welcome,.receipt-actions{display:none!important}.wizard .success{box-shadow:none}.wizard .success h1{font-size:24px}}

.wizard .choice{display:flex}.wizard .choice>span{width:100%}

.save-row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.save-row .save-status{flex:1;min-width:180px}.identity-edit{background:transparent;color:var(--green);padding:4px 0;font-size:12px;text-decoration:underline;text-underline-offset:4px;white-space:nowrap}

/* Small feedback before the automatic transition; direction is handled in app.js. */
.ready-to-advance .question{border-color:#82b49b;box-shadow:0 0 0 3px #226d5509,0 12px 40px #173c3605;transition:border-color .2s,box-shadow .2s}
.wizard .choice input:checked+span{animation:answer-selected .22s ease-out}
@keyframes answer-selected{0%{transform:scale(.96)}65%{transform:scale(1.025)}100%{transform:scale(1)}}
#progress::-webkit-progress-value{transition:width .25s ease}
@media(prefers-reduced-motion:reduce){.survey-page .choice>span,.ready-to-advance .question,#progress::-webkit-progress-value{animation:none!important;transition:none!important}}

.raw-scores{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:18px;margin:20px 0}.raw-scores h3{margin-top:0}.score-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.score-grid strong{display:block;font-size:24px;font-variant-numeric:tabular-nums}@media(max-width:450px){.score-grid{grid-template-columns:1fr}.score-grid strong{font-size:22px}}
