One cohort. A clearly bounded quote.

HTML for this example

Select the code and use your copy shortcut. Changes in this preview are temporary.

<!doctype html>
<html lang="en-US"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>One cohort. A clearly bounded quote.</title><style>*{box-sizing:border-box}body{margin:0;background:#f3f4f2;color:#202c32;font:16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}main{max-width:1120px;margin:auto;padding:30px 28px 60px}header{margin-bottom:22px}.eyebrow{font-size:12px;letter-spacing:.14em;text-transform:uppercase;font-weight:750;color:#59676b}h1{font-size:clamp(25px,4vw,36px);line-height:1.15;letter-spacing:-.035em;margin:7px 0 10px}h2{font-size:21px;line-height:1.3;margin:0 0 16px}h3{font-size:17px;margin:0 0 10px}p{margin:8px 0 16px}label{display:block;font-size:14px;font-weight:650;margin:12px 0 5px}input,select,textarea,button{font:inherit}input,select,textarea{width:100%;min-width:0;border:1px solid #b6c0bf;border-radius:7px;background:#fff;color:#202c32;padding:10px 12px}textarea{resize:vertical;min-height:88px}input[type=checkbox]{width:18px;height:18px;vertical-align:middle;margin-right:8px}button{border:1px solid #b8c3c1;border-radius:7px;padding:10px 15px;background:#fff;color:#203632;font-weight:650;cursor:pointer}button.primary{background:#243f3c;color:white;border-color:#243f3c}button:hover{filter:brightness(.95)}button:disabled{opacity:.48;cursor:not-allowed}:focus-visible{outline:3px solid #b05814;outline-offset:3px}.buttons{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.panel{background:#fff;border:1px solid #d7ddda;border-radius:12px;padding:24px}.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:22px}.row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.result{background:#e4eee8;border:1px solid #c5d6ca;border-radius:12px;padding:28px}.big{font-size:clamp(32px,5vw,56px);font-weight:740;line-height:1.14;letter-spacing:-.04em;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.muted{color:#59686a;font-size:14px}.tag{display:inline-block;background:#edf0ed;border-radius:4px;padding:3px 8px;font-size:12px;font-weight:700}.error{color:#9d301b;font-weight:650;min-height:24px;margin-top:10px}.note{border-left:3px solid #9a794a;padding:10px 15px;background:#faf5e9;margin:18px 0}.below{margin-top:28px}.record{white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;background:#f2f4f1;padding:18px;border-radius:8px}table{width:100%;border-collapse:collapse;font-size:14px}th,td{text-align:left;vertical-align:top;border-bottom:1px solid #dce1dd;padding:12px 10px;overflow-wrap:anywhere}th{color:#59686a;font-size:12px}a{color:#2c5a6a;overflow-wrap:anywhere}details{margin-top:20px}summary{cursor:pointer;font-weight:650}hr{border:0;border-top:1px solid #d6dcd6;margin:22px 0}[hidden]{display:none!important}ol,ul{padding-left:23px}.statline{display:flex;gap:20px;flex-wrap:wrap;margin:18px 0}.statline strong{display:block;font-size:24px}.inline{display:flex;align-items:center;gap:8px}.inline label{margin:0} .blank{min-height:36px;border-bottom:1px dashed #aebbb5;color:#66736d;font-size:13px;padding:8px 0}@media(max-width:720px){main{padding:22px 18px 45px}.split{grid-template-columns:1fr}.panel,.result{padding:20px}.row{gap:12px}th,td{padding:10px 6px}}@media(max-width:400px){main{padding:18px 14px 40px}.big{font-size:34px}button{padding:10px 12px}.row{grid-template-columns:1fr}.panel,.result{padding:17px}}.strip{display:flex;gap:18px;justify-content:space-between;align-items:center;flex-wrap:wrap}.inline{flex-wrap:wrap}.metric{font-size:clamp(28px,4vw,43px);font-weight:750;line-height:1.2;letter-spacing:-.025em;font-variant-numeric:tabular-nums}.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.caption{font-size:13px;color:#59686a}.gameBoard{display:grid;gap:2px;background:#bbc9c3;border:8px solid #213e3a;border-radius:8px;overflow:hidden}.cell{aspect-ratio:1;background:#f2f6ee;text-align:center;display:grid;place-items:center;font-size:clamp(10px,2vw,17px);line-height:1}.cell.head{background:#233f39;color:white}.cell.body{background:#608c71;color:#fff}.cell.food{background:#f0c17b;color:#54370d}.cell.active{background:#e6b677;color:#342510}.cell.fixed{background:#53798a;color:white}.gameArea{max-width:700px;margin:auto}.scorebar{display:flex;gap:22px;flex-wrap:wrap;margin-bottom:15px}.scorebar strong{font-size:26px;display:block}.gameControls{display:grid;gap:8px;align-content:start}.gameControls button{padding:9px 8px}.boardSplit{display:grid;grid-template-columns:minmax(0,1fr) 130px;gap:18px;align-items:start}.state{font-weight:700;min-height:26px}button[aria-pressed=true]{background:#243f3c;color:white}.gameArena:focus-visible{outline-offset:8px}svg{max-width:100%;height:auto}.paper{aspect-ratio:3/4;width:min(100%,250px);margin:auto;background:#fff;border:1px solid #b6bfb8;box-shadow:0 5px 18px #20352e12}.paperCaption{text-align:center;font-size:13px}.sectionline{border-top:1px solid #c8d2cb;padding-top:18px}.warn{background:#fbecd2;color:#76521e;padding:12px 15px;border-radius:6px}.docGrid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:24px}.readout{font-family:ui-monospace,monospace}.sourceLinks{font-size:13px;margin-top:18px}.sourceLinks a{margin-right:12px}.answerLine{font-size:21px;font-weight:700}.keypad{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.keypad button{min-height:43px;padding:8px 5px}textarea{overflow-wrap:anywhere}@media(max-width:720px){.docGrid{grid-template-columns:1fr}.three{grid-template-columns:1fr}.gameArea{max-width:540px}.boardSplit{gap:12px;grid-template-columns:minmax(0,1fr) 112px}}@media(max-width:400px){.boardSplit{grid-template-columns:minmax(0,1fr) 96px;gap:9px}.gameControls button{font-size:13px}.gameBoard{border-width:5px;gap:1px}.keypad{gap:5px}.scorebar{gap:16px}.scorebar strong{font-size:22px}}</style></head><body><main><header><div class="eyebrow">Training quotation / Fictional paper-labeling workshop</div><h1>One cohort. A clearly bounded quote.</h1></header>
<section class="result"><div class="strip"><div><span class="eyebrow" id="resultLabel">Known base service subtotal</span><div class="big" id="answer">$300.00</div></div><div><strong id="scope">10 participants / capacity 12</strong><p id="hours" class="muted">4 proposed service hours; 2 hours live</p></div></div><p class="caption">Illustrative single-cohort scope; commercial terms and actual provider confirmation remain open.</p></section>
<div class="docGrid below"><section class="panel"><h2>Proposed services</h2><table><thead><tr><th>Service</th><th>Basis</th><th>Known charge</th></tr></thead><tbody><tr><td>Preparation</td><td>2 h × $60</td><td>$120</td></tr><tr><td>Live workshop</td><td>2 h × $90</td><td>$180</td></tr><tr><td>Original printable exercises and key</td><td>Planned, included</td><td>Included</td></tr><tr><td>Optional follow-up</td><td>1 h × $60</td><td id="optionCharge">Not selected</td></tr></tbody></table><p id="reference" class="muted">The price is per stated cohort, not per seat.</p></section>
<form id="form" class="panel" novalidate><h2>Check this cohort</h2><label for="count">Participants (whole count)</label><input id="count" value="10" inputmode="numeric"><label for="follow"><input id="follow" type="checkbox">Include one hour of follow-up ($60)</label><div class="buttons"><button class="primary">Check scope and subtotal</button><button type="button" id="restore">Restore example</button></div><p id="feedback" class="error" role="status"></p><p class="muted">The optional hour is a separate follow-up service. It does not increase the workshop capacity or live-session duration.</p></form></div>
<section class="panel below"><h2>Complete the provider brief</h2><div class="row"><div><label for="quoteId">Actual quote ID and revision</label><input id="quoteId" placeholder="TO CONFIRM"></div><div><label for="parties">Actual client and provider</label><input id="parties" placeholder="TO CONFIRM"></div></div><p class="muted">Currency: USD in this fictional example. Keep the final quotation in the client’s required PDF or DOCX workflow.</p><div class="row"><div><label for="audience">Audience and objective</label><textarea id="audience" placeholder="TO CONFIRM"></textarea></div><div><label for="rule">Supplied labeling rule / materials reference</label><textarea id="rule" placeholder="TO CONFIRM"></textarea></div><div><label for="delivery">Format, date, location and access needs</label><textarea id="delivery" placeholder="TO CONFIRM"></textarea></div><div><label for="terms">Travel, tax, validity and commercial terms</label><textarea id="terms" placeholder="TO CONFIRM"></textarea></div></div><div class="row"><div><label for="criterion">Expected exercise output and teacher-review criterion</label><textarea id="criterion" placeholder="TO CONFIRM before preparing the packet"></textarea></div><div><label for="followBrief">Follow-up scope, supplied work and recipients</label><textarea id="followBrief" placeholder="TO CONFIRM if the option is selected"></textarea></div></div><label for="approval">Actual provider / approval reference</label><input id="approval"><p class="muted">No booking, acceptance, completed exercise pack, attendance, competence or certificate is established. More than 12 people requires a new scope and provider price.</p><a href="https://www.cdc.gov/training-development/php/about/assess-training-needs-conducting-needs-analysis.html">Training needs and resource planning reference</a></section><footer class="below muted">Local working example. Edits last only while this page is open.</footer></main><script data-app>
(()=>{
const $=id=>document.getElementById(id),text=(id,v)=>$(id).textContent=String(v),on=(id,e,f)=>$(id).addEventListener(e,f);const esc=s=>String(s).replace(/[&<>"']/g,c=>({'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;',"'":'&#39;'}[c]));function download(name,content,type='text/plain'){const u=URL.createObjectURL(new Blob([content],{type})),a=document.createElement('a');a.href=u;a.download=name;document.body.append(a);a.click();a.remove();setTimeout(()=>URL.revokeObjectURL(u),1000)};

function quote(count,follow){if(!Number.isInteger(count)||count<1||count>1000)throw Error('Enter a whole participant count from 1 to 1,000.');return {inScope:count<=12,reference:300+(follow?60:0),price:count<=12?300+(follow?60:0):null,serviceHours:4+(follow?1:0),liveHours:2}}
function clear(){text('answer','Recheck needed');text('scope','Inputs changed');text('hours','');text('optionCharge','Recheck needed');text('reference','');text('feedback','Check the changed scope before using a subtotal.')}
function update(){clear();try{const s=$('count').value.trim();if(!/^[0-9]+$/.test(s))throw Error('Enter a whole participant count. Blank is missing.');const n=+s,f=$('follow').checked,r=quote(n,f);text('answer',r.inScope?'$'+r.price.toFixed(2):'Requote needed');text('resultLabel',r.inScope?'Known service subtotal':'Capacity exceeded');text('scope',n+' participants / capacity 12');text('hours',r.inScope?r.serviceHours+' proposed service hours; 2 hours live':'No valid final price for this headcount');text('optionCharge',f?'$60':'Not selected');text('reference',r.inScope?'The subtotal covers the stated single-cohort scope.':'Original-scope reference only: $'+r.reference.toFixed(2)+'. It is not a quote for '+n+' people.');text('feedback',r.inScope?'Known subtotal only; provider scope and commercial terms remain unconfirmed.':'Ask the provider to define and price the expanded scope. Follow-up does not resolve the participant cap.')}catch(e){text('feedback',e.message)}}
on('form','submit',e=>{e.preventDefault();update()});['count','follow'].forEach(id=>on(id,'input',clear));on('restore','click',()=>{$('count').value='10';$('follow').checked=false;update()});window.app={quote,update};update();
})();
</script>
<script>
// Local calculation controls: no native form submission or sandbox permissions required.
(()=>{const form=document.getElementById('form');if(!form)throw Error('Calculation form missing');const dispatch=()=>form.dispatchEvent(new Event('submit',{bubbles:true,cancelable:true}));const buttons=[...form.querySelectorAll('button')].filter(button=>button.type==='submit');if(buttons.length!==1)throw Error('Expected one calculation control');for(const button of buttons){button.type='button';button.addEventListener('click',dispatch);}form.addEventListener('keydown',event=>{if(event.key==='Enter'&&!event.isComposing&&['INPUT','SELECT'].includes(event.target.tagName)){event.preventDefault();dispatch();}});})();
</script>
</body></html>