/*--------------------------------------------------------------
# Common css 
--------------------------------------------------------------*/
html,
body {
	height: 100%;
}

#main {
	/* 減去footer高度 */
	min-height: calc(100% - 20%);
	/* header 高度 */
	margin-top:80px;
	/* 背景設定 */
	position: relative;
	padding-bottom: 3%;
}

section {
	overflow: hidden;
}

/*--------------------------------------------------------------
# Spacing 
--------------------------------------------------------------*/
.letter-space-2px {
	letter-spacing: 2px;
}

.fs-sm {
	font-size: 15px;
}

.fs-xs {
	font-size: 13px;
}

/*--------------------------------------------------------------
# Form
--------------------------------------------------------------*/
.form-control {
	border-radius: 10px !important;
	padding: 8px 16px !important;
}

.bootstrap-select>.dropdown-toggle,
.bootstrap-select>.dropdown-toggle:focus,
.bootstrap-select>.dropdown-toggle:hover {
	height: 100%;
	border: 1px solid #ced4da !important;
	border-radius: 10px;
	box-shadow: none;
	outline: 0px !important;
	color: rgba(0, 0, 0);
	background-color: white;
	padding: 8px 16px;
}

/* dropdown :focus, .dropdown-toggle.show*/
.bootstrap-select>.dropdown-toggle:focus,
.bootstrap-select>.dropdown-toggle.show {
	border-color: #86b7fe !important;
	box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25) !important;
}

/* dropdown menu max-height */
div.dropdown-menu.open {
	max-height: 314px !important;
	overflow: hidden;
}

/* dropdown menu max-height */
ul.dropdown-menu.inner {
	max-height: 260px !important;
	overflow-y: auto;
}

#captcha {
	display: block;
	/* 高度設為父容器的 100% */
	height: 40px;
	/* 保持圖片長寬比並填滿容器 */
	object-fit: cover;
}

.cover-img {
	background-repeat: no-repeat;
	background-size: contain;
	background-position: left;
	padding: 0;
}
/*--------------------------------------------------------------
# Card
--------------------------------------------------------------*/
.card {
	background-color: #ffffffe0;
}

.card-shadow {
	border-radius: 30px;
	border: 1px solid rgb(219, 219, 219);
	box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn-goback {
	padding: 7px 30px;
	border-radius: 25px;
	background-color: #08a4a7;
	color: white;
	font-weight: 600;
}

.btn-goback:hover {
	background-color: rgb(6, 131, 134);
	color: white;
}

.btn-submit {
	padding: 12px 60px;
	border-radius: 10px;
	background: linear-gradient(45deg, #FF6565, #FF7AAF, #FF9491, #FF8159) !important;
	color: white;
	font-weight: 600;
}

.btn-submit:hover {
	color: white;
	background: linear-gradient(0deg, #B82B22 100%, #B82B22 100%) !important;
}

.btn-return {
	padding: 12px 60px;
	border-radius: 10px;
	background: #FD8188 !important;
	color: white;
	font-weight: 600;
}

.btn-return:hover {
	color: white;
	background: linear-gradient(0deg, #B82B22 100%, #B82B22 100%) !important;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header {
	background: #fff;
	transition: all 0.5s;
	z-index: 997;
	height: 80px;
	border-bottom: 1px solid #ededed;
	box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .06);
}

.header a {
	text-decoration: none;
}

#header-logoImg {
	height: 40px;
	max-width: 268px;
	margin-right: 6px;
}

#header-logoImg:focus-visible {
	outline: 0;
}

/*--------------------------------------------------------------
# Desktop Navigation
--------------------------------------------------------------*/

.navbar {
	padding: 0;
}

.navbar ul {
	margin: 0;
	padding: 0;
	display: flex;
	list-style: none;
	align-items: center;
}

.navbar li {
	position: relative;
}

.navbar>ul>li {
	white-space: nowrap;
	padding: 10px 0 10px 28px;
}

.navbar a,
.navbar a:focus {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 3px;
	font-size: 16px;
	font-weight: 600;
	color: #7f7f90;
	white-space: nowrap;
	transition: 0.3s;
	position: relative;
	background-color: rgba(255, 255, 255, 0.9);
	border: 0;
}

.navbar a i,
.navbar a:focus i {
	font-size: 12px;
	line-height: 0;
	margin-left: 5px;
}

.navbar>ul>li>a:before {
	content: "";
	position: absolute;
	width: 100%;
	height: 2px;
	bottom: -6px;
	left: 0;
	background-color: #ce1212;
	visibility: hidden;
	width: 0px;
	transition: all 0.3s ease-in-out 0s;
}

.navbar a:hover:before,
.navbar li:hover>a:before,
.navbar .active:before {
	visibility: visible;
	width: 100%;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover>a {
	color: #000;
}


/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
	font-size: 14px;
	min-height: 20%;
	background-color: #1f1f24;
	padding: 30px 0;
	color: rgba(255, 255, 255, 1);
}

.footer .icon {
	margin-right: 15px;
	font-size: 24px;
	line-height: 0;
}

.footer h4 {
	font-size: 16px;
	font-weight: bold;
	position: relative;
	padding-bottom: 5px;
	color: #fff;
}

.footer-text {
	color: rgba(255, 255, 255, 0.8);
}

@media(max-width:767.98px) {

	.footer-content {
		width: 80%;
		margin-left: 10%;
	}
}

/*--------------------------------------------------------------
# Scroll Top Button  回到頂部按鈕
--------------------------------------------------------------*/
.scroll-top {
	position: fixed;
	visibility: hidden;
	opacity: 0;
	right: 15px;
	bottom: -15px;
	z-index: 99999;
	background-color: #B82B22;
	width: 44px;
	height: 44px;
	border-radius: 50px;
	transition: all 0.4s;
}

.scroll-top i {
	font-size: 24px;
	color: aliceblue;
	line-height: 0;
}

.scroll-top:hover {
	background-color: color-mix(in srgb, aliceblue, transparent 20%);
}

.scroll-top:hover i {
	color: #B82B22;
}

.scroll-top.active {
	visibility: visible;
	opacity: 1;
	bottom: 15px;
}