/* rwd-type5 首頁「聯絡我們」表單（index.php#contact）— 2026-11-20 v2
   配色沿用 rwd-type5 原本的語彙：白底、淺灰框（#D8E1E4）、灰字、近黑按鈕（同 .btn-lg）；金色只留給大標，不另外加金色底或暖色底。 */
#contact .t5contact { max-width: 720px; margin: 8px auto 0; padding: 0 15px; text-align: left; }
#contact .t5contact-card {
	background: #fff; border: 1px solid #e3e6e7; border-radius: 6px; padding: 32px 36px;
	box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
#contact .t5form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
#contact .t5f { min-width: 0; }
#contact .t5f-full { grid-column: 1 / -1; }
#contact .t5f label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .5px; color: #555; }
#contact .t5f .req { margin-left: 3px; color: #c9302c; }
#contact .t5f input[type="text"],
#contact .t5f input:not([type]),
#contact .t5f select,
#contact .t5f textarea {
	display: block; width: 100%; min-height: 42px; padding: 9px 14px; margin: 0;
	font-family: inherit; font-size: 14px; letter-spacing: 0; color: #333;
	background: #fff; border: 1px solid #D8E1E4; border-radius: 4px; outline: 2px solid transparent;
	box-shadow: none; transition: border-color .2s, box-shadow .2s;
}
#contact .t5f textarea { height: 110px; resize: vertical; padding: 10px 14px; }
#contact .t5f input:focus, #contact .t5f select:focus, #contact .t5f textarea:focus {
	border-color: rgba(135,135,135,.9); box-shadow: 0 0 0 3px rgba(135,135,135,.18);
}
#contact .t5pair { display: flex; gap: 10px; align-items: center; }
#contact .t5pair select { flex: none; width: 120px; }
#contact .t5pair input { flex: 1 1 auto; }
#contact .t5f .t5code input[type="text"] { flex: none; width: 170px; }
#contact #icode_img { width: 150px; height: auto; border-radius: 4px; border: 1px solid #D8E1E4; cursor: pointer; }
#contact .t5f small { display: block; margin-top: 6px; font-size: 12px; line-height: 1.6; color: #888; }
#contact .t5form-act { margin-top: 22px; text-align: center; }
#contact .t5form-act input[type="submit"] {
	-webkit-appearance: none; appearance: none; cursor: pointer; min-width: 140px; min-height: 42px; padding: 10px 34px; margin: 0;
	font-family: inherit; font-size: 14px; letter-spacing: 2px; color: #fff;
	background: rgba(17,17,17,.8); border: 0; border-radius: 3px; outline: 2px solid transparent;
	transition: background-color .2s, box-shadow .2s;
}
#contact .t5form-act input[type="submit"]:hover { background: #111; }
#contact .t5form-act input[type="submit"]:focus-visible { box-shadow: 0 0 0 3px rgba(135,135,135,.45); }

@media (max-width: 767px) {
	#contact .t5contact { padding: 0 12px; }
	#contact .t5contact-card { padding: 24px 18px; }
}
@media (max-width: 575px) {
	#contact .t5form-grid { grid-template-columns: 1fr; gap: 16px; }
	#contact .t5f input[type="text"], #contact .t5f input:not([type]), #contact .t5f select { min-height: 46px; }
	#contact .t5pair select { width: 104px; }
	#contact .t5code { flex-wrap: wrap; }
	#contact .t5f .t5code input[type="text"] { flex: 1 1 130px; width: auto; }
	#contact .t5form-act input[type="submit"] { width: 100%; min-height: 46px; }
}
@media (prefers-reduced-motion: reduce) { #contact * { transition: none !important; } }
