@charset "UTF-8";

/* ============================================================
   inquiry.css
   專人聯絡申請表（inquiry.html）樣式
   一頁一題的全螢幕捲動式表單
   ============================================================ */


/* ------------------------------------------------------------
   版面骨架
   ------------------------------------------------------------ */

#leasingInquiry {
	width: 100%;
	height: 100vh;
	overflow: hidden;
	background: #eaedf4 url(../images/leasing/contact_bg.png) no-repeat right bottom;
	background-size: 35% auto;
	position: relative;
	font-size: 18px;
}


/* ------------------------------------------------------------
   頁首
   ------------------------------------------------------------ */

#leasingInquiry #header {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	z-index: 90;
	transition: all 0.3s;
	padding: 10px 2.5%;
}

#leasingInquiry #header .logo {
	width: 150px;
	display: flex;
	align-items: center;
}

#leasingInquiry #header .logo img {
	vertical-align: bottom;
}


/* ------------------------------------------------------------
   單題區塊（上下滑動切換）
   ------------------------------------------------------------ */

#leasingInquiry .contact-section {
	height: 100vh;
	width: 100%;
	justify-content: center;
	align-items: center;
	display: flex;
	position: absolute;
	top: 100%;
	opacity: 0;
	transition: all 0.5s;
	pointer-events: none;
}

/* 目前顯示中的題目 */
#leasingInquiry .contact-section.active {
	opacity: 1;
	top: 0;
	pointer-events: auto;
}

/* 往上離開畫面 */
#leasingInquiry .contact-section.up {
	top: -100%;
	opacity: 0;
}

/* 回上一題時由上方滑入 */
#leasingInquiry .contact-section.down {
	top: 0 !important;
	opacity: 1 !important;
}

#leasingInquiry .contact-section .contact-box {
	max-width: 720px;
	width: 100%;
	margin: 0 auto;
}


/* ------------------------------------------------------------
   題目標題與說明
   ------------------------------------------------------------ */

#leasingInquiry .contact-section .contact-box .contact-title {
	font-size: 30px;
	font-weight: bold;
	margin-bottom: 10px;
}

#leasingInquiry .contact-section .contact-box .contact-name {
	position: relative;
	margin-bottom: 5px;
}

#leasingInquiry .contact-section .contact-box .contact-name .order {
	display: flex;
	align-items: center;
	position: absolute;
	left: -50px;
}

#leasingInquiry .contact-section .contact-box .contact-name .order::after {
	content: "";
	background: url(../images/leasing/arrow_right.svg) no-repeat center center;
	background-size: contain;
	width: 16px;
	height: 16px;
	display: inline-block;
	margin-left: 8px;
}

#leasingInquiry .contact-section .contact-box .contact-name a {
	color: #00B1D2;
}

#leasingInquiry .contact-section .contact-box .contact-name a:hover {
	text-decoration: underline;
}

#leasingInquiry .contact-section .contact-box p {
	color: #888888;
	font-size: 16px;
	margin: 0;
}


/* ------------------------------------------------------------
   文字輸入欄
   ------------------------------------------------------------ */

#leasingInquiry .contact-section .contact-box .input-row {
	margin-top: 15px;
	position: relative;
}

#leasingInquiry .contact-section .contact-box .input-row::before {
	content: "";
	width: 100%;
	height: 1px;
	background-color: #A4A4A4;
	left: 0;
	bottom: 1px;
	position: absolute;
}

#leasingInquiry .contact-section .contact-box .input-row input {
	width: 100%;
	border: none;
	border-bottom: 2px solid transparent;
	background: none;
	position: relative;
	vertical-align: bottom;
	z-index: 1;
	padding: 10px;
	font-size: 18px;
	font-family: inherit;
	color: inherit;
}

#leasingInquiry .contact-section .contact-box .input-row input:focus {
	outline: none;
	border-bottom-color: #00B1D2;
}

#leasingInquiry .contact-section .contact-box .input-row input[type=checkbox] {
	display: none;
}


/* ------------------------------------------------------------
   複選題
   ------------------------------------------------------------ */

#leasingInquiry .contact-section .contact-box .input-row.checkbox-group::before {
	display: none;
}

#leasingInquiry .contact-section .contact-box .input-row.checkbox-group p {
	color: #464B4E;
}

#leasingInquiry .contact-section .contact-box .input-row.checkbox-group .checkbox-item {
	display: block;
	margin-bottom: 10px;
	margin-top: 5px;
}

#leasingInquiry .contact-section .contact-box .input-row.checkbox-group .checkbox-item label {
	border-radius: 5px;
	padding: 8px 35px 8px 10px;
	width: 190px;
	display: flex;
	font-size: 16px;
	cursor: pointer;
	align-items: center;
	background-color: #F0F3FA;
	position: relative;
}

#leasingInquiry .contact-section .contact-box .input-row.checkbox-group .checkbox-item label::before {
	content: "";
	position: absolute;
	width: 100%;
	height: 100%;
	border-radius: 5px;
	border: 1px solid #00B1D2;
	left: 0;
	top: 0;
}

/* 選項前的 A / B / C 標記 */
#leasingInquiry .contact-section .contact-box .input-row.checkbox-group .checkbox-item label .order {
	width: 22px;
	height: 22px;
	border-radius: 2px;
	display: flex;
	justify-content: center;
	align-items: center;
	border: 1px solid #00B1D2;
	font-size: 14px;
	margin-right: 10px;
}

#leasingInquiry .contact-section .contact-box .input-row.checkbox-group .checkbox-item input:checked + label .order {
	background-color: #00B1D2;
	color: #fff;
}

#leasingInquiry .contact-section .contact-box .input-row.checkbox-group .checkbox-item input:focus + label .order {
	background-color: #000;
	color: #fff;
}

#leasingInquiry .contact-section .contact-box .input-row.checkbox-group .checkbox-item input:checked + label::before {
	width: calc(100% - 1px);
	height: calc(100% - 1px);
	border-width: 2px;
	left: -1px;
	top: -1px;
}

#leasingInquiry .contact-section .contact-box .input-row.checkbox-group .checkbox-item input:checked + label::after {
	content: "";
	background: url(../images/leasing/icon_check.svg) no-repeat center center;
	background-size: contain;
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 13px;
}


/* ------------------------------------------------------------
   錯誤提示
   ------------------------------------------------------------ */

#leasingInquiry .contact-section .contact-box .message-error {
	opacity: 0;
	top: 5px;
	display: inline-flex;
	position: relative;
	align-items: center;
	font-size: 14px;
	padding: 3px 10px;
	margin-top: 8px;
	border-radius: 5px;
	background-color: #f7e6e6;
	color: #af0404;
	transition: all 0.5s;
}

#leasingInquiry .contact-section .contact-box .message-error::before {
	content: "";
	background: url(../images/leasing/icon_error.svg) no-repeat center center;
	background-size: contain;
	width: 13px;
	height: 13px;
	margin-right: 5px;
	display: inline-block;
}

#leasingInquiry .contact-section .contact-box.error .message-error {
	opacity: 1;
	top: 0;
}


/* ------------------------------------------------------------
   人機驗證（靜態版本）
   ------------------------------------------------------------ */

#leasingInquiry .leasing-recaptcha {
	margin-top: 25px;
}

#leasingInquiry .leasing-recaptcha .verify-box {
	display: inline-flex;
	align-items: center;
	background-color: #fff;
	border: 1px solid #d3d3d3;
	border-radius: 3px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
	padding: 14px 20px;
}

#leasingInquiry .leasing-recaptcha .verify-box input[type=checkbox] {
	width: 24px;
	height: 24px;
	margin: 0 12px 0 0;
	cursor: pointer;
	accent-color: #00B1D2;
}

#leasingInquiry .leasing-recaptcha .verify-box label {
	font-size: 15px;
	cursor: pointer;
	user-select: none;
}


/* ------------------------------------------------------------
   按鈕
   ------------------------------------------------------------ */

#leasingInquiry .contact-section .contact-box .btn-block {
	margin-top: 30px;
}

#leasingInquiry .contact-section .contact-box .btn-block span {
	display: inline-block;
	margin-left: 10px;
	font-size: 14px;
}

#leasingInquiry .btn {
	display: inline-flex;
	font-weight: bold;
	justify-content: center;
	background-color: #FFD401;
	border-radius: 5px;
	padding: 10px 20px 8px;
	color: #000;
	font-size: 20px;
}

#leasingInquiry .btn:hover {
	opacity: 0.8;
}

#leasingInquiry .btn.btn-disabled {
	pointer-events: none;
	background-color: #ddd;
	color: #aaa;
}


/* ------------------------------------------------------------
   上一步／下一步控制列
   ------------------------------------------------------------ */

#leasingInquiry .page-control {
	position: fixed;
	width: 70px;
	right: 2.5%;
	justify-content: flex-end;
	bottom: 10px;
	border-radius: 5px;
	overflow: hidden;
	display: none;
}

#leasingInquiry .page-control.active {
	display: flex;
}

#leasingInquiry .page-control a {
	display: inline-flex;
	width: 35px;
	height: 35px;
	background: #FFD401 url(../images/leasing/icon_arrow_up.svg) no-repeat center center;
	background-size: 14px 9px;
	border-right: 1px solid #EEEEEE;
}

#leasingInquiry .page-control a span {
	display: none;
}

#leasingInquiry .page-control a.btn-next {
	transform: rotate(180deg);
}

#leasingInquiry .page-control a:hover {
	opacity: 0.8;
}

#leasingInquiry .page-control a.btn-disabled,
#leasingInquiry .page-control a.btn-none {
	opacity: 0.5;
	pointer-events: none;
}


/* ============================================================
   RWD － 767px 以下（手機）
   ============================================================ */

@media screen and (max-width: 767px) {

	#leasingInquiry {
		background-position: right calc(100% - 50px);
		background-size: 50% auto;
	}

	#leasingInquiry #header {
		padding: 8px 2.5%;
	}

	#leasingInquiry #header .logo {
		width: 100px;
	}

	#leasingInquiry .btn {
		font-size: 16px;
	}

	#leasingInquiry .contact-section {
		padding-bottom: 60px;
	}

	#leasingInquiry .contact-section .contact-box {
		width: 78%;
	}

	#leasingInquiry .contact-section .contact-box .contact-title {
		font-size: 21px;
		margin-bottom: 6px;
	}

	#leasingInquiry .contact-section .contact-box .contact-name {
		margin-bottom: 2px;
		font-size: 16px;
	}

	#leasingInquiry .contact-section .contact-box .contact-name .order {
		left: -25px;
		font-size: 14px;
	}

	#leasingInquiry .contact-section .contact-box .contact-name .order::after {
		width: 10px;
		height: 10px;
		margin-left: 3px;
		margin-top: 1px;
	}

	#leasingInquiry .contact-section .contact-box p {
		font-size: 14px;
	}

	#leasingInquiry .contact-section .contact-box .input-row {
		margin-top: 10px;
	}

	/* 手機版改用底部控制列操作 */
	#leasingInquiry .contact-section .contact-box .btn-block {
		display: none;
	}

	#leasingInquiry .page-control {
		width: 100%;
		right: 0;
		left: 0;
		bottom: 0;
		padding: 8px 2.5%;
		background-color: #fff;
	}

	#leasingInquiry .page-control.m-show {
		display: flex;
	}

	#leasingInquiry .page-control a {
		border-right: none;
		border-radius: 5px;
		font-weight: bold;
		justify-content: center;
		align-items: center;
		font-size: 16px;
		height: 40px;
	}

	#leasingInquiry .page-control a.btn-prev {
		width: 40px;
		transform: rotate(-90deg);
		margin-right: 6px;
	}

	#leasingInquiry .page-control a.btn-next {
		transform: rotate(0);
		flex: 1;
		background-image: none;
	}

	#leasingInquiry .page-control a.btn-disabled {
		pointer-events: none;
		background-color: #ddd;
		color: #aaa;
	}

	#leasingInquiry .page-control a.btn-none {
		display: none;
	}

	/* 控制列上的文字：依目前題號顯示「開始／OK／送出」 */
	#leasingInquiry .page-control a .text2 {
		display: block;
	}

	#leasingInquiry .page-control a[data-idx="1"] .text1 {
		display: block;
	}

	#leasingInquiry .page-control a[data-idx="1"] .text2,
	#leasingInquiry .page-control a[data-idx="1"] .text3 {
		display: none;
	}

	#leasingInquiry .page-control a[data-idx="8"].btn-disabled {
		display: flex;
		opacity: 1;
	}

	#leasingInquiry .page-control a[data-idx="8"] .text3 {
		display: block;
	}

	#leasingInquiry .page-control a[data-idx="8"] .text2,
	#leasingInquiry .page-control a[data-idx="8"] .text1 {
		display: none;
	}

	/* 最後一頁的「回到租賃方案頁面」仍需顯示 */
	#leasingInquiry #section9 .btn-block {
		display: block;
	}

	#leasingInquiry #section9 .btn-block span {
		display: none;
	}
}
