Review form
A client review form with a CSS-only star rating (a radio group that fills left to right), text fields, a consent tick and a submit button, inside a bordered card. Use it on a page where clients leave a review or feedback. Point the form action at your own form service; the stars work without JavaScript.
<section class="blk-section blk-reviewform-band" aria-labelledby="blk-reviewform-title">
<div class="blk-container">
<header class="blk-head">
<div class="blk-head__main">
<h2 id="blk-reviewform-title">Leave a review</h2>
<p>Two minutes is all it takes. Your feedback helps others decide.</p>
</div>
</header>
<form class="blk-form" action="#" method="post">
<fieldset class="blk-field blk-stars">
<legend>Your rating</legend>
<div class="blk-stars__row">
<input type="radio" id="blk-star5" name="rating" value="5" required><label for="blk-star5"><span aria-hidden="true">★</span><span class="blk-sr">5 stars</span></label>
<input type="radio" id="blk-star4" name="rating" value="4"><label for="blk-star4"><span aria-hidden="true">★</span><span class="blk-sr">4 stars</span></label>
<input type="radio" id="blk-star3" name="rating" value="3"><label for="blk-star3"><span aria-hidden="true">★</span><span class="blk-sr">3 stars</span></label>
<input type="radio" id="blk-star2" name="rating" value="2"><label for="blk-star2"><span aria-hidden="true">★</span><span class="blk-sr">2 stars</span></label>
<input type="radio" id="blk-star1" name="rating" value="1"><label for="blk-star1"><span aria-hidden="true">★</span><span class="blk-sr">1 star</span></label>
</div>
</fieldset>
<div class="blk-field">
<label for="blk-rv-name">Your name</label>
<input id="blk-rv-name" name="name" type="text" autocomplete="name" required>
</div>
<div class="blk-field">
<label for="blk-rv-email">Email <span class="blk-field__hint">(never published)</span></label>
<input id="blk-rv-email" name="email" type="email" autocomplete="email" required>
</div>
<div class="blk-field">
<label for="blk-rv-service">What did we help with?</label>
<select id="blk-rv-service" name="service">
<option>Choose one</option>
<option>Service one</option>
<option>Service two</option>
<option>Something else</option>
</select>
</div>
<div class="blk-field">
<label for="blk-rv-text">Your review</label>
<textarea id="blk-rv-text" name="review" rows="6" required></textarea>
</div>
<div class="blk-field blk-field--consent">
<input id="blk-rv-consent" name="consent" type="checkbox" required>
<label for="blk-rv-consent">I am happy for this review to be published with my first name.</label>
</div>
<button class="blk-btn blk-btn--primary" type="submit">Send my review</button>
</form>
</div>
</section>.blk-reviewform-band { background: var(--blk-band-b); }
.blk-form { max-width: 640px; margin-inline: auto; padding: clamp(22px, 4vw, 38px); background: var(--blk-surface); border: 1px solid var(--blk-line); border-radius: var(--blk-radius-lg); box-shadow: var(--blk-shadow); }
.blk-field { margin: 0 0 22px; padding: 0; border: 0; min-inline-size: 0; }
.blk-field label, .blk-field legend { display: block; padding: 0; margin-bottom: 8px; font-family: var(--blk-font-heading); font-weight: 600; font-size: .95rem; color: var(--blk-heading); }
.blk-field__hint { font-weight: 400; font-size: .85rem; color: var(--blk-muted); }
.blk-field input[type="text"], .blk-field input[type="email"], .blk-field select, .blk-field textarea { width: 100%; padding: 12px 14px; font-family: var(--blk-font-body); font-size: 1rem; color: var(--blk-ink); background: var(--blk-surface); border: 1px solid var(--blk-muted); border-radius: var(--blk-radius); }
.blk-field textarea { min-height: 150px; resize: vertical; }
.blk-field input:focus-visible, .blk-field select:focus-visible, .blk-field textarea:focus-visible { outline: 3px solid var(--blk-accent); outline-offset: 2px; border-color: var(--blk-accent); }
.blk-field--consent { display: flex; align-items: flex-start; gap: 10px; }
.blk-field--consent input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blk-accent); }
.blk-field--consent label { margin: 0; font-family: var(--blk-font-body); font-weight: 400; font-size: .94rem; color: var(--blk-ink); }
.blk-stars__row { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.blk-stars input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.blk-stars label { margin: 0; font-size: 2.3rem; line-height: 1; color: var(--blk-line); cursor: pointer; transition: color .12s ease; }
.blk-stars label:hover, .blk-stars label:hover ~ label, .blk-stars input:checked ~ label { color: var(--blk-highlight); }
.blk-stars input:focus-visible + label { outline: 3px solid var(--blk-accent); outline-offset: 3px; border-radius: 3px; }
.blk-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }How to customise it
- Set the form
actionandmethodto your form service. The demo uses#so nothing is sent. - Keep the radio inputs in their current order (5 stars first). The CSS reverses the row so the stars fill left to right.
- Keep a visible label for every field and the consent line. Add or remove text fields by copying a
blk-fieldblock. - Add a hidden spam-trap field on the server side or with your form provider, not with inline styles.
Tokens it reads
--blk-band-b--blk-surface--blk-line--blk-accent--blk-highlight--blk-heading--blk-ink--blk-muted--blk-radius--blk-radius-lg--blk-font-heading--blk-font-body--blk-shadowAdd the "Review form" block from Product Scope Blocks (https://resources.productscope.uk/blocks/blocks/review-form) to my page. Link https://resources.productscope.uk/blocks/blocks/kit/blocks.css once. Paste the HTML from https://resources.productscope.uk/blocks/blocks/kit/blocks/review-form.html and replace the placeholder text with my real content. Do not change the class names, add inline styles or add scripts. To change colours or fonts, override the --blk- variables in my own CSS. Do not invent facts, clients or numbers.