Quote simulator with options in HTML and CSS
Visitors pick a package and tick options: the pre-tax total, VAT and total including tax update live, and the summary is sent with the contact form.
Here is an excerpt of this component's code in HTML and CSS. The full code is free for members, ready to copy into your project.
This component also comes in
The code in HTML and CSS
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Simulateur de devis à options</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<main class="demo">
<div class="sdo" data-sdo>
<form class="sdo-form" id="sdo-simulateur" action="#sdo-simulateur" novalidate aria-labelledby="sdo-titre" data-sdo-form>document.querySelectorAll("[data-sdo]").forEach((root) => {
const on = (el, type, fn) => el.addEventListener(type, fn);
const offs = [];
const $ = (selector) => root.querySelector(selector);
const form = $("[data-sdo-form]");
const lines = $("[data-sdo-lines]");
const recap = $("[data-sdo-recap]");
const status = $("[data-sdo-status]");
const done = $("[data-sdo-done]");
const model = lines.firstElementChild.cloneNode(true);
const field = (name) => form.elements.namedItem(name);
let submitted = false;:root {
--sdo-scheme: light;
--sdo-card: #fffdf9;
--sdo-text: #1f2a24;
--sdo-muted: #4f5b55;
--sdo-accent: #0f6b5c;
--sdo-on-accent: #ffffff;
--sdo-line: #7d8a83;
--sdo-soft: #eef4f1;
--sdo-error: #b42318;
--demo-bg: #eae6dc;
--demo-text: #1f2a24;Free component: copy it freely, including for commercial projects.
Other forms and inputs components in HTML and CSS
Forms and inputs components in HTML and CSS
A quote request form for tradespeople: the customer describes the work, picks a start date range and attaches up to six site photos, each with a preview, its size and a button to remove it.
- Tailwind
- React
- CSS
- WordPress

A quote request form whose labels, hints and error messages are full French sentences, still readable at 320 px: nothing overflows, nothing is cut off, and each error is tied to its field.
- Tailwind
- React
- CSS
- WordPress

A short NPS survey: a 0 to 10 score as radio buttons, then a follow-up question adapted to whether the customer is a detractor, passive or promoter.
- Tailwind
- React
- CSS
- WordPress

An honest unsubscribe page: address prefilled from the link, choice between stopping everything or receiving less, optional reason and an undo.
- Tailwind
- React
- CSS
- WordPress

A callback request form: French phone number checked and formatted, topic, working day and time slot, with explicit consent to the call.
- Tailwind
- React
- CSS
- WordPress

A SIRET or SIREN field that checks the Luhn key as you type, handles the La Poste exception, formats the number and links to the official business directory.
- Tailwind
- React
- CSS
- WordPress