/* 문의 페이지 양식(Contact Form 7) — 옛 Quform 화면과 같은 모양.
 * 문의 페이지(template-contact.php)에서만 불러온다: functions/contact-form.php */

.ds-cf7 {
	margin-top: 30px;
	color: #666;
	font-size: 13px;
	line-height: 22px;
}

/* 이름·연락처 / 이메일·회사 / 행사·파일 — 두 줄 칸 */
.ds-cf7__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 6.5%;
}

.ds-cf7__field {
	margin-bottom: 13px;
}

.ds-cf7__field--file {
	min-height: 82px;
}

.ds-cf7__label {
	display: block;
	padding-bottom: 4px;
	font-family: 'Nanum Gothic', sans-serif;
	font-size: 13px;
	font-weight: bold;
	line-height: 22px;
	letter-spacing: 0;
	color: #666;
}

/* 운영 Quform 도 '(required)' 를 숨김 */
.ds-cf7__req {
	display: none;
}

.ds-cf7 .wpcf7-form-control-wrap {
	display: block;
	position: relative;
}

.ds-cf7 input[type="text"],
.ds-cf7 input[type="email"],
.ds-cf7 textarea {
	box-sizing: border-box;
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	border: 3px solid #d9d9d9;
	border-radius: 0;
	background: #fff;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 13px;
	color: #999;
	-webkit-appearance: none;
	appearance: none;
}

.ds-cf7 input[type="text"],
.ds-cf7 input[type="email"] {
	height: 44px;
	padding: 10px 4px;
	line-height: 18px;
}

.ds-cf7 textarea {
	height: 160px;
	padding: 4px;
	line-height: 18px;
	resize: vertical;
}

.ds-cf7 input[type="text"]:hover,
.ds-cf7 input[type="email"]:hover,
.ds-cf7 textarea:hover,
.ds-cf7 input[type="text"]:focus,
.ds-cf7 input[type="email"]:focus,
.ds-cf7 textarea:focus {
	border-color: #000;
	outline: none;
	color: #666;
}

/* 파일첨부 — 운영의 'No file selected | Browse...' 모양 */
.ds-cf7 input[type="file"] {
	box-sizing: border-box;
	max-width: 100%;
	height: 24px;
	padding: 0 0 0 0;
	border: 1px solid #c8c8c8;
	border-radius: 4px;
	background: #fff;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	line-height: 22px;
	color: #777;
}

.ds-cf7 input[type="file"]::file-selector-button {
	height: 22px;
	margin: 0 8px 0 0;
	padding: 0 14px;
	border: 0;
	border-right: 1px solid #c8c8c8;
	background: linear-gradient(#fff, #e9e9e9);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	font-weight: bold;
	color: #333;
	cursor: pointer;
}

/* 참고사항 — STYLE / BUDGET / ITEM 가로 배치 */
.ds-cf7__group {
	clear: both;
	padding-bottom: 15px;
}

.ds-cf7__group-title {
	padding: 0 0 5px;
	font-size: 13px;
	font-weight: normal;
}

.ds-cf7__choice {
	display: flex;
	align-items: flex-start;
	padding: 6px 0 7px;
	border-bottom: 1px solid #ddd;
}

.ds-cf7__group-title + .ds-cf7__choice {
	border-top: 1px solid #ddd;
}

.ds-cf7__choice-label {
	flex: 0 0 70px;
	font-family: 'Nanum Gothic', sans-serif;
	font-size: 12px;
	font-weight: bold;
	line-height: 22px;
	color: #f179ae;
}

.ds-cf7__choice .wpcf7-form-control-wrap {
	flex: 1 1 auto;
}

.ds-cf7 .wpcf7-checkbox {
	display: flex;
	flex-wrap: wrap;
	column-gap: 20px;
	row-gap: 8px;
}

.ds-cf7 .wpcf7-list-item {
	margin: 0;
}

.ds-cf7 .wpcf7-list-item label {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	font-family: 'Nanum Gothic', sans-serif;
	font-size: 12px;
	font-weight: bold;
	line-height: 22px;
	color: #666;
	cursor: pointer;
}

.ds-cf7 input[type="checkbox"] {
	box-sizing: border-box;
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	margin: 0;
	border: 1px solid #b5b5b5;
	border-radius: 3px;
	background: linear-gradient(#fff, #e6e6e6);
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.ds-cf7 input[type="checkbox"]:checked {
	border-color: #f179ae;
	background: #f179ae url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.ds-cf7 input[type="checkbox"]:focus-visible,
.ds-cf7 input[type="file"]:focus-visible,
.ds-cf7__submit:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}

.ds-cf7__field--message {
	margin-top: 4px;
}

/* SEND 버튼 */
.ds-cf7__submit-wrap {
	display: flex;
	align-items: center;
	margin-top: 22px;
}

.ds-cf7 input.ds-cf7__submit {
	display: inline-block;
	box-sizing: border-box;
	height: 43px;
	padding: 5px 20px;
	border: 3px solid #d9d9d9;
	border-radius: 0;
	background: #fff;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	font-weight: bold;
	line-height: 27px;
	letter-spacing: 0;
	text-transform: none;
	color: #f179ae;
	cursor: pointer;
}

.ds-cf7 input.ds-cf7__submit:hover {
	border-color: #f179ae;
}

.ds-cf7 .wpcf7-spinner {
	margin: 0 0 0 12px;
}

/* 검증·전송 안내 */
/* style.css 의 옛 CF7 아이콘 모양(!important)을 이 양식에서만 되돌림 */
.ds-cf7 .wpcf7-not-valid-tip {
	position: static;
	top: auto !important;
	left: auto !important;
	width: auto !important;
	height: auto !important;
	padding: 3px 0 0 !important;
	border: 0 !important;
	background: none !important;
	text-indent: 0 !important;
	font-size: 12px;
	line-height: 18px;
	color: #f179ae;
}

.ds-cf7 input.wpcf7-not-valid,
.ds-cf7 textarea.wpcf7-not-valid {
	border-color: #f179ae !important;
}

.wpcf7 form .ds-cf7 .wpcf7-response-output {
	margin: 0 0 20px;
	padding: 0;
	border: 0;
	font-size: 13px;
	color: #f179ae;
}

.wpcf7 form.sent .ds-cf7 .wpcf7-response-output {
	color: #80bb48;
}

/* 좁은 화면 — 한 줄 칸 */
@media screen and (max-width: 1024px) {
	.ds-cf7__choice {
		display: block;
	}

	.ds-cf7__choice-label {
		display: block;
		padding-bottom: 4px;
	}
}

@media screen and (max-width: 480px) {
	.ds-cf7__grid {
		grid-template-columns: 1fr;
	}
}
