JSFiddle - React, Tailwind, and code Playground
by Sova
HTML
Some page
<script data-sw-partner="1" data-sw-widget="custom-form" data-sw-btn="Узнать стоимость" data-sw-utm="some utm" src="https://d1uw69x4c2zrim.cloudfront.net/js/widgets/custom-form.min.js" async></script>
CSS
* {
box-sizing: border-box;
}
.sw-custom-order-form__form {
display: block;
padding: 15px;
border: solid 1px #ddd;
border-radius: 5px;
max-width: 300px;
margin-top: 15px;
}
.sw-custom-order-form__form > *:not(:last-child) {
margin-bottom: 15px;
}
.sw-custom-order-form__form input, .sw-custom-order-form__form select {
display: block;
padding: 8px 15px;
line-height: 1.8;
width: 100%;
border: 1px solid #ddd;
border-radius: 5px;
color: #3d424d;
font: inherit;
transition: color .25s ease-out,border-color .25s ease-out,background .25s ease-out,background-color .25s ease-out,opacity .25s ease-out;
-webkit-appearance: none;
outline: 0!important;
}
.sw-custom-order-form__form input:focus,
.sw-custom-order-form__form select:focus {
border-color: #ffa726;
}
.sw-custom-order-form__form button {
display: flex;
align-items: center;
border-radius: 3px;
box-shadow: none;
border: 2px solid transparent;
background: transparent;
transition: .25s ease-out;
color: #fff;
line-height: 17px;
white-space: nowrap;
-webkit-tap-highlight-color: transparent;
padding: 10px;
font-size: 16px;
color: white;
background-color: #3598dc;
cursor: pointer;
}
.sw-custom-order-form__form button:hover {
background-color: #60aee4;
}
JavaScript
https://jsfiddle.net/hfmcoyjL/#