/**
 * 鉅誠驗屋子主題樣式
 *
 * 放這裡的只有：Blocksy 自訂器做不到的微調、Fluent Forms 表單外觀、GreenShift 區段的共用銜接。
 * 元件（ys-mt/*）的樣式在外掛裡，不要寫在這裡。
 * 顏色一律用 Blocksy 調色盤變數（--theme-palette-color-1～13），客戶在自訂器換色時才會一起變。
 *
 * Fluent Forms 的輸入框要用 .ff-el-form-control 選（不要用 input[type]，權重不夠會被表單自己的樣式蓋掉）。
 */

/* ───── 頁首 ───── */

/* 頁首上緣 4px 漸層（原型 .hdr::before）；畫在中間那一列上，黏住頁首時跟著走 */
.ct-header [data-row*="middle"] {
	position: relative;
}

.ct-header [data-row*="middle"]::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	z-index: 2;
	height: 4px;
	background: linear-gradient(90deg, var(--theme-palette-color-1) 0%, var(--theme-palette-color-2) 100%);
	pointer-events: none;
}

/* 「關於我們」只是分組、不連結：滑鼠游標維持一般箭頭 */
.ct-header .mt-nolink > a {
	cursor: default;
}

/* ───── Fluent Forms：預約表單（ys-mt/book 的表單卡），外觀照原型 .field／.btn--block ───── */

.mt-book__form .fluentform .ff-el-group {
	margin-bottom: 14px;
}

/* 標籤：15px、行高 1.8（27px），和輸入框之間 6px（原型 .field 的 gap） */
.mt-book__form .fluentform .ff-el-input--label {
	display: block;
	margin: 0 0 6px;
	padding: 0;
	font-size: 15px; /* 外框的行高以自己的字級算，要和標籤一樣（桌機 27px） */
	line-height: inherit; /* 沿用全站行高：桌機 1.8、手機 1.75（Blocksy 字型設定），和原型相同 */
}

.mt-book__form .fluentform .ff-el-input--label label {
	display: inline;
	margin: 0;
	padding: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: inherit;
	color: var(--theme-palette-color-4);
}

/* 必填星號：原型是橘色、緊貼在字後面。
   多加 .ff-el-input--label 提高權重：Fluent Forms 的規則權重和這裡一樣、但比較晚載入，會換回「空格＋星號」（11-16 像素比對抓到）。 */
.mt-book__form .fluentform .ff-el-input--label.ff-el-is-required.asterisk-right label::after {
	content: "*" / "";
	margin-left: 2px;
	color: #C2410C;
}

.mt-book__form .fluentform .ff-el-form-control {
	width: 100%;
	min-height: 50px;
	padding: 0 16px;
	border: 1.5px solid #8A94A6;
	border-radius: 12px;
	background-color: #fff;
	font-size: 17px;
	line-height: 1.4;
	color: var(--theme-palette-color-3);
	box-shadow: none;
	transition: border-color .2s, box-shadow .2s;
}

.mt-book__form .fluentform select.ff-el-form-control {
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230B2A5E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 18px;
	appearance: none;
}

.mt-book__form .fluentform .ff-el-form-control:focus {
	border-color: var(--theme-palette-color-1);
	outline: 2px solid var(--theme-palette-color-1);
	outline-offset: 1px;
}

/* 輸入框與下拉用網站字型：Fluent Forms 預設是系統字型（-apple-system、Segoe UI…），
   打的字與提示文字會和網站其他地方不一樣（Windows 上變成微軟正黑體；11-16 像素比對抓到） */
.mt-book__form .fluentform .ff-el-form-control {
	font-family: inherit;
}

/* 提示文字：原型是瀏覽器預設的灰（#757575，對比 4.6:1）；原本的 #8A94A6 太淡（3:1）、看不清楚 */
.mt-book__form .fluentform .ff-el-form-control::placeholder {
	color: #757575;
	opacity: 1;
}

.mt-book__form .fluentform .ff-el-is-error .ff-el-form-control {
	border-color: #C2410C;
}

/* 錯誤訊息放在標籤那一行的右側，不佔版面：出現、消失都不會推動下面的欄位與送出鈕。
   原本在欄位下方（每則 29px）：補完資料按「送出預約」的那一下，最後一欄失焦、錯誤收起，
   送出鈕往上跳 29px，放開時已經不在按鈕上，點擊落空，要按第二次才送出（11-16 全站檢查）。 */
.mt-book__form .fluentform .ff-el-group {
	position: relative;
}

.mt-book__form .fluentform .error.text-danger {
	position: absolute;
	top: 0;
	right: 0;
	margin: 0;
	font-size: 13px;
	line-height: 27px; /* 和標籤同一行 */
	color: #C2410C;
	text-align: right;
	pointer-events: none;
}

/* 送出鈕：滿寬的金色膠囊鈕（Fluent Forms 會依表單設定輸出顏色，這裡只管尺寸與形狀） */
.mt-book__form .fluentform .ff_submit_btn_wrapper {
	margin: 4px 0 0;
}

.mt-book__form .fluentform .ff-btn-submit:not(.ff_btn_no_style) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 0 28px;
	border: 2px solid var(--theme-palette-color-9);
	border-radius: 999px;
	background-color: var(--theme-palette-color-9);
	color: var(--theme-palette-color-1);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1.2;
	opacity: 1;
	transition: transform .25s, box-shadow .25s;
}

.mt-book__form .fluentform .ff-btn-submit:not(.ff_btn_no_style):hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(11, 42, 94, .18);
	opacity: 1;
}

/* 送出成功的訊息 */
.mt-book__form .ff-message-success {
	margin: 0;
	padding: 16px 18px;
	border: 0;
	border-radius: 12px;
	background: var(--theme-palette-color-6);
	color: var(--theme-palette-color-4);
	box-shadow: none;
}

.mt-book__form .mt-book__done {
	margin-top: 12px;
}

/* ───── 頁尾：Blocksy 頁尾中間那一列只放「網站頁尾」內容區塊（ys-mt/footer 自己有容器與留白） ───── */
/* Blocksy 的滿版容器左右各留 30px 外距 */
#footer [data-row*="middle"] > .ct-container-fluid {
	width: 100%;
	max-width: none;
	margin-inline: 0;
	padding-inline: 0;
}

#footer [data-column="content-block"],
#footer .ct-header-content-block {
	width: 100%;
}
