/* MSD Forms — matches the look of the WPForms "classic" form it replaces. */

.msd-form-container {
	margin: 24px 0;
	max-width: 100%;
}

.msd-form .msd-field {
	padding: 10px 0;
	margin: 0;
	clear: both;
}

.msd-form fieldset {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.msd-form .msd-field-label {
	display: block;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.3;
	color: #232323;
	margin: 0 0 4px;
	padding: 0;
	float: none;
}

.msd-form .msd-required-label {
	color: #ff0000;
	font-weight: 400;
}

.msd-form .msd-input {
	box-sizing: border-box;
	display: block;
	max-width: 100%;
	height: 32px;
	padding: 3px 6px;
	font-size: 16px;
	line-height: 1.3;
	color: #1e1e1e;
	background-color: #fff;
	border: 1px solid #878787;
	border-radius: 0;
	box-shadow: none;
	margin: 0;
}

.msd-form .msd-input:focus {
	outline: 2px solid #066aab;
	outline-offset: 0;
	border-color: #066aab;
}

.msd-form .msd-size-small { width: 25%; }
.msd-form .msd-size-medium { width: 60%; }
.msd-form .msd-size-large { width: 100%; }

.msd-form .msd-uppercase { text-transform: uppercase; }

.msd-form select.msd-input {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 28px;
	background-image:
		linear-gradient(45deg, transparent 50%, #1e1e1e 50%),
		linear-gradient(135deg, #1e1e1e 50%, transparent 50%);
	background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	cursor: pointer;
}

.msd-form textarea.msd-input {
	width: 100%;
	height: 120px;
	resize: vertical;
}

.msd-form textarea.msd-size-small { height: 70px; }

.msd-form .msd-choices {
	list-style: none;
	margin: 0;
	padding: 0;
}

.msd-form .msd-choices li {
	margin: 0 0 5px;
	padding: 0;
	list-style: none;
}

.msd-form .msd-choices input[type="checkbox"] {
	width: 14px;
	height: 14px;
	margin: 0 6px 0 0;
	vertical-align: middle;
}

.msd-form .msd-field-label-inline {
	display: inline;
	font-size: 16px;
	font-weight: 400;
	vertical-align: middle;
	cursor: pointer;
}

.msd-form .msd-error {
	color: #d63637;
	font-size: 14px;
	font-weight: 400;
	margin-top: 4px;
}

.msd-form .msd-error:empty { display: none; }

.msd-form .msd-has-error .msd-input {
	border-color: #d63637;
}

.msd-form .msd-form-error-summary,
.msd-form .msd-form-message.is-error {
	background: #fdecec;
	border: 1px solid #d63637;
	color: #8a1f1f;
	padding: 10px 14px;
	margin: 0 0 10px;
	font-size: 15px;
}

.msd-form .msd-form-message:empty { display: none; }

.msd-form .msd-field-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.msd-form .msd-submit-container {
	padding: 10px 0 0;
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.msd-form .msd-submit {
	background-color: #010101;
	color: #fff;
	border: 1px solid #158edf;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
	padding: 10px 15px;
	min-height: 38px;
	cursor: pointer;
}

.msd-form .msd-submit:hover { background-color: #2b2b2b; }
.msd-form .msd-submit:focus-visible { outline: 2px solid #066aab; outline-offset: 2px; }
.msd-form .msd-submit[disabled] { opacity: .7; cursor: wait; }

.msd-confirmation {
	background: #e0ffc7;
	border: 1px solid #b4d39b;
	color: #1e1e1e;
	padding: 15px;
	font-size: 16px;
	margin: 0 0 20px;
}

.msd-confirmation p { margin: 0; }

@media (max-width: 600px) {
	.msd-form .msd-size-small,
	.msd-form .msd-size-medium { width: 100%; }
}
