@charset "euc-kr";

/* 팝업 오버레이 */
.popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
}

/* 팝업 컨테이너 */
.popup-container {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	max-width: 450px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
}

/* 팝업 헤더 */
.popup-header {
	background: #ff4200;
	color: #ffffff;
	padding: 1.5em;
	border-radius: 12px 12px 0 0;
	position: relative;
}

.popup-title {
	margin: 0;
	font-size: 1.3em;
	font-weight: 600;
	text-align: center;
	line-height: 1.3;
}

/* 팝업 닫기 버튼 */
.popup-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: none;
	border: none;
	color: #ffffff;
	font-size: 1.8em;
	cursor: pointer;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background-color 0.3s ease;
}

.popup-close:hover {
	background-color: rgba(255, 255, 255, 0.2);
}

/* 팝업 내용 */
.popup-content {
	padding: 2em;
}

/* 폼 그룹 */
.form-group {
	margin-bottom: 1.5em;
}

.form-label {
	display: block;
	font-weight: 600;
	color: #333333;
	margin-bottom: 0.5em;
	font-size: 1em;
}

/* 입력 필드 */
.form-input,
.form-textarea {
	width: 100%;
	padding: 12px;
	border: 2px solid #ddd;
	border-radius: 8px;
	font-size: 1em;
	transition: border-color 0.3s ease;
	box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
	outline: none;
	border-color: #ff4200;
	box-shadow: 0 0 0 3px rgba(255, 66, 0, 0.1);
}

.form-textarea {
	resize: vertical;
	min-height: 80px;
}

/* 버튼 영역 */
.form-actions {
	display: flex;
	gap: 1em;
	margin-top: 2em;
}

.btn-submit,
.btn-cancel {
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	flex: 1;
}

.btn-submit {
	background: #ff4200;
	color: #ffffff;
}

.btn-submit:hover {
	background: #e63900;
	/* transform 효과 완전 제거로 배경 떨림 방지 */
	box-shadow: 0 5px 15px rgba(255, 66, 0, 0.3);
}

.btn-cancel {
	background: #6c757d;
	color: #ffffff;
}

.btn-cancel:hover {
	background: #5a6268;
	/* transform 효과 완전 제거로 배경 떨림 방지 */
}

/* 모바일 반응형 */
@media screen and (max-width: 768px) {
	.popup-container {
		width: 95%;
		margin: 1em;
	}
	
	.popup-header {
		padding: 1.2em;
	}
	
	.popup-title {
		font-size: 1.2em;
	}
	
	.popup-content {
		padding: 1.5em;
	}
	
	.form-input,
	.form-textarea {
		font-size: 16px; /* 모바일에서 자동 확대 방지 */
	}
	
	.form-actions {
		flex-direction: column;
	}
}

@media screen and (max-width: 480px) {
	.popup-container {
		width: 98%;
		margin: 0.5em;
	}
	
	.popup-header {
		padding: 1em;
	}
	
	.popup-title {
		font-size: 1.1em;
	}
	
	.popup-content {
		padding: 1em;
	}
	
	.btn-submit,
	.btn-cancel {
		padding: 10px 20px;
		font-size: 0.9em;
	}
}

