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

/* Base */
html {
	overflow-x: hidden;
	background-color: #040b25;
	scroll-behavior: smooth;
	font-family: "Pretendard GOV Variable", "Pretendard GOV", -apple-system,
		BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI",
		"Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji",
		"Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
	height: 100%;
	margin: 0;
	padding: 0;
}

body {
	position: relative;
}

img {
	width: 100%;
	display: block;
}
a {
	text-decoration: none;
	color: inherit;
}

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

/* 폼 스타일 */

/* 이름 입력 알림 스타일 */
.name-input-alert {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 10000;
	animation: slideInCenter 0.5s ease-out;
}

.alert-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: linear-gradient(135deg, #5b9cff 0%, #182fff 100%);
	color: white;
	padding: 20px;
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	max-width: 400px;
	width: 90vw;
	cursor: pointer;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.alert-content:hover {
	transform: translateY(-2px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.alert-icon {
	font-size: 24px;
	flex-shrink: 0;
}

.alert-text {
	flex: 1;
}

.alert-title {
	font-weight: bold;
	font-size: 16px;
	margin-bottom: 5px;
}

.alert-subtitle {
	font-size: 14px;
	opacity: 0.9;
}

.alert-close {
	background: #fff;
	border: none;
	color: #004aad;
	width: 100%;
	height: 40px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	margin-top: 10px;
}

.name-input-alert.fade-out {
	animation: slideOutCenter 0.5s ease-in forwards;
}

@keyframes slideInCenter {
	from {
		transform: translate(-50%, -50%) scale(0.8);
		opacity: 0;
	}
	to {
		transform: translate(-50%, -50%) scale(1);
		opacity: 1;
	}
}

@keyframes slideOutCenter {
	from {
		transform: translate(-50%, -50%) scale(1);
		opacity: 1;
	}
	to {
		transform: translate(-50%, -50%) scale(0.8);
		opacity: 0;
	}
}

/* 모바일에서 알림 스타일 조정 */
@media (max-width: 768px) {
	.name-input-alert {
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
	}

	.alert-content {
		max-width: 350px;
		width: 85vw;
		padding: 15px;
	}

	.alert-title {
		font-size: 14px;
	}

	.alert-subtitle {
		font-size: 12px;
	}

	.alert-icon {
		font-size: 20px;
	}
}

.form_section {
}

.inputForm-wrapper {
	width: 100%;
	background-color: #fff;
	padding: 3% 6% 5.5%;
	overflow: hidden;
	display: flex;
	align-items: center;
	flex-direction: column;
	gap: 15px;
}

/* 고정된 상태의 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;
	border-radius: 15px 15px 0 0;
}

.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;
	width: 100%;
}

.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: 10px;
}
.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);
	width: 100%;
}

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

.privacy_box {
	display: flex;
}

/* 모달 스타일 */
.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;
}

@media (max-width: 850px) {
	.container {
		width: 100%;
	}
	.inputForm-wrapper.fixed .inputForm-flex-wrap {
		flex-direction: column;
	}
}
