/* F2 聯絡表單（Contact Form 7） */
.f2cf {
	--f2cf-bg: #eee;
	--f2cf-field: #eee;
	--f2cf-width: 735px;
	background: var(--f2cf-bg);
	color: var(--f2vc-text);
	padding: 87.75px 0;
}
.f2cf .f2vc-heading { text-align: center; margin-bottom: 36px; }
.f2cf .f2vc-decor-line::after { margin: 0 auto; }
.f2cf-intro {
	margin: 0 0 40px;
	text-align: center;
	font-size: 18px;
	line-height: 1.75;
	letter-spacing: .03em;
	color: var(--f2vc-body);
}
.f2cf-form {
	max-width: var(--f2cf-width);
	margin: 0 auto;
}
.f2cf-notice {
	padding: 16px 20px;
	background: #fff8e1;
	border-left: 4px solid #f0b400;
	font-size: 15px;
}

/* ---- 欄位：同時支援範本結構（.f2cf-field）與 CF7 預設結構（p > label） ---- */
.f2cf .f2cf-field,
.f2cf .wpcf7-form > p {
	margin: 0 0 20px;
}
.f2cf .f2cf-label,
.f2cf .wpcf7-form > p > label {
	display: block;
	padding-bottom: 5px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.75;
	color: #333;
}
.f2cf .f2cf-label .req,
.f2cf .wpcf7-form label .req { color: inherit; margin-left: 2px; }

.f2cf .wpcf7-form-control-wrap { display: block; }

.f2cf input[type="text"],
.f2cf input[type="email"],
.f2cf input[type="tel"],
.f2cf input[type="url"],
.f2cf input[type="number"],
.f2cf input[type="date"],
.f2cf select,
.f2cf textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 11.25px 13.5px;
	font: inherit;
	font-size: 15.75px;
	line-height: 1.5;
	color: #333;
	background: var(--f2cf-field);
	border: 1px solid #828282;
	border-radius: 3.375px;
	box-shadow: none;
	transition: border-color .2s, box-shadow .2s, background .2s;
	-webkit-appearance: none;
	appearance: none;
}
.f2cf textarea { min-height: 261px; resize: vertical; }
.f2cf select {
	padding-right: 40px;
	background-image: 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='%23333' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}
.f2cf input:focus,
.f2cf select:focus,
.f2cf textarea:focus {
	outline: none;
	background-color: #fff;
	border-color: var(--f2vc-accent);
	box-shadow: 0 0 0 3px rgba(0, 153, 255, .15);
}
.f2cf ::placeholder { color: #999; }

/* checkbox / radio / acceptance */
.f2cf .wpcf7-list-item { margin: 0 20px 0 0; }
.f2cf .wpcf7-list-item label { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 400; cursor: pointer; }
.f2cf input[type="checkbox"],
.f2cf input[type="radio"] { width: 18px; height: 18px; accent-color: var(--f2vc-accent); margin: 0; }

/* 送出 */
.f2cf .f2cf-submit { margin-top: 10px; }
.f2cf input[type="submit"],
.f2cf button[type="submit"] {
	display: inline-block;
	margin: 10px 0 0;
	padding: 11.25px 38.25px;
	font: inherit;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.75;
	color: #fff;
	background: var(--f2vc-accent);
	border: 2px solid var(--f2vc-accent);
	border-radius: 4.5px;
	box-shadow: 0 4px 11px rgba(0, 0, 0, .15);
	cursor: pointer;
	transition: filter .2s, transform .2s;
	-webkit-appearance: none;
}
.f2cf input[type="submit"]:hover,
.f2cf button[type="submit"]:hover { filter: brightness(.88); transform: translateY(-2px); }
.f2cf input[type="submit"]:disabled { opacity: .6; cursor: default; transform: none; }
.f2cf .wpcf7-spinner { vertical-align: middle; margin: 10px 0 0 12px; }

/* 驗證訊息 */
.f2cf .wpcf7-not-valid { border-color: #d63638; background: #fff; }
.f2cf .wpcf7-not-valid-tip { margin-top: 6px; font-size: 14px; color: #d63638; }
.f2cf .wpcf7 form .wpcf7-response-output {
	margin: 24px 0 0;
	padding: 12px 16px;
	border: 1px solid #ccc;
	border-left-width: 4px;
	border-radius: 3px;
	background: #fff;
	font-size: 15px;
}
.f2cf .wpcf7 form.sent .wpcf7-response-output { border-color: #2e9e5b; }
.f2cf .wpcf7 form.invalid .wpcf7-response-output,
.f2cf .wpcf7 form.unaccepted .wpcf7-response-output { border-color: #f0b400; }
.f2cf .wpcf7 form.failed .wpcf7-response-output,
.f2cf .wpcf7 form.spam .wpcf7-response-output { border-color: #d63638; }

/* 兩欄並排（範本中用 .f2cf-row 包住兩個 .f2cf-field） */
.f2cf .f2cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

@media (max-width: 767px) {
	.f2cf { padding: 60px 0; }
	.f2cf .f2cf-row { grid-template-columns: 1fr; }
	.f2cf textarea { min-height: 180px; }
}
.f2cf .wpcf7 form .wpcf7-response-output:empty,
.f2cf .wpcf7 form.init .wpcf7-response-output,
.f2cf .wpcf7 form.resetting .wpcf7-response-output,
.f2cf .wpcf7 form.submitting .wpcf7-response-output { display: none; }
