/* 申請報價那張表單。跑在佈景裡面，所以只定義自己的 .mbq-req-*，
   不去動佈景的任何東西。 */

.mbq-req { margin: 8px 0 0; }

.mbq-req-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 4px 28px;
}

.mbq-req-field { margin: 0 0 18px; }
.mbq-req-wide { margin-top: 4px; }

.mbq-req-field label {
	display: block;
	font-size: .88rem;
	font-weight: 600;
	margin-bottom: 6px;
}

.mbq-req-must {
	font-weight: 400;
	font-size: .76rem;
	color: #9a5b00;
	background: #fff7ea;
	border: 1px solid #ffd79a;
	border-radius: 999px;
	padding: 1px 8px;
	margin-left: 6px;
	vertical-align: 1px;
}

.mbq-req-field input,
.mbq-req-field textarea {
	width: 100%;
	padding: 11px 13px;
	font: inherit;
	font-size: 1rem;
	line-height: 1.7;
	border: 1px solid currentColor;
	border-color: rgba(128, 128, 128, .45);
	border-radius: 3px;
	background: transparent;
	color: inherit;
}

.mbq-req-field textarea { resize: vertical; min-height: 9em; }

.mbq-req-field input:focus,
.mbq-req-field textarea:focus {
	outline: 2px solid #1d4ed8;
	outline-offset: 1px;
	border-color: #1d4ed8;
}

.mbq-req-hint {
	display: block;
	font-size: .8rem;
	opacity: .7;
	margin-top: 4px;
	line-height: 1.6;
}

.mbq-req-err {
	background: #fbf1f1;
	border: 1px solid #e6a2a2;
	color: #8a1f1f;
	border-radius: 3px;
	padding: 12px 16px;
	margin: 0 0 20px;
	font-size: .94rem;
	line-height: 1.75;
}

/* 送出按鈕。

   這裡原本寫了一個「不去猜佈景前景色」的聰明做法：color:transparent 再用
   box-shadow: inset 0 0 0 999px currentColor 當底色。它整顆塌成透明 ——
   currentColor 就是前一行設的 transparent，所以 box-shadow 是透明的，
   ::after 的文字又用 Canvas（接近白）疊在白底上。**按鈕完全看不見。**

   佈景的顏色變數就在 :root 上，直接用就好。聰明的寫法在這裡換不到任何東西，
   只換到一顆看不見的按鈕。 */
.mbq-req-btn {
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	padding: 14px 34px;
	border: 1px solid var(--mb-ink, #1a1a1a);
	border-radius: 3px;
	cursor: pointer;
	background: var(--mb-ink, #1a1a1a);
	color: #fff;
}

.mbq-req-btn:hover {
	background: #333;
	border-color: #333;
}

.mbq-req-btn:focus-visible {
	outline: 2px solid var(--mb-accent, #1f4f8f);
	outline-offset: 2px;
}

.mbq-req-btn:disabled {
	opacity: .55;
	cursor: default;
}

.mbq-req-fine { font-size: .82rem; opacity: .72; line-height: 1.8; max-width: 46em; }

.mbq-req-done h2 { margin-top: 0; }
.mbq-req-done code { font-size: .95em; }

/* 蜜罐。要讓機器人看得到（所以不能用 display:none，有些會跳過），
   但真人看不到也 tab 不到。 */
.mbq-req-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 600px) {
	.mbq-req-grid { grid-template-columns: 1fr; }
}


/* ---------------------------------------------------------------------------
   開場白與「收到了」
   --------------------------------------------------------------------------- */

.mbq-req-intro p:first-child { margin-top: 0; }

.mbq-req-done {
	border: 1px solid var(--mb-rule, #e4e4e4);
	border-radius: 4px;
	padding: 28px 32px 24px;
	margin: 8px 0 4px;
	background: var(--mb-wash, #f6f6f4);
}

.mbq-req-done-top {
	display: flex;
	align-items: center;
	gap: 13px;
}

.mbq-req-done-top h2 {
	margin: 0;
	font-size: 1.35rem;
	line-height: 1.4;
}

.mbq-req-done-sub {
	margin: 12px 0 0;
	font-size: .94rem;
	opacity: .78;
}

/* 打勾。用 SVG 而不是文字符號 —— 「✓」在不同系統上的大小與基線差很多，
   有些環境還會被換成彩色的 emoji。 */
.mbq-req-tick {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--mb-ink, #1a1a1a);
	color: #fff;
	margin-top: 2px;
}

.mbq-req-receipt {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 12px;
	margin: 20px 0 0;
	padding: 14px 18px;
	background: #fff;
	border: 1px solid var(--mb-rule, #e4e4e4);
	border-radius: 3px;
}

.mbq-req-receipt span {
	font-size: .82rem;
	opacity: .7;
}

.mbq-req-receipt strong {
	font-size: 1.2rem;
	letter-spacing: .06em;
	font-variant-numeric: tabular-nums;
}

.mbq-req-done-next {
	margin: 20px 0 0;
	font-size: .96rem;
	line-height: 1.85;
}

.mbq-req-done .mbq-req-fine {
	margin: 20px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--mb-rule, #e4e4e4);
}

@media (max-width: 600px) {
	.mbq-req-done { padding: 22px 20px 20px; }
}
