/* JM Inquiry System — default front-end styles. Keep neutral: themes override. */

.jm-form {
	display: block;
	max-width: 100%;
}

.jm-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.jm-form__response {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: 4px;
	border: 1px solid transparent;
}

.jm-form__response p {
	margin: 0;
}

.jm-form__response ul {
	margin: 8px 0 0;
	padding-left: 20px;
}

.jm-form__response--success {
	background: #eef7f1;
	border-color: #bfe0cb;
	color: #1e6b34;
}

.jm-form__response--error {
	background: #fdecec;
	border-color: #f2c3c3;
	color: #97232a;
}

.jm-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.jm-field {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.jm-form__section {
	grid-column: 1 / -1;
	margin-top: 8px;
	padding-top: 20px;
	border-top: 1px solid #dcdcde;
}

.jm-form__section-title {
	margin: 0 0 16px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: #1d2327;
}

.jm-form__section .jm-field__textarea {
	min-height: 96px;
}

.jm-field--full {
	grid-column: 1 / -1;
}

.jm-field__label {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.jm-field__label em {
	color: #b32d2e;
	font-style: normal;
}

.jm-field__input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	font: inherit;
	font-size: 15px;
	line-height: 1.5;
	color: #1d2327;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
}

.jm-field__input:focus {
	border-color: #2271b1;
	outline: 1px solid #2271b1;
}

select.jm-field__input {
	height: 44px;
}

.jm-field__textarea {
	resize: vertical;
	min-height: 120px;
}

.jm-form__upload,
.jm-form__actions {
	margin-top: 20px;
}

.jm-form__hint {
	margin: 6px 0 0;
	font-size: 13px;
	color: #646970;
}

.jm-form__files {
	margin: 10px 0 0;
	padding-left: 20px;
	font-size: 13px;
	color: #1d2327;
}

.jm-form__submit {
	display: inline-block;
	padding: 12px 28px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	background: #1d4f8c;
	border: 1px solid #1d4f8c;
	border-radius: 4px;
	cursor: pointer;
}

.jm-form__submit:hover:not(:disabled) {
	background: #173f70;
}

.jm-form__submit:disabled {
	opacity: 0.7;
	cursor: default;
}

@media screen and (max-width: 600px) {
	.jm-form__grid {
		grid-template-columns: 1fr;
	}
}
