JSFiddle - React, Tailwind, and code Playground
HTML
<form method="post" id="userForm" action="http://day.hiperportal.blog.br/index.php?option=com_rsform&formId=17">
<div class="form2LinesLayout">
<div class="formField rsform-block rsform-block-tamanhoedredom">
<center><h1>Edredom</h1><h2>Qual tamanho do seu edredom?</h2><br/>
<label for="TamanhoEdredom0" class="padrao edredom edredom_solteiro"><input name="form[TamanhoEdredom]" type="radio" value="Solteiro" id="TamanhoEdredom0" /><i></i></label><label for="TamanhoEdredom1" class="padrao edredom edredom_casal"><input name="form[TamanhoEdredom]" type="radio" value="Casal" id="TamanhoEdredom1" /><i></i></label><label for="TamanhoEdredom2" class="padrao edredom edredom_queen"><input name="form[TamanhoEdredom]" type="radio" value="Queen" id="TamanhoEdredom2" /><i></i></label><label for="TamanhoEdredom3" class="padrao edredom edredom_king"><input name="form[TamanhoEdredom]" type="radio" value="King" id="TamanhoEdredom3" /><i></i></label><label for="TamanhoEdredom4" class="padrao edredom edredom_super_king"><input name="form[TamanhoEdredom]" type="radio" value="Super King" id="TamanhoEdredom4" /><i></i></label><br/>
<center><h2>Quantos edredons <span id="boy"></span> serão?</h2></center>
CSS
.divcentral{
text-align: center;
}
.separador{
width:80%;
height:1px;
background-color:#3498DB;
margin-top: -1px;
margin-left:auto;
margin-right:auto;
line-height:1px;
font-size:1px
}
.input_text [type=text]:focus {
border: 3px solid #3498db;
}
.botao-calcular{
padding: 10px;
border-radius: 15px;
color: #fff;
background: #3498db;
-moz-transition: 0.4s;
-webkit-transition: 0.4s;
transition: 0.4s;
font-size: 15pt;
width:350px;
}
.botao-calcular[type=text]:hover {
background: #1589D6;
}
.botao-enviar{
padding: 10px;
border-radius: 15px;
color: #666;
background: #e6e6e6;
-moz-transition: 0.4s;
-webkit-transition: 0.4s;
transition: 0.4s;
font-size: 20pt;
}
.botao-enviar[type=submit]:hover {
background: #f44c0e;
color:#fff;
}
#valor3x {
padding: 0.5ex;
width: 280px;
font-size: 2em;
border-radius: 15px;
-webkit-transition: width 0.4s;
-moz-transition: width 0.4s;
transition: 0.4s;
margin-left:auto;
margin-right:auto;
}
#valor3x:hover {
background-color: #4AC068;
color: #fff;
border-radius: 50px;
}
#valor1x {
padding: 0.5ex;
width: 280px;
font-size: 2em;
border-radius: 15px;
-webkit-transition: width 0.4s;
-moz-transition: width 0.4s;
transition: 0.4s;
margin-left:auto;
margin-right:auto;
}
#valor1x:hover {
background-color: #3498DB;
color: #fff;
border-radius: 50px;
}
.padrao{
cursor: pointer;
user-select: none;
-webkit-user-select: none;
-webkit-touch-callout: none;
}
.padrao > input[type=radio],input[type=checkbox] { /* HIDE ORG RADIO & CHECKBOX */
visibility: hidden;
position: relative;
}
/* RADIO & CHECKBOX STYLES */
.padrao > i{ /* DEFAULT <i> STYLE */
display: inline-block;
vertical-align: middle;
width: 230px;
height: 275px;
border-radius: 0%;
-webkit-transition: width 0.4s;
-moz-transition: width 0.4s;
transition: 0.4s;
background-size: 100%;
...
JavaScript
$("input[name=form\\[TamanhoEdredom\\]]").click(function () {
$("#boy").text($(this).val());
});
$("input[name=girls]").click(function () {
$("#girl").text($(this).val());
});