/* BJC Avada Form UX v1.0.0 — 제출 전 연락처 확인 팝업 (네이티브 <dialog>, top layer)
   모바일(≤640): 아래에서 올라오는 시트 / 데스크톱: 가운데 팝업. 색은 폼 10879와 같은 파랑 #004ffe */
dialog.bjc-fux {
	--fux-blue: #004ffe;
	--fux-ink: #14171f;
	--fux-muted: #5b616e;
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font-family: inherit;
}

dialog.bjc-fux[open] {
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

dialog.bjc-fux::backdrop {
	background: rgba(20, 23, 31, .48);
	animation: bjcFuxFade .22s ease both;
}

.bjc-fux__sheet {
	width: 100%;
	max-width: 440px;
	box-sizing: border-box;
	padding: 28px 20px calc(20px + env(safe-area-inset-bottom));
	border-radius: 22px 22px 0 0;
	background: #ffffff;
	box-shadow: 0 -12px 40px rgba(20, 23, 31, .18);
	text-align: center;
	outline: none;
	animation: bjcFuxUp .36s cubic-bezier(.22, 1, .36, 1) both;
}

dialog.bjc-fux.is-closing::backdrop {
	animation: bjcFuxFade .2s ease reverse both;
}

dialog.bjc-fux.is-closing .bjc-fux__sheet {
	animation: bjcFuxUp .2s ease-in reverse both;
}

.bjc-fux .bjc-fux__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--fux-ink);
}

/* 확인할 대상인 번호만 강조 */
.bjc-fux .bjc-fux__number {
	margin: 10px 0 0;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.25;
	color: var(--fux-blue);
	font-variant-numeric: tabular-nums;
	animation: bjcFuxNumber .42s cubic-bezier(.22, 1, .36, 1) .1s both;
}

.bjc-fux .bjc-fux__help {
	margin: 8px 0 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--fux-muted);
}

.bjc-fux__actions {
	display: flex;
	gap: 10px;
	margin-top: 24px;
}

.bjc-fux .bjc-fux__btn {
	flex: 1;
	min-height: 56px;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	font: inherit;
	font-size: 17px;
	font-weight: 800;
	cursor: pointer;
}

.bjc-fux .bjc-fux__btn--ghost {
	background: #f1f3f7;
	color: #3b4150;
}

.bjc-fux .bjc-fux__btn--primary {
	flex: 1.4;
	background: var(--fux-blue);
	color: #ffffff;
}

.bjc-fux .bjc-fux__btn:focus-visible {
	outline: 2px solid var(--fux-blue);
	outline-offset: 3px;
}

@keyframes bjcFuxFade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes bjcFuxUp {
	from { transform: translateY(100%); }
	to { transform: none; }
}

@keyframes bjcFuxNumber {
	from { opacity: 0; transform: translateY(8px) scale(.96); }
	to { opacity: 1; transform: none; }
}

/* 데스크톱: 가운데 팝업 */
@media (min-width: 641px) {
	dialog.bjc-fux[open] {
		align-items: center;
	}
	.bjc-fux__sheet {
		padding: 32px 28px 24px;
		border-radius: 22px;
		box-shadow: 0 24px 60px rgba(20, 23, 31, .24);
		animation-name: bjcFuxPop;
		animation-duration: .3s;
	}
	dialog.bjc-fux.is-closing .bjc-fux__sheet {
		animation-name: bjcFuxPop;
	}
}

@keyframes bjcFuxPop {
	from { opacity: 0; transform: translateY(12px) scale(.94); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	dialog.bjc-fux::backdrop,
	.bjc-fux * {
		animation: none !important;
	}
}
