/* 상담신청·인재모집 신청서 공통(contact*.html, recruit.html)
   폼 위의 '빠른 상담' 칸과 보내기 단추 아래 안내는 서버(/_sx/site.js)가 .cf 안에 끼운다.
   휴대폰 배치는 사이트 공통과 같은 850px 이하(원본은 750px 이하라 751~850px 에서 폼 오른쪽이 잘렸다). */

.cf { --cf-w: 70vw; width: 770px; margin: 0 auto; }

/* 칸 묶음: PC 두 줄 격자, 휴대폰 이름|칸 한 줄씩 */
.cf-fields { display: flex; flex-wrap: wrap; gap: 30px 40px; margin-top: 45px; }
.cf-row { display: flex; flex-direction: column; width: calc(50% - 20px); gap: 10px; }
.cf-row.is-wide { width: 100%; }
.cf-name { font-size: 18px; font-weight: bold; }

/* 글자 칸 */
.cf-row > input {
	border: 1px solid #ddd; line-height: 55px; box-sizing: border-box; padding-left: 20px; border-radius: 5px; font-size: 18px;
}
.cf input::placeholder, .cf textarea::placeholder { color: #999; }
.cf-row > textarea {
	width: 100%; height: 150px; border: 1px solid #ddd; border-radius: 5px; padding: 10px 20px; box-sizing: border-box; resize: none;
	font-family: 'Noto Sans KR', sans-serif; font-size: 18px; letter-spacing: normal; line-height: normal; color: FieldText;
}

/* 고르는 칸(테두리 상자 안의 단추들) */
.cf-box {
	display: flex; justify-content: center; align-items: center; gap: 30px; width: 100%; height: 55px; box-sizing: border-box;
	border: 1px solid #ddd; border-radius: 5px;
}
.cf-box.is-path { gap: 20px; }
.cf-box label { display: flex; align-items: center; font-size: 18px; }
.cf-box label input { margin-right: 5px; accent-color: #666; }
.cf-etc { display: flex; }
.cf-etc input[type="text"] {
	width: 220px; margin-left: 5px; padding-left: 20px; box-sizing: border-box; border: 1px solid #ddd; border-radius: 5px;
	line-height: 35px; font-size: 18px;
}

.cf-fields hr { width: 100%; height: 1px; border: none; margin: 30px auto; background: #ddd; }

/* 개인정보 수집·이용 동의: 내려 읽는 글 상자 + 동의 단추 */
.cf-agree {
	width: 100%; height: 250px; padding: 20px; margin-top: 40px; box-sizing: border-box; overflow-y: auto;
	border: 1px solid #ddd; border-radius: 5px 5px 0 0;
}
.cf-agree::-webkit-scrollbar { width: 8px; }
.cf-agree::-webkit-scrollbar-thumb { background-color: #ccc; border-radius: 8px; }
.cf-agree h2 { margin-bottom: 20px; font-size: 20px; font-weight: bold; color: #333; }
/* 줄 간격은 바깥 문단(16px·1.45)과 안쪽 글자(155%) 중 큰 쪽 — 휴대폰에서 글자만 작아지고 줄 간격은 그대로 */
.cf-agree p span { font-size: 16px; line-height: 155%; color: #999; }
.cf-consent {
	display: flex; justify-content: center; gap: 60px; width: 100%; height: 65px; box-sizing: border-box;
	border: 1px solid #ddd; border-top: none; border-radius: 0 0 5px 5px;
}
.cf-consent label { display: flex; align-items: center; gap: 5px; font-size: 18px; }
.cf-consent input { width: 24px; height: 24px; accent-color: #666; }

.cf .send-btn {
	display: block; width: 100%; margin-top: 30px; line-height: 50px; background: var(--main);
	font-size: 18px; font-weight: bold; color: #fff; text-align: center; cursor: pointer;
}

@media screen and (max-width: 850px) {
	.cf { width: 89.3333vw; padding: 0 5%; }
	.cf-fields { gap: 2vw; margin-top: 8vw; }
	.cf-row { flex-direction: row; justify-content: space-between; align-items: center; width: 100%; gap: 0; }
	.cf-name { font-size: 3.4667vw; line-height: 1; }

	.cf-row > input {
		width: var(--cf-w); padding-left: 2vw; border-width: .1333vw; border-radius: .6667vw; line-height: 8vw; font-size: 3.4667vw;
	}
	.cf-row > textarea {
		width: var(--cf-w); height: 26.6667vw; padding: 1.6vw 2.6667vw; border-width: .1333vw; border-radius: .6667vw; font-size: 3.4667vw;
	}

	.cf-box {
		justify-content: flex-start; flex-wrap: wrap; gap: 2vw 5vw; width: var(--cf-w); height: auto; padding: 2vw;
		border-radius: .6667vw; font-size: 3.4667vw;
	}
	.cf-box.is-path { flex-wrap: wrap; justify-content: flex-start; gap: 2vw 5vw; height: auto; padding: 2vw; }
	.cf-box.is-path label { white-space: nowrap; }
	.cf-box label { font-size: 3.4667vw; }
	.cf-box label input { width: 3.7333vw; height: 3.7333vw; margin-right: .6667vw; }
	.cf-etc input[type="text"] {
		flex: 1; width: auto; padding-left: 2vw; border-width: .1333vw; border-radius: .6667vw; line-height: 6vw; font-size: 3.4667vw;
	}

	.cf-agree { height: 33.3333vw; padding: 3.3333vw; margin-top: 2vw; border-width: .1333vw; border-radius: .6667vw .6667vw 0 0; }
	.cf-agree::-webkit-scrollbar { width: 1.0667vw; }
	.cf-agree::-webkit-scrollbar-thumb { border-radius: 1.0667vw; }
	.cf-agree h2 { margin-bottom: 3.6667vw; font-size: 3.4667vw; }
	.cf-agree p span { font-size: 2.9333vw; }
	.cf-consent { gap: 6vw; height: 8.6667vw; border-width: .1333vw; border-top: none; border-radius: 0 0 .6667vw .6667vw; }
	.cf-consent label { gap: 1.3333vw; font-size: 3.4667vw; }
	.cf-consent input { width: 3.7333vw; height: 3.7333vw; }

	.cf .send-btn { margin-top: 4vw; line-height: 8vw; font-size: 3.4667vw; }
}
