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

html {
	background: #031443;
}

body {
	width: 100%;
	max-width: 720px;
	min-height: 100%;
	margin: 0 auto;
	background: #071f5d;
	color: #111;
	font-family: "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
	box-shadow: 0 0 36px rgba(0, 0, 0, .42);
}

body.modal-open {
	overflow: hidden;
}

img {
	display: block;
	width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
textarea {
	font: inherit;
}

.container,
.imagemap {
	position: relative;
	width: 100%;
}

.footer-space {
	height: 145px;
	background: #0d3186;
}

/* 하단 신청 버튼 */
.application-bar {
	position: fixed;
	right: 0;
	bottom: calc(74px + env(safe-area-inset-bottom));
	left: 0;
	z-index: 900;
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	padding: 10px 18px;
	background: linear-gradient(to top, rgba(4, 20, 66, .94), rgba(4, 20, 66, .58));
}

.register-button {
	display: block;
	width: 100%;
	min-height: 48px;
	border: 1px solid rgba(255, 255, 255, .76);
	border-radius: 999px;
	background: linear-gradient(135deg, #f6fbff 0%, #dcecff 100%);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
	color: #0a348f;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -.3px;
	cursor: pointer;
}

.register-button:active {
	transform: translateY(1px);
}

/* 하단 내비게이션 */
.nav {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 950;
	display: flex;
	width: 100%;
	max-width: 720px;
	min-height: 74px;
	margin: 0 auto;
	padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, .98);
	box-shadow: 0 -3px 18px rgba(0, 0, 0, .18);
}

.nav-item {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
}

.nav-link {
	display: flex;
	width: 100%;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #24334f;
}

.nav-icon {
	display: block;
	line-height: 1;
}

.nav-item img {
	width: 24px;
	height: 24px;
	margin-bottom: 4px;
	object-fit: contain;
}

.nav-text {
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
}

/* 신청 팝업 */
.popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 18px;
	background: rgba(0, 7, 29, .78);
	backdrop-filter: blur(3px);
}

.popup-overlay.show {
	display: flex;
}

.popup {
	position: relative;
	width: 100%;
	max-width: 500px;
	max-height: calc(100vh - 36px);
	max-height: calc(100dvh - 36px);
	overflow-y: auto;
	padding: 24px 18px 20px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
	overscroll-behavior: contain;
}

.popup h1 {
	margin: 0 38px 20px;
	color: #082d81;
	font-size: 21px;
	font-weight: 800;
	text-align: center;
}

.close-btn {
	position: absolute;
	top: 9px;
	right: 10px;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: #eef3fb;
	color: #163b7d;
	font-size: 28px;
	line-height: 35px;
	cursor: pointer;
}

.consent-box {
	margin-bottom: 18px;
	padding: 12px;
	border: 1px solid #d7dfec;
	border-radius: 8px;
	background: #f7f9fc;
	color: #4a5568;
	font-size: 12px;
	line-height: 1.55;
}

.consent-title {
	margin-bottom: 4px;
	color: #1e355f;
	font-weight: 800;
}

.form-group {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.form-group label {
	color: #24334f;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
}

.form-group input,
.form-group textarea {
	width: 100%;
	border: 1px solid #ced7e5;
	border-radius: 7px;
	outline: 0;
	background: #fff;
	color: #111827;
	font-size: 14px;
}

.form-group input {
	min-height: 42px;
	padding: 9px 11px;
}

.form-group textarea {
	min-height: 98px;
	padding: 10px 11px;
	line-height: 1.5;
	resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
	border-color: #1b5fc1;
	box-shadow: 0 0 0 3px rgba(27, 95, 193, .12);
}

.form-group-block {
	display: block;
}

.form-group-block label {
	display: block;
	margin-bottom: 7px;
}

.application-notice {
	margin: 17px 0;
	padding: 12px;
	border-radius: 8px;
	background: #edf4ff;
	color: #183a72;
	font-size: 12px;
	line-height: 1.55;
	word-break: keep-all;
}

.application-notice p + p {
	margin-top: 6px;
}

.submit-group {
	display: block;
	margin: 0;
}

.submit-btn {
	width: 100%;
	min-height: 48px;
	border: 0;
	border-radius: 8px;
	background: linear-gradient(135deg, #0d55b8, #082d81);
	box-shadow: 0 8px 20px rgba(8, 45, 129, .25);
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	cursor: pointer;
}

.submit-btn:disabled {
	opacity: .65;
	cursor: wait;
}

/* 접수 마감 안내 레이어 */
.closed-notice-overlay {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 7, 29, .78);
	backdrop-filter: blur(3px);
}

.closed-notice-overlay.show {
	display: flex;
}

.closed-notice-dialog {
	position: relative;
	width: 100%;
	max-width: 440px;
	padding: 30px 22px 22px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
	text-align: center;
}

.closed-notice-dialog h2 {
	margin: 0 36px 18px;
	color: #082d81;
	font-size: 21px;
	font-weight: 800;
}

.closed-notice-message {
	margin-bottom: 22px;
	color: #263850;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.7;
	word-break: keep-all;
}

.closed-notice-message p + p {
	margin-top: 10px;
}

.closed-notice-confirm {
	width: 100%;
	min-height: 46px;
	border: 0;
	border-radius: 8px;
	background: linear-gradient(135deg, #0d55b8, #082d81);
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	cursor: pointer;
}

/* 음악 버튼 및 첫 화면 안내 */
.music_onoff {
	position: fixed;
	right: 14px;
	right: max(14px, calc((100vw - 720px) / 2 + 14px));
	bottom: calc(154px + env(safe-area-inset-bottom));
	z-index: 990;
	width: 44px;
	height: auto;
	cursor: pointer;
}

.hint-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 7, 29, .62);
}

.hint-modal.show {
	display: flex;
}

.hint-dialog {
	width: 100%;
	max-width: 360px;
	padding: 24px 20px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
	text-align: center;
}

.hint-title {
	margin-bottom: 10px;
	color: #082d81;
	font-size: 18px;
	font-weight: 800;
}

.hint-msg {
	margin-bottom: 17px;
	color: #344054;
	font-size: 15px;
	line-height: 1.6;
}

.hint-actions {
	display: flex;
	justify-content: center;
}

.hint-close-btn {
	min-width: 120px;
	padding: 10px 18px;
	border: 0;
	border-radius: 999px;
	background: #082d81;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

@media (max-width: 360px) {
	.popup-overlay {
		padding: 10px;
	}

	.popup {
		max-height: calc(100vh - 20px);
		max-height: calc(100dvh - 20px);
		padding: 21px 14px 16px;
	}

	.form-group {
		grid-template-columns: 84px minmax(0, 1fr);
	}
}
