Нужно при отмеченном checkbox изменить цвет border label , а при неактивном вернуть обратно . Стилями у меня не получается.
<form method="post" action="#" id="calcbasspriamstup">
<input type="checkbox" id="Checkbox1" name="element" value="12000" checked>
<label for="Checkbox1 id="Label1">Обвязка трубами</label>
<input type="checkbox" id="Checkbox2" name="aksessuar" value="15000">
<label for="Checkbox2" id="Label2">Пылесос</label>
<input type="checkbox" id="Checkbox3" name="oborudovanie" value="55000">
<label for="Checkbox3" id="Label3">Фильтр-насос 069</label>
<button type="submit">ОФОРМИТЬ ЗАКАЗ</button>
</form>
<style>
#Label1
{
border: 1px #D2D0D0 solid;
border-radius: 14px;
background-color: transparent;
background-image: url(../images/obviazka.png);
background-repeat: no-repeat;
background-position: center center;
color :#3E3E3E;
font-family: "TT Norms Medium";
font-weight: normal;
font-size: 16px;
padding: 150px 4px 4px 4px;
text-align: center;
vertical-align: top;
}
#Label2
{
border: 1px #D2D0D0 solid;
border-radius: 14px;
background-color: transparent;
background-image: url(../images/pilesos.png);
background-repeat: no-repeat;
background-position: center center;
color :#3E3E3E;
font-family: "TT Norms Medium";
font-weight: normal;
font-size: 16px;
padding: 150px 4px 4px 4px;
text-align: center;
vertical-align: top;
}
#Label3
{
border: 1px #D2D0D0 solid;
border-radius: 14px;
background-color: transparent;
background-image: url(../images/filtr.png);
background-repeat: no-repeat;
background-position: center center;
color :#3E3E3E;
font-family: "TT Norms Medium";
font-weight: normal;
font-size: 16px;
padding: 150px 4px 4px 4px;
text-align: center;
vertical-align: top;
}
input[type='checkbox']:checked + label::before {
border-color: #0063C4 !important;
}
input[type='checkbox']:disabled + label::before {
border-color: #D2D0D0 !important;
}
</style>