button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    margin: 0;
    box-sizing: border-box;
}

button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

textarea {
    overflow: auto;
}

[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

:root {
    --form-ui-bg: #fff;
    --form-padding: 0.25rem 1rem;
    --form-height: 38px;
    --form-radius: 0;
    --form-border: solid 1px #aaa;
    --form-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
input[type="datetime"],
input[type="datetime-local"],
input[type="time"],
input[type="month"],
input[type="week"],
input[type="url"],
input[type="number"],
input[type="search"],
input[type="file"],
select {
    max-width: 100%;
    padding: var(--form-padding);
    line-height: 1;
    font-family: inherit;
    border-radius: var(--form-radius);
    background-color: var(--form-ui-bg);
    box-shadow: var(--form-box-shadow);
    border: var(--form-border);
    height: var(--form-height);
    margin: 0 0 0.75rem 0;
    transition: background .2s ease-in-out, border-color .2s ease-in-out, box-shadow .2s ease-in-out;
}

select {
    padding-right: 2rem;
    appearance: none;
    background-image: url('data:image/svg+xml, <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:serif="http://www.serif.com/" width="100%" height="100%" viewBox="0 0 24 24" version="1.1" xml:space="preserve"><path d="M2.586,7.586c0.781,-0.781 2.047,-0.781 2.828,-0l6.586,6.586l6.586,-6.586c0.781,-0.781 2.047,-0.781 2.828,-0c0.781,0.781 0.781,2.047 0,2.828l-8,8c-0.781,0.781 -2.047,0.781 -2.828,0l-8,-8c-0.781,-0.781 -0.781,-2.047 -0,-2.828Z" style="fill: rgb(80, 80, 80); fill-rule:nonzero;" /></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px 12px;
}

textarea {
    padding: var(--form-padding);
    display: block;
    margin: 0;
    height: 8rem;
    border-radius: var(--form-radius);
    background-color: var(--form-ui-bg);
    box-shadow: var(--form-box-shadow);
    border: var(--form-border);
    margin-bottom: 0.75rem;
    width: 100%;
}

input[type="submit"],
input[type="button"],
button,
.button {
    background: var(--wp--preset--color--primary);
    color: #fff;
    border: none;
    font-size: 1rem;
    line-height: 1;
    text-transform: uppercase;
    text-align: center;
    vertical-align: middle;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    position: relative;
    font-family: inherit;
    text-decoration: none;
    padding-top: 1rem;
    padding-right: 2.25rem;
    padding-bottom: 1rem;
    padding-left: 2.25rem;
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

::placeholder {
    color: #888;
    font-style: italic;
}

input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    border-color: var(--wp--preset--color--accent);
}

input[type="number"] {
    appearance: textfield;
}

input[type="file"] {
    height: var(--form-height);
    padding: 0;
    vertical-align: middle;
    position: relative;
    cursor: pointer;
    display: block;
}

input[type="file"]::-webkit-file-upload-button {
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: var(--wp--preset--color--accent);
    border-radius: var(--form-radius);
    padding: 0.3rem 1rem;
    outline: none;
    white-space: nowrap;
    color: #fff;
    -webkit-user-select: none;
    cursor: pointer;
    margin: 4px 12px 4px 4px;
}

input[type="checkbox"],
input[type="radio"] {
    appearance: none;
    background-color: transparent;
    border: var(--form-border);
    border-radius: var(--form-radius);
    height: 22px;
    overflow: hidden;
    position: static;
    vertical-align: text-bottom;
    width: 22px;
    cursor: pointer;
    margin: 0 8px 0 0;
}

input[type="checkbox"] {
    border-radius: 4px;
}

input[type="radio"] {
    border-radius: 50%;
}

input[type="radio"]:checked {
    box-shadow: inset 0 0 0 5px #fff;
    background: var(--wp--preset--color--accent);
    border-color: var(--wp--preset--color--accent);
}

input[type="checkbox"]:checked {
    content: url('data:image/svg+xml, <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:serif="http://www.serif.com/" width="100%" height="100%" viewBox="0 0 100 100" version="1.1" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"> <g transform="matrix(0.168714,0,0,0.168714,15.8126,15.8125)"> <path d="M393.401,124.425L179.603,338.208C163.771,354.043 138.089,354.043 122.242,338.208L11.878,227.836C-3.96,212.001 -3.96,186.316 11.878,170.478C27.719,154.637 53.399,154.637 69.233,170.472L150.931,252.171L336.037,67.064C351.878,51.223 377.56,51.235 393.395,67.064C409.23,82.902 409.23,108.578 393.401,124.425Z" style="fill:white;fill-rule:nonzero;"/> </g></svg>');
    background: var(--wp--preset--color--accent);
    border-color: var(--wp--preset--color--accent);
}

input[type="range"] {
    -webkit-appearance: none;
    min-width: 250px;
    max-width: 100%;
    height: 10px;
    border-radius: 1rem;
    background: var(--form-ui-bg);
    box-shadow: var(--form-box-shadow);
    border: var(--form-border);
    outline: none;
    padding: 0;
    margin: 1rem 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--wp--preset--color--accent);
    border: none;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    border: none;
    background: var(--wp--preset--color--accent);
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb:hover,
input[type="range"]:active::-webkit-slider-thumb {
    background: var(--wp--preset--color--accent);
}

input[type="range"]::-moz-range-thumb:hover,
input[type="range"]:active::-moz-range-thumb {
    background: var(--wp--preset--color--accent);
}