/* Reset */
* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

/* Base */
html {
	overflow-x: hidden;
	background-color: #262626;
	scroll-behavior: smooth;
	font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
	height: 100%;
	margin: 0;
	padding: 0;
}

body {
	-webkit-overflow-scrolling: touch;
	overflow: hidden;
}

.container {
	width: 820px;
	margin: 0 auto;
}

.container img {
	width: 100%;
	display: block;
}

img.img100 {
	width: 100%;
}

/* Form Section */
.form_section {
	position: relative;
	overflow: visible;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
}

.inputForm-wrapper {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 100%;
	background-color: #fff;
	padding: 20px;
}

.top_section {
	position: relative;
	width: 100%;
	padding-bottom: 30px;
	background-color: #fff;
}

.top_section .formBtn {
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	width: 80%;
	cursor: pointer;
	border: none;
	background: transparent;
	animation: formBtnScale 2s ease-in-out infinite;
	transform-origin: center;
	will-change: transform;
}

/* 고정 위치 버튼 (화면에서 벗어났을 때 중앙 하단에 고정) */
.formBtn.sticky {
	position: fixed;
	bottom: 15px;
	left: 50%;
	z-index: 1000;
	width: 90%;
	max-width: 600px;
	transition: opacity 240ms ease-in-out;
	/* transform은 애니메이션이 계속 적용되도록 유지 */
}

/* formBtn 숨김 (form_section이 보일 때) */
.formBtn.hidden {
	opacity: 0;
	pointer-events: none;
}

/* formBtn 확대/축소 애니메이션 */
@keyframes formBtnScale {
	0% {
		transform: translateX(-50%) scale(1);
	}
	50% {
		transform: translateX(-50%) scale(1.05);
	}
	100% {
		transform: translateX(-50%) scale(1);
	}
}

.inputForm-wrapper > div {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 15px;
	text-align: left;
	margin-bottom: 10px;
}

.inputForm-wrapper > div label {
	font-weight: bold;
	text-align: left;
}

.inputForm-wrapper > div input,
.inputForm-wrapper > div select {
	flex: 1;
	padding: 10px;
	border: none;
	border: 1px solid #ddd;
	font-size: 16px;
	box-sizing: border-box;
	background: transparent;
	border-radius: 5px;
	height: 50px;
}

.inputForm-wrapper > div input::placeholder {
	color: #ccc;
}

.inputForm-wrapper > div select {
	padding: 10px 30px 10px 10px;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-size: 16px;
	box-sizing: border-box;
	background: transparent;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 1em;
	cursor: pointer;
}

.inputForm-wrapper > div select:hover {
	border: 1px solid #1233da;
}

.inputForm-wrapper > div select:focus {
	outline: none;
	border: 1px solid #1233da;
}

/* select 자체의 placeholder 스타일 */
.inputForm-wrapper > div select:invalid {
	color: #999;
}
.inputForm-wrapper > div select option {
	color: #000;
}

.inputForm-wrapper > div input:focus {
	outline: none;
	border: 1px solid #1233da;
}

/* Footer */
footer {
	position: relative;
	width: 100%;
	background-color: #121f3e;
	color: #fff;
	padding: 20px;
	text-align: center;
	display: none; /* 초기에는 숨김 */
}

footer .scrollTopBtn {
	position: absolute;
	bottom: 20px;
	right: 20px;
	cursor: pointer;
	z-index: 100;
}

footer > img {
	width: 100%;
	display: block;
}

footer .scrollTopBtn img {
	width: 100%;
	display: block;
}

/* More Button */
.moreBtn {
	width: 100%;
	background-color: #121f3e;
	color: #fff;
	border: none;
	padding: 15px;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.moreBtn:hover {
	background-color: #1a2b4a;
}

.moreBtn.active {
	background-color: #1a2b4a;
}

.moreBtn::after {
	content: "▼";
	transition: transform 0.3s ease;
}

.moreBtn.active::after {
	transform: rotate(180deg);
}

/* Privacy Box */
.privacy_box {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
}

.privacy_box label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.privacy_box input[type="checkbox"] {
	display: none;
}

.privacy_box input[type="checkbox"] + span {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 26px;
	background-color: #ccc;
	border-radius: 13px;
	transition: all 0.3s;
}

.privacy_box input[type="checkbox"] + span:before {
	content: "";
	position: absolute;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background-color: white;
	top: 2px;
	left: 2px;
	transition: all 0.3s;
}

.privacy_box input[type="checkbox"]:checked + span {
	background-color: #1233da;
}

.privacy_box input[type="checkbox"]:checked + span:before {
	transform: translateX(24px);
}

.agreeText {
	font-size: 17px;
}

#agreeView {
	color: #1233da;
	text-decoration: underline;
}

/* Modal */
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(5px);
}

.modal-content {
	position: relative;
	background-color: #fff;
	margin: 5% auto;
	padding: 30px;
	width: 80%;
	max-width: 600px;
	border-radius: 15px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.modal-content h3 {
	color: #333;
	font-size: 24px;
	margin-bottom: 20px;
	text-align: center;
}

.modal-content p {
	color: #666;
	font-size: 16px;
	line-height: 1.6;
	margin: 10px 0;
}

.close {
	position: absolute;
	right: 20px;
	top: 15px;
	color: #666;
	font-size: 24px;
	font-weight: bold;
	cursor: pointer;
	transition: color 0.3s;
}

/* Fixed Button */
.fixedBtn {
	width: 80px;
	position: fixed;
	bottom: 100px;
	right: 100px;
	z-index: 100;
	display: block;
	transition: opacity 0.3s ease;
}

.fixedBtn img {
	width: 100%;
	display: block;
}

.fixedBtn.hide {
	opacity: 0;
	pointer-events: none;
}

/* Swiper Pagination */
.swiper-pagination {
	position: relative;
	margin-top: 20px;
	display: none;
}

.swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: #ccc;
	opacity: 1;
	margin: 0 5px;
}

.swiper-pagination-bullet-active {
	background: #000;
}

/* 팝업 스타일: form_section 팝업 모달 */
.formWarpBg.popup {
	position: fixed;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2000;
	width: 100%;
	max-width: 820px;
	overflow-y: visible;
	background-color: transparent;
	border-radius: 15px;
	box-shadow: 0 15px 38px rgba(0, 0, 0, 0.8);
}

.formWarpBg.popup .inputForm-wrapper {
	border-radius: 15px 15px 0 0;
}

/* 백드롭 페이드인 애니메이션 */
@keyframes backdropFadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* 팝업 닫기 버튼 */
.popup .popup-close-btn {
	display: flex;
}
.popup-close-btn {
	position: absolute;
	top: -50px;
	right: 15px;
	width: 50px;
	height: 40px;
	border: none;
	border-radius: 10px;
	font-size: 15px;
	color: #fff;
	background-color: #ff1b3aff;
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 2001;
	font-weight: bold;
	box-shadow: 0 0px 20px rgba(0, 0, 0, 0.8);
}

/* 상단 말풍선 툴팁 스타일 */
.top-tooltip {
	position: fixed;
	top: 30px;
	left: 50%;
	right: auto;
	transform: translateX(-50%);
	z-index: 999;
	background-color: #fff4d7;
	color: #000;
	padding: 10px 15px;
	border-radius: 50px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	font-size: 20px;
	font-weight: 600;
	white-space: nowrap;
	pointer-events: none;
	animation: tooltipSlideDown 400ms ease-out;
	max-width: 90vw;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
}

/* 말풍선 꼬리 */
.top-tooltip::after {
	content: "";
	position: absolute;
	bottom: -8px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-top: 8px solid #fff;
}

/* 툴팁 슬라이드 다운 애니메이션 */
@keyframes tooltipSlideDown {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
	}
}

/* 툴팁 페이드 아웃 */
@keyframes tooltipFadeOut {
	from {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
	}
	to {
		opacity: 0;
		transform: translateX(-50%) translateY(-20px);
	}
}

/* 툴팁 명수 스타일 */
.top-tooltip .tooltip-count {
	color: #ff0000;
	font-weight: 700;
}

/* Media Queries */
@media screen and (max-width: 768px) {
	.top-tooltip {
		font-size: 16px;
	}
	.inputForm-wrapper > div.privacy_box {
		margin-top: 0;
		gap: 5px;
	}
	.formWarpBg.popup {
		width: 100%;
		max-width: 100%;
	}
	.form_section {
		font-size: 14px;
	}

	body .inputForm-wrapper > div input,
	body .inputForm-wrapper > div select {
		height: 38px;
		width: 100%;
		font-size: 14px;
	}

	.container {
		width: 100%;
	}

	.agreeText {
		font-size: 14px;
	}

	footer .scrollTopBtn {
		width: 10%;
		top: -100%;
	}

	.privacy_box input[type="checkbox"] + span {
		width: 40px;
		height: 20px;
		border-radius: 10px;
	}

	.privacy_box input[type="checkbox"] + span:before {
		width: 16px;
		height: 16px;
		top: 2px;
		left: 2px;
	}

	.privacy_box input[type="checkbox"]:checked + span:before {
		transform: translateX(20px);
	}
}
