form {
	width: 26rem;
	margin: 2rem auto;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	border-radius: 0.2rem;
	background-color: lightsteelblue;
	padding: 2rem;
}

fieldset {
	border: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

label {
	font-weight: 700;
}

legend {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0 0 1rem;
	color: darkslateblue;
}

form div {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

input,
textarea,
select {
	font-size: 1rem;
	padding: 0.5rem;
	border-radius: 0.2rem;
	border: 1px solid gray;
}

.checkbox-wrapper {
	gap: 0.6rem;
}
.checkbox-wrapper label {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.3rem;
	font-weight: 400;
}

input[type="checkbox"],
input[type="radio"] {
	width: 1rem;
	height: 1rem;
}

.description {
	font-style: italic;
	font-size: 0.8rem;
	display: block;
	line-height: 1.4;
}
[data-error] {
	border-right: 0.4rem solid darkred;
	padding-right: 0.8rem;
}

.alt-error-msg {
	display: block;
}
.error-msg[hidden] {
	opacity: 0;
	height: 0px;
	transform: scale(0);
}
.error-msg {
	font-size: 0.8rem;
	font-weight: 700;
	color: darkred;
	transform-origin: left;
	transition: all 200ms;
	display: block;
}
.form-error-msg {
	font-size: 1rem;
	font-weight: 700;
	color: darkred;
	transform-origin: left;
	transition: all 200ms;
	display: block;
	text-transform: uppercase;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
	background-color: lightyellow;
}

button,
input[type="button"],
input[type="submit"] {
	background-color: steelblue;
	color: white;
	padding: 0.6rem 2rem;
	border-radius: 0.4rem;
	border: 1px solid white;
	font-size: 1.2rem;
	text-transform: uppercase;
	margin: 0 auto;
	cursor: pointer;
	transition: all;
}

button:disabled,
input[type="submit"]:disabled {
	background-color: gray !important;
	cursor: default;
}

button:hover {
	background-color: purple;
}
.button-group {
	flex-direction: row;
}

.form-validation-log {
	border: 1px solid orange;
	border-radius: 0.5rem;
	padding: 1rem;
	margin-block-start: 1rem;
	background-color: lightyellow;
}

.form-validation-log table {
	font-size: 0.9rem;
	border-collapse: collapse;
}

.form-validation-log td {
	text-align: center;
	border-top: 1px solid #aaa;
	padding: 0.2rem 0.2rem 0.2rem 0;
}
.form-validation-log td:first-child {
	text-align: left;
}

.form-validation-log th {
	padding: 0.2rem 0.2rem 0.2rem 0;
}

.form-validation-log th:first-child {
	text-align: left;
}

code {
	background-color: rgb(255 255 255 / 0.3);
	padding: 0.2rem 0.3rem;
	font-family: monospace;
	border-radius: 0.3rem;
	font-style: normal;
}

.card {
	border-radius: 0.3em;
	border: 3px solid navy;
	padding: 0.8em;
}
[hidden] {
	display: none;
}
