/* 모달 레이아웃 */
.review-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2000;
}

h2 {
	font-size: 22px;
	font-weight: 600;
	color: #333;
	line-height: 1.4;
	margin-bottom: 10px;
}

.highlight {
	color: #8a63d9; /* 이미지처럼 보라색 계열 */
	font-weight: 700;
}

.review-modal {
	background: #fff;
	width: 50rem;
	min-height: 33rem;
	border-radius: 30px;
	padding: 50px 40px;
	position: relative;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	text-align: left;
}

/* 별점 섹션 */
.star-rating-section {
	margin-bottom: 20px;
	display: flex;
	justify-content: center;
}

.star-container {
  display: flex;
  flex-direction: row-reverse; /* 오른쪽부터 배치 (별점 로직상 필수) */
  justify-content: center;
  width: 160px; /* 32px(별 하나) * 5개 = 160px */
  margin: 0 auto;
}
.star-container input {
	display: none;
}

/* 2. 모든 라벨을 별 반쪽 너비로 통일 */
.star-container label {
  cursor: pointer;
  width: 32px;  /* 별 반쪽 너비 */
  height: 32px;
  background-image: url('https://cdn-icons-png.flaticon.com/512/1828/1828970.png'); /* 빈 별 */
  background-repeat: no-repeat;
  background-size: 32px 32px; /* 배경 이미지 크기는 온전한 별 하나 크기 */
  filter: grayscale(1) opacity(0.3);
}


/* 채워진 별 효과 (선택된 것과 그 이전 형제들) */
.star-container input:checked ~ label, .star-container label:hover,
	.star-container label:hover ~ label {
	filter: none;
	background-image:
		url('https://cdn-icons-png.flaticon.com/512/1828/1828884.png');
	/* 채워진 별 */
}

/* 후기 박스 (이미지의 연보라 테두리 스타일) */
.review-box {
	background: rgba(222, 214, 227, 0.2);
	border: 1px solid #d1c1eb; /* 이미지와 유사한 보라색 테두리 */
	border-radius: 12px;
	padding: 25px;
	font-size: 16px;
	margin-bottom: 40px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
	transition: border-color 0.3s;
}

.review-box:focus-within {
	border-color: #9266dc;
	box-shadow: 0 0 0 2px rgba(146, 102, 220, 0.1);
}

.star-container.readonly label {
  pointer-events: none;  /* 클릭, hover 불가 */
}

/* 별 hover 색상 제거 */
.star-container.readonly input[disabled] + label {
  cursor: default;
  opacity: 1; /* 흐리지 않고 그대로 표시 */
}

/* hover 시 색 변환 막기 */
.star-container.readonly label:hover,
.star-container.readonly label:hover ~ label {
  color: inherit !important; /* 기존 색 유지 */
}

.review-box textarea {
	width: 100%;
	min-height: 150px;
	border: none;
	outline: none;
	resize: none;
	font-size: 15px; color : #333;
	box-sizing: border-box;
	background: transparent;
	color: #333;
}

.sub-text {
	color: #777; /* 조금 더 진하게 */
	font-size: 15px;
	margin-bottom: 35px; /* 제목과의 간격 */
}

/* 완료 버튼 */
.submit-btn {
	display: block;
	width: 160px;
	background: #9266dc;
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 15px 0;
	font-size: 18px;
	font-weight: bold;
	margin: 0 auto;
	cursor: pointer;
	transition: background 0.2s;
}

.submit-btn:hover {
	background: #7b4fc7;
}

.close-btn {
	position: absolute;
	top: 25px; /* 이미지에서 약간 아래로 */
	right: 25px;
	font-size: 24px; /* 더 크게 */
	background: none;
	border: none;
	cursor: pointer;
	color: #999; /* 기본 색상을 조금 연하게 */
	line-height: 1;
}