/**
 * [2026-12-01 신규] 상담신청 /consultation/ (src/legacy/boards/consultation.html, hoJs/consultation.js)
 * 원본 빠른상담 폼(ck_Include/quickConsult.php)의 항목에 백엔드 필수인 '상담 분야'를 더했다.
 */
.subMenuConsult .subConWrap {
	padding-bottom: 140px;
}

.consultForm {
	max-width: 760px;
	margin: 0 auto;
	font-family: 'SUIT', sans-serif;
	color: #222;
}

.consultForm__lead {
	margin-bottom: 40px;
	font-size: 18px;
	line-height: 1.6;
	color: #555;
	text-align: center;
	word-break: keep-all;
}

.consultForm__lead a {
	color: #1c2959;
	font-weight: 700;
}

.consultForm__row {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 16px 0;
	border-bottom: 1px solid #e5e5e5;
}

.consultForm__row:first-of-type {
	border-top: 2px solid #1c2959;
}

.consultForm__label {
	flex: 0 0 120px;
	padding-top: 14px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
}

.consultForm__label em,
.consultForm__agree label em {
	color: #d9534f;
	font-style: normal;
}

.consultForm input[type='text'],
.consultForm input[type='tel'],
.consultForm select,
.consultForm textarea {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	padding: 12px 16px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
	font-family: inherit;
	font-size: 17px;
	line-height: 1.5;
	color: #222;
}

/* 공통 default.css 가 입력칸 높이(30px)·안내 문구(12px)를 고정해 둬서 다시 지정 */
.consultForm input[type='text'],
.consultForm input[type='tel'] {
	height: 51px;
}

.consultForm input::placeholder,
.consultForm textarea::placeholder {
	font-size: inherit;
	color: #aaa;
}

.consultForm select {
	height: 51px;
	-webkit-appearance: none;
	appearance: none;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23666' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center;
	padding-right: 40px;
}

.consultForm textarea {
	resize: vertical;
	min-height: 160px;
}

.consultForm input:focus,
.consultForm select:focus,
.consultForm textarea:focus {
	border-color: #1c2959;
	outline: 2px solid rgba(28, 41, 89, 0.15);
}

.consultForm [aria-invalid='true'] {
	border-color: #d9534f;
}

/* 스팸 방지 칸: 화면·보조기기에서 숨김 (display:none 이면 자동 입력 봇이 건너뛰는 경우가 있어 화면 밖으로) */
.consultForm__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.consultForm__agree {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 24px;
	font-size: 16px;
}

.consultForm__agree input {
	width: 20px;
	height: 20px;
	margin: 0;
}

.consultForm__agree a {
	color: #777;
	text-decoration: underline;
}

.consultForm__message {
	min-height: 24px;
	margin: 20px 0 0;
	font-size: 16px;
	line-height: 1.5;
	text-align: center;
	word-break: keep-all;
}

.consultForm__message.is-error {
	color: #d9534f;
}

.consultForm__message.is-done {
	color: #1c2959;
	font-weight: 700;
}

.consultForm__submit {
	display: block;
	width: 280px;
	height: 60px;
	margin: 24px auto 0;
	border: 0;
	border-radius: 30px;
	background: #1c2959;
	color: #fff;
	font-family: inherit;
	font-size: 20px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s;
}

.consultForm__submit:hover {
	background: #081339;
}

.consultForm__submit[disabled] {
	background: #9aa0b4;
	cursor: default;
}

@media screen and (max-width: 768px) {
	.subMenuConsult .subConWrap {
		padding-bottom: 80px;
	}

	.consultForm {
		padding: 0 5vw;
	}

	.consultForm__lead {
		margin-bottom: 24px;
		font-size: 15px;
	}

	.consultForm__row {
		flex-direction: column;
		gap: 8px;
		padding: 14px 0;
	}

	.consultForm__label {
		flex: none;
		padding-top: 0;
		font-size: 15px;
	}

	.consultForm input[type='text'],
	.consultForm input[type='tel'],
	.consultForm select,
	.consultForm textarea {
		font-size: 16px; /* 16px 미만이면 iOS 가 입력할 때 화면을 확대한다 */
	}

	.consultForm input[type='text'],
	.consultForm input[type='tel'],
	.consultForm select {
		height: 49px;
	}

	.consultForm__agree {
		font-size: 14px;
	}

	.consultForm__message {
		font-size: 14px;
	}

	.consultForm__submit {
		width: 100%;
		height: 54px;
		font-size: 17px;
	}
}
