/* 선택 카드 스타일 */
.option-card {
	border: 2px solid transparent;
	background: rgba(241, 245, 249, 0.6);
	border-radius: 16px;
	padding: 20px;
	height: 100%;
	transition: all 0.2s ease;
	position: relative;
	pointer-events: none; /* 라벨 클릭 방해 방지 */
}

.option-card.h-full, .option-card.w-full {
	border: 2px solid transparent;
	background: rgba(241, 245, 249, 0.6);
	border-radius: 16px;
	padding: 16px 20px;
	cursor: pointer;
	transition: all 0.2s ease;
	position: relative;
	display: flex;
	align-items: center; 
	justify-content: space-between;
	gap: 12px;
}

.option-card:hover {
	background: white;
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

input[type="radio"]:checked + .option-card,
input[type="checkbox"]:checked + .option-card {
	border-color: var(--brand-blue);
	background: white;
	box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

/* 체크 아이콘 */
.check-indicator {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 2px solid #cbd5e1;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: all 0.2s ease;
}

.check-indicator svg {
	width: 14px;
	height: 14px;
	color: white;
	opacity: 0;
	transform: scale(0.5);
	transition: all 0.2s ease;
}

input[type="radio"]:checked + .option-card .check-indicator,
input[type="checkbox"]:checked + .option-card .check-indicator {
	background-color: var(--brand-blue);
	border-color: var(--brand-blue);
}

input[type="radio"]:checked + .option-card .check-indicator svg,
input[type="checkbox"]:checked + .option-card .check-indicator svg {
	opacity: 1;
	transform: scale(1);
}

/* 슬라이더 스타일 */
input[type=range] {
	-webkit-appearance: none;
	width: 100%;
	background: transparent;
}

input[type=range]::-webkit-slider-thumb {
	-webkit-appearance: none;
	height: 24px;
	width: 24px;
	border-radius: 50%;
	background: var(--brand-blue);
	cursor: pointer;
	margin-top: -10px;
	box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
	border: 2px solid white;
}

input[type=range]::-webkit-slider-runnable-track {
	width: 100%;
	height: 6px;
	cursor: pointer;
	background: #e2e8f0;
	border-radius: 4px;
}

/* 페이지 수 직접 입력 인풋 */
.page-input {
	width: 80px;
	background: transparent;
	border: none;
	border-bottom: 2px solid var(--brand-blue);
	font-size: 1.875rem;
	font-weight: 900;
	color: var(--brand-blue);
	text-align: center;
	outline: none;
	padding-bottom: 4px;
}
.page-input::-webkit-inner-spin-button, 
.page-input::-webkit-outer-spin-button { 
	-webkit-appearance: none; 
	margin: 0; 
}

/* 로딩 모달 */
#loadingModal {
	transition: opacity 0.3s ease;
}
.spinner {
	border: 4px solid rgba(255, 255, 255, 0.3);
	border-left-color: #ffffff;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* 체크 마크 애니메이션 */
@keyframes check-scale {
	0% { transform: scale(0); opacity: 0; }
	50% { transform: scale(1.2); opacity: 1; }
	100% { transform: scale(1); opacity: 1; }
}
.check-anim {
	animation: check-scale 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}