/* ============================================================
   contact.css — お問い合わせ（留言表单）页
   沿用首页设计语言：主色 #005baa / #266eb6，强调红 #dd3333
   ============================================================ */

/* ===== 顶部 hero（蓝色带） ===== */
.contact-hero {
	background: linear-gradient(120deg, #005baa, #0073c4);
	color: #fff;
	padding: 132px 0 56px;
	text-align: center;
}
.contact-hero h1 {
	font-size: clamp(26px, 3vw, 38px);
	font-weight: 700;
	margin-bottom: 10px;
}
.contact-hero p {
	font-size: clamp(13px, 1.4vw, 16px);
	color: rgba(255, 255, 255, .9);
}

/* ===== 粘性页脚：内容不足一屏时把页脚顶到屏幕底部 =====
   body 撑满一屏 → 中间主体（hero + 表单）自动撑开剩余高度，
   页脚始终贴在视口底部，2K/4K 大屏不再出现底部空白 */
body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}
.contact-hero { flex-shrink: 0; }
.footer { flex-shrink: 0; }

.contact-wrap {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 100%;
	max-width: 780px;
	margin: 34px auto 50px;
}

/* ===== 表单卡片 ===== */
.contact-form {
	background: #fff;
	border-radius: 14px;
	padding: 34px 36px;
	box-shadow: 0 10px 30px rgba(20, 40, 80, .08);
}
.form-error {
	display: none;
	background: #fdeaea;
	color: #c0392b;
	border: 1px solid #f3c2c2;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 13px;
	margin-bottom: 20px;
}

.field { margin-bottom: 18px; }
.field > label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 7px;
}
.req {
	color: #dd3333;
	font-size: 11px;
	font-weight: 700;
	margin-left: 6px;
}
.hint {
	display: block;
	font-size: 11px;
	color: #9aa3af;
	margin-top: 5px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid #d8dee6;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	color: #1f2937;
	background: #fff;
	transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
	border-color: #005baa;
	box-shadow: 0 0 0 3px rgba(0, 91, 170, .12);
	outline: none;
}

.form-row { display: flex; gap: 18px; }
.form-row .field { flex: 1; }

/* ===== お問い合わせ種別 卡片选择 ===== */
.type-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
}
.type-card {
	position: relative;
	border: 1px solid #d8dee6;
	border-radius: 10px;
	padding: 14px 12px;
	text-align: center;
	cursor: pointer;
	transition: .2s;
	background: #fff;
}
.type-card input { position: absolute; opacity: 0; }
.type-card .tc-in { display: block; font-weight: 700; font-size: 14px; color: #1f2937; }
.type-card small { display: block; font-size: 11px; color: #9aa3af; margin-top: 4px; }
.type-card:hover { border-color: #005baa; }
.type-card.active { border-color: #005baa; background: #eef4fa; }
/* .type-card.active::after {
	content: "✓";
	position: absolute;
	top: 6px;
	right: 9px;
	color: #005baa;
	font-weight: 700;
	font-size: 13px;
} */
.dyn-note { font-size: 12px; color: #9aa3af; margin: 10px 0 0; }

/* ===== 同意・プライバシー ===== */
.agree-label {
	display: flex !important;
	align-items: center;
	gap: 8px;
	font-weight: 400 !important;
	font-size: 13px;
	color: #374151 !important;
	margin-bottom: 0 !important;
	cursor: pointer;
}
.agree-label input { width: auto; }
.privacy { font-size: 11px; color: #9aa3af; line-height: 1.6; margin-top: 8px; }

/* ===== 送信按钮 / 完成提示 ===== */
.form-actions { text-align: center; margin-top: 8px; }
.submit-btn {
	background: #005baa;
	color: #fff;
	border: none;
	padding: 14px 46px;
	border-radius: 30px;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	transition: .2s;
}
.submit-btn:hover { background: #004a8c; }

.form-done {
	background: #fff;
	border-radius: 14px;
	padding: 50px 32px;
	text-align: center;
	box-shadow: 0 10px 30px rgba(20, 40, 80, .08);
}
.done-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #005baa;
	color: #fff;
	font-size: 34px;
	line-height: 64px;
	margin: 0 auto 18px;
}
.form-done h2 { font-size: 22px; color: #1f2937; margin-bottom: 12px; }
.form-done p { font-size: 14px; color: #6b7280; line-height: 1.8; }
.back-link {
	display: inline-block;
	margin-top: 20px;
	color: #005baa;
	text-decoration: none;
	border: 1px solid #005baa;
	padding: 10px 28px;
	border-radius: 30px;
	font-weight: 600;
	transition: .2s;
}
.back-link:hover { background: #005baa; color: #fff; }

/* ===== 响应式 ===== */
@media (max-width: 600px) {
	.contact-hero { padding: 116px 0 40px; }
	.contact-wrap { margin: 22px auto 36px; padding: 0 14px; }
	.contact-form { padding: 22px 16px; border-radius: 12px; }
	.form-row { flex-direction: column; gap: 0; }
	.type-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
	.type-cards { grid-template-columns: 1fr; }
}
