@charset "utf-8";
html {
	scroll-behavior: smooth;
}
.container {
	width: 100%;
	overflow-x: hidden;
}
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
img {
	display: block;
	width: 100%;
}

ul {
	list-style: none;
}

#landing {
	background: #333;
}

#landing .container {
	width: 800px;
	margin: 0 auto;
}

#landing .container > img {
	width: 100%;
	transform: translateX(0);
}

#landing .inputForm-wrapper {
	border-radius: 0;
}

#landing form {
	width: 100%;
}

.form_wrapper {
	position: fixed;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	background: #330083;
	background: linear-gradient(
		180deg,
		rgba(51, 0, 131, 1) 0%,
		rgba(17, 1, 34, 1) 100%
	);
	padding: 2% 5%;
	width: 1000px;
	z-index: 100;
}

form {
	margin: 0 auto;
}
.form_box {
	display: flex;
	flex-direction: column;
	margin-bottom: 3%;
}

.form_box label {
	font-size: clamp(14px, 4vw, 30px);
	display: flex;
	align-items: center;
	white-space: nowrap;
	gap: 15px;
}
.form_box label span {
	color: #fff;
}

.form_box input,
.form_box select {
	width: 100%;
	border: none;
	padding: 15px;
	border-radius: 10px;
	font-size: clamp(14px, 4vw, 30px);
}
.form_box_name {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-direction: row;
	justify-content: space-between;
}
.form_box input::placeholder,
.form_box select::placeholder {
	color: #cccccc;
	font-size: clamp(14px, 4vw, 30px);
}
.privacy_box {
	display: flex;
	align-items: center;
	margin: 10px 0;
	justify-content: center;
	gap: 10px;
	font-size: clamp(14px, 4vw, 20px);
}
#privacy_agreement {
	width: 20px;
	display: inline-block;
	height: 20px;
	cursor: pointer;
	vertical-align: middle;
}
.label_privacy_agreement {
	font-size: clamp(10px, 2vw, 20px);
	color: #fff;
	display: flex;
	align-items: center;
	gap: 5px;
}
.privacy_modal {
	font-weight: bold;
	cursor: pointer;
	font-size: clamp(10px, 2vw, 20px);
}
.privacy_modal u {
	color: #fff;
}
.consult_request_btn {
	display: block;
	width: 100%;
	font-weight: bold;
	color: #330083;
	text-align: center;
	padding: 15px 0 8px;
	background: linear-gradient(45deg, #f4d79a, #debb72);
	background-size: 100% 100%;
	animation: colorChange 3s ease infinite;
	border-radius: 10px;
	font-size: clamp(14px, 5vw, 40px);
	font-family: "GmarketSans";
}

@keyframes colorChange {
	0% {
		background-position: 0% 0%;
	}
	100% {
		background-position: 100% 0%;
	}
}

.nofixed {
	position: relative;
}

.nofixed.form_wrapper {
	padding: 5%;
}

.scroll_section {
	position: relative;
	overflow: hidden;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.scroll_section .title {
	width: 45%;
	margin: 0 auto;
}

.scroll_section .mySwiper {
	width: 900px;
	display: inline-block;
	height: 330px;
	overflow: hidden;
	background-color: #fff;
	border-radius: 20px;
	font-size: 25px;
}

.item-img img {
	width: auto;
	height: 40px;
}

.form_section {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 30px;
}

.inputForm-wrapper {
	width: 100%;
	background-color: #fff;
	padding: 3% 6% 5.5%;
	border-radius: 20px;
	overflow: hidden;
}

/* 고정된 상태의 inputForm-wrapper */
.inputForm-wrapper.fixed {
	position: fixed;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1000;
	width: 100%;
	max-width: 600px;
	box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
	padding: 15px 22px;
}

.inputForm-wrapper.fixed .name-label,
.inputForm-wrapper.fixed div input,
.inputForm-wrapper.fixed .inputForm-flex-wrap {
	font-size: 15px;
}

.inputForm-wrapper.fixed .inputForm-flex-wrap {
	flex-direction: row;
}

.inputForm-wrapper.fixed div input {
	padding: 10px 15px;
}

/* 부모 요소에 도달했을 때의 inputForm-wrapper */
.inputForm-wrapper.static {
	position: static;
	transform: none;
	width: 100%;
	max-width: none;
	box-shadow: none;
}
.inputForm-flex-wrap > div {
	display: flex;
	align-items: center;
	gap: 15px;
}
.inputForm-flex-wrap > div > label {
	word-break: keep-all;
}

.inputForm-wrapper div input {
	background: #f2f2f2;
	border: none;
	padding: 3%;
	display: block;
	width: 100%;
	font-size: clamp(14px, 4vw, 30px);
}

.inputForm-flex-wrap {
	display: flex;
	flex-direction: column;
	gap: 15px;
	font-size: clamp(14px, 4vw, 30px);
}

.name-label {
	margin-left: 28px;
}

.modal {
	display: none;
	position: fixed;
	z-index: 99;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgb(0, 0, 0);
	background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
	background-color: #fefefe;
	margin: 15% auto;
	padding: 10px 30px;
	border: 1px solid #888;
	width: 40%;
	border: none;
}

.close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
}

.close:hover,
.close:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
}

.link_a {
	position: fixed;
	max-width: 220px;
	width: 7%;
	right: 10%;
	bottom: 10%;
	z-index: 9999;
	animation: float 2s ease-in-out infinite;
}

.link_a > img {
	width: 100%;
	height: auto;
}

@keyframes float {
	0% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-15px);
	}
	100% {
		transform: translateY(0px);
	}
}

@media (max-width: 768px) {
	#landing .container {
		width: 100%;
	}
	.container > img {
		width: 140%;
		transform: translateX(-16%);
	}

	.modal-content {
		width: 80%;
	}
	.privacy_box {
		word-break: keep-all;
		font-size: 12px;
	}

	.form_section > img {
		width: 80% !important;
	}

	.inputForm-wrapper {
		padding: 6%;
	}

	/* 모바일에서 고정된 상태의 inputForm-wrapper */
	.inputForm-wrapper.fixed {
		max-width: none;
		padding: 4% 6%;
		border-radius: 20px 20px 0 0;
	}

	/* 모바일에서 부모 요소에 도달했을 때의 inputForm-wrapper */
	.inputForm-wrapper.static {
		width: 100%;
		padding: 6%;
	}

	.name-label {
		margin-left: 4vw;
	}

	.inputForm-wrapper.fixed .inputForm-flex-wrap > div {
		gap: 5px;
	}

	.inputForm-wrapper.fixed .name-label {
		margin-left: 0;
	}

	.inputForm-wrapper.fixed #counsel_name {
		width: 70px;
	}

	.inputForm-flex-wrap,
	.num-input-wrap {
		gap: 10px;
	}
	.scroll_section {
		gap: 20px;
	}
	.scroll_section .title {
		width: 87%;
		margin-top: 3% !important;
	}

	#privacy_agreement {
		width: 15px;
		height: 15px;
	}
	.privacy_modal_content {
		padding: 5%;
		height: 50%;
	}
	.form_wrapper {
		padding: 15px;
		width: 100%;
	}
	.form_box input,
	.form_box select {
		padding: 5px 10px;
		border-radius: 5px;
	}
	.consult_request_btn {
		padding: 8px 0 5px;
	}
	.nofixed .consult_request_btn {
		padding: 13px 0 10px;
	}
}
