form {
    width: 100%;
}

button, label {
    font-family: 'Kanit', sans-serif;
    font-weight: bold;
}

input,
button,
textarea,
select,
option {
	border-radius: 0;
    font-weight: bold;
    font-size: 1rem;
    padding: 0.2rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    margin-left: 0;
    margin-right: 0.2rem;
}

input[type=text],
input[type=date],
select,
textarea {
    background-color: var(--light);
    border-width: 0 0 0 0.2rem;
    border-color: var(--secondary-light);
    border-style: solid;
    padding-left: 0.75rem;
    padding-top: 0.6rem;
    outline: none;
}

input[type=text]:focus,
input[type=date]:focus,
textarea:focus {
    border-color: var(--secondary-dark);
}

input[type=text][class*=input-invalid],
input[type=date][class*=input-invalid],
textarea[class*=input-invalid] {
    border-color: var(--red);
    border-width: 0 0 0 0.2rem;
    background-color: var(--red-light);
}

button {
    color: black;
    background-color: var(--light);
    position: relative;
    top: 0;
    margin-left: 0;
    margin-right: 0;
    padding: 0.25rem;
    font-size: 1.25rem;
    border: none;
    border-color: var(--dark);
    box-shadow: 0 0.2rem 0 var(--dark);
    transition-property: box-shadow, border-radius, top;
    transition-duration: 0.1s;
    transition-timing-function: linear;
    border-radius: 0;
}

button:hover {
	box-shadow: 0 0.2rem 0.5rem var(--dark);
    border-radius: 0.5rem;
}

button:active {
    top: 0.1rem;
}

.icon-button,
.icon-button:hover {
	border: none;
	background: none;
	box-shadow: none;
	margin: 0;
	padding: 0;
	font-size: 1rem;
}

option, optgroup option {
	font-weight: bold;
}

optgroup {
	font-weight: normal;
	font-size: 0.75rem;
	font-style: normal;
	color: var(--gray);
}

label {
    font-weight: bold;
    margin-bottom: 0;
}

label[class*=input-text-label] {
    position: relative;
    overflow: visible;
    width: 0;
    height: 0;
    display: block;
    white-space: nowrap;
    left: 1.5rem;
    color: black;
    font-weight: bold;
    font-size: 0.75rem;
}

label[class*=required]::after {
    display: inline-block;
    margin-left: 0.2rem;
    content: "*";
    color: var(--red)
}

.form-error {
	color: var(--red);
}

.form-message {
	color: var(--green);
}