/* cw-market-company-list — 前台樣式（v1.1 第一章規範） */

/* 覆蓋佈景主題 flex 規則，確保 honeypot 等隱藏元素不顯示 */
[hidden] { display: none !important; }

/* ---------- Hero ---------- */
.cwmcl-hero {
	width: 100vw;
	position: relative;
	left: 50%;
	margin-left: -50vw;
	background: linear-gradient(135deg, #2b427d 0%, #1d2f5c 100%);
	padding: 100px 20px;
	box-sizing: border-box;
}
.cwmcl-hero-inner {
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	gap: 48px;
	align-items: flex-start;
}
.cwmcl-hero-text { flex: 1 1 55%; color: #fff; }
.cwmcl-eyebrow {
	font-size: 14px !important;
	font-weight: 600;
	letter-spacing: 1px;
	color: #EE9F4E;
	margin: 0 0 16px !important;
	padding: 0;
	line-height: 1.4;
}
.cwmcl-title {
	font-size: 64px;
	font-weight: 700;
	line-height: 1.15;
	color: #fff;
	margin: 0 0 24px;
}
.cwmcl-desc { font-size: 16px; line-height: 1.8; color: rgba(255,255,255,.92); margin: 0 0 24px; }
.cwmcl-checklist { list-style: none; margin: 0 0 24px; padding: 0 0 0 8px; }
.cwmcl-checklist li { font-size: 16px; line-height: 2; color: rgba(255,255,255,.92); }
.cwmcl-special { font-size: 16px; color: rgba(255,255,255,.7); }

/* ---------- 表單卡 ---------- */
.cwmcl-card {
	flex: 1 1 45%;
	max-width: 480px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(0,0,0,.25);
	padding: 32px 28px;
	box-sizing: border-box;
}
.cwmcl-label { display: block; font-size: 14px; font-weight: 600; color: #2b427d; margin: 16px 0 6px; }
.cwmcl-label:first-child { margin-top: 0; }
.cwmcl-input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #ccd3e0;
	border-radius: 6px;
	font-size: 15px;
	background: #fff;
	color: #222;
}
.cwmcl-input:focus { outline: none; border-color: #2b427d; }
.cwmcl-row { display: flex; gap: 12px; }
.cwmcl-row > div { flex: 1; }
.cwmcl-btn {
	display: block;
	width: 100%;
	margin-top: 24px;
	background: #EE9F4E;
	color: #fff !important;
	border: none;
	border-radius: 6px;
	padding: 14px;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	box-sizing: border-box;
	transition: filter .15s;
}
.cwmcl-btn:hover { filter: brightness(1.06); }
.cwmcl-btn:disabled { background: #c9c9c9; cursor: not-allowed; }
.cwmcl-credit-note { margin-top: 12px; font-size: 13px; color: #666; text-align: center; line-height: 1.6; }
.cwmcl-credit-note a { color: #2b427d; }

/* ---------- Modal ---------- */
.cwmcl-overlay {
	position: fixed;
	inset: 0;
	background: rgba(20, 28, 48, .6);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.cwmcl-modal {
	background: #fff;
	border-radius: 12px;
	max-width: 720px;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
	position: relative;
	padding: 36px 32px;
	box-sizing: border-box;
}
.cwmcl-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	font-size: 20px;
	color: #888;
	cursor: pointer;
	line-height: 1;
	padding: 6px;
}
.cwmcl-close:hover { color: #2b427d; }
.cwmcl-progress { text-align: center; padding: 24px 0; }
.cwmcl-spinner {
	width: 44px;
	height: 44px;
	border: 4px solid #e6eaf2;
	border-top-color: #EE9F4E;
	border-radius: 50%;
	margin: 0 auto 18px;
	animation: cwmcl-spin .9s linear infinite;
}
@keyframes cwmcl-spin { to { transform: rotate(360deg); } }
.cwmcl-progress-text { font-size: 16px; color: #2b427d; line-height: 1.7; }
.cwmcl-progress-sub { font-size: 13px; color: #888; margin-top: 6px; }

/* ---------- 結果 ---------- */
.cwmcl-result h3 { color: #2b427d; margin: 0 0 8px; font-size: 22px; }
.cwmcl-result-meta { font-size: 14px; color: #666; margin-bottom: 16px; line-height: 1.7; }
.cwmcl-table-wrap { overflow-x: auto; margin-bottom: 16px; }
.cwmcl-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cwmcl-table th { background: #2b427d; color: #fff; padding: 7px 10px; text-align: left; white-space: nowrap; }
.cwmcl-table td { border-bottom: 1px solid #e8ebf2; padding: 7px 10px; color: #333; }
.cwmcl-table td a { color: #2b427d; }
.cwmcl-download {
	display: inline-block;
	background: #EE9F4E;
	color: #fff !important;
	padding: 12px 26px;
	border-radius: 6px;
	font-weight: 700;
	text-decoration: none;
	margin: 4px 0 8px;
}
.cwmcl-points { font-size: 14px; color: #2b427d; font-weight: 600; margin-top: 10px; }
.cwmcl-error { color: #c0392b; font-size: 15px; line-height: 1.8; padding: 12px 0; }
.cwmcl-cta {
	margin-top: 20px;
	padding: 16px 20px;
	background: #f4f6fb;
	border-left: 4px solid #EE9F4E;
	border-radius: 4px;
}
.cwmcl-cta strong { color: #2b427d; display: block; margin-bottom: 4px; }
.cwmcl-cta p { margin: 0 0 10px; font-size: 14px; color: #444; }
.cwmcl-cta a { display: inline-block; background: #EE9F4E; color: #fff !important; padding: 8px 18px; border-radius: 4px; text-decoration: none; font-size: 14px; }

/* ---------- 響應式（<768px 單欄堆疊：文字上、表單下） ---------- */
@media (max-width: 767px) {
	.cwmcl-hero { padding: 60px 16px; }
	.cwmcl-hero-inner { flex-direction: column; gap: 32px; }
	.cwmcl-title { font-size: 36px; }
	.cwmcl-card { max-width: 100%; }
	.cwmcl-row { flex-direction: column; gap: 0; }
}
