/* Import Google font - Noto Sans KR */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap");

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Noto Sans KR', sans-serif;
}

body {
	min-height: 100vh;
	padding: 0;
	background: #f6f7fb;
	color: #222;
}

/* ===== 배경 비디오 ===== */
.video-background {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: -1;
}
.video-background::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.45);
}
#video {
	width: auto;
	height: 100vh;
}

img { display:block; width:100%; }

/* ===== 카드 컨테이너 ===== */
.container,
.container2 {
	position: relative;
	max-width: 880px;
	width: 100%;
	margin: 0 auto;
	border-radius: 14px;
	background: #fff;
	box-shadow:
		0 10px 30px rgba(0,0,0,0.06),
		0 2px 10px rgba(0,0,0,0.03);
}
.container { padding: 28px 26px 40px; }
.container2 { margin-bottom: 14px; overflow: hidden; }

/* ===== 헤더 ===== */
.container header {
	font-size: 1.6rem;
	font-weight: 700;
	color: #222;
	text-align: center;
	letter-spacing: -.02em;
}

/* ===== 폼 ===== */
.form { margin-top: 24px; }

.input-box {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 18px;
}

.input-box label {
	font-size: 0.95rem;
	font-weight: 700;
	color: #2b2b2b;
}

.form :where(.input-box input, .select-box) {
	height: 52px;
	width: 100%;
	outline: none;
	font-size: 1rem;
	color: #2d2d2d;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 0 16px;
	background: #fff;
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.form :where(.input-box input, .select-box):focus {
	border-color: #8a7cfb;
	box-shadow: 0 0 0 4px rgba(138,124,251,0.15);
}

.select-box select {
	height: 100%;
	width: 100%;
	outline: none;
	border: none;
	background: transparent;
	font-size: 1rem;
	color: #2d2d2d;
}

.form .column {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 4px;
}

/* ===== 도움말 ===== */
.help {
	font-size: .9rem;
	color: #6b7280;
	margin-top: 6px;
}

/* ===== 주소 섹션 (폼과 통일) ===== */
.address-wrap {
	margin-top: 8px;
	padding: 16px;
	border: 1px dashed #e5e7eb;
	border-radius: 12px;
	background: #fafbff;
}
.addr-inline {
	display: grid;
	grid-template-columns: 1fr 120px;
	gap: 10px;
}
.btn-find {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	border-radius: 10px;
	border: 1px solid #e5e7eb;
	background: #f3f4f6;
	font-weight: 700;
	cursor: pointer;
	user-select: none;
	transition: background .2s, border-color .2s, transform .05s;
}
.btn-find:hover { background: #eef1ff; border-color: #cdd3ff; }
.btn-find:active { transform: translateY(1px); }

/* ===== Fieldset ===== */
fieldset {
	margin-top: 24px;
	padding: 20px;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	background: #fff;
}
legend {
	font-weight: 700;
	background: #222;
	color: #fff;
	padding: 6px 12px;
	border-radius: 8px;
}

/* ===== 제출 버튼 (div) ===== */
.btn-submit {
	margin-top: 26px;
	height: 56px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.05rem;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(180deg, #8a7cfb 0%, #6c58f6 100%);
	box-shadow: 0 8px 20px rgba(108,88,246,0.25);
	cursor: pointer;
	user-select: none;
	transition: transform .06s, filter .2s;
}
.btn-submit:hover { filter: brightness(1.03); }
.btn-submit:active { transform: translateY(1px); }

/* ===== 사진 업로더 ===== */
.photo-uploader {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px;
}
.photo-uploader input[type="file"] {
	height: 52px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 12px;
	background: #fff;
}
.photo-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}
.btn-ghost {
	height: 52px;
	padding: 0 14px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #f8fafc;
	cursor: pointer;
	transition: background .2s, border-color .2s, transform .05s;
	font-weight: 700;
}
.btn-ghost:hover { background:#eef1ff; border-color:#cdd3ff; }
.btn-ghost:active { transform: translateY(1px); }

.photo-preview {
	margin-top: 10px;
	display: grid;
	gap: 8px;
}
.photo-info {
	display: inline-block;
	font-size: .92rem;
	color: #374151;
	background: #eef2ff;
	border: 1px solid #c7d2fe;
	border-radius: 10px;
	padding: 8px 12px;
	width: fit-content;
}
.photo-img {
	width: 160px;
	height: 160px;
	object-fit: cover; /* 다양한 해상도/비율 대응 (iOS Safari OK) */
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	background: #fff;
}
.photo-note {
	font-size: .9rem;
	color: #6b7280;
}

/* 모바일 */
@media screen and (max-width: 720px) {
	.photo-uploader {
		grid-template-columns: 1fr auto;
	}
	.photo-img {
		width: 128px;
		height: 128px;
	}
	.form .column {
		grid-template-columns: 1fr;
	}
	.addr-inline {
		grid-template-columns: 1fr 110px;
	}
}
