/* AJ Form - 프론트엔드 (폼 + 설문 결과) */

.aj-form-frontend {
	max-width: 560px;
	margin: 0 0 20px;
}

.aj-form-field-wrap {
	margin-bottom: 16px;
}

.aj-form-frontend label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.aj-form-frontend input[type="text"],
.aj-form-frontend input[type="email"],
.aj-form-frontend input[type="number"],
.aj-form-frontend input[type="date"],
.aj-form-frontend textarea,
.aj-form-frontend select {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}

.aj-form-req {
	color: #d63638;
}

/* 폼/설문 안내 내용 */
.aj-form-description {
	margin-bottom: 20px;
	padding: 14px 16px;
	background: #f7f9fb;
	border-left: 4px solid #2271b1;
	border-radius: 0 4px 4px 0;
	color: #333;
}

.aj-form-description p:last-child {
	margin-bottom: 0;
}

/* 스타일링된 radio / checkbox */
.aj-form-choices {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 4px;
}

.aj-form-choice {
	display: block;
	font-weight: 400;
	margin: 0;
	cursor: pointer;
}

/* 네이티브 컨트롤은 숨기고 박스로 대체 */
.aj-form-choice input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.aj-form-choice-box {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border: 1px solid #ccd0d4;
	border-radius: 6px;
	background: #fff;
	transition: border-color .15s, background .15s, box-shadow .15s;
}

.aj-form-choice:hover .aj-form-choice-box {
	border-color: #2271b1;
	background: #f3f8fd;
}

/* 체크 표시 마커 */
.aj-form-choice-mark {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	border: 2px solid #b7bcc2;
	background: #fff;
	position: relative;
	transition: border-color .15s, background .15s;
}

.aj-form-choices-radio .aj-form-choice-mark {
	border-radius: 50%;
}

.aj-form-choices-checkbox .aj-form-choice-mark {
	border-radius: 4px;
}

.aj-form-choice-mark::after {
	content: "";
	position: absolute;
	opacity: 0;
	transition: opacity .15s;
}

/* 라디오: 안쪽 점 */
.aj-form-choices-radio .aj-form-choice-mark::after {
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #fff;
	transform: translate(-50%, -50%);
}

/* 체크박스: 체크 표시 */
.aj-form-choices-checkbox .aj-form-choice-mark::after {
	top: 1px;
	left: 5px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* 선택(checked) 상태 */
.aj-form-choice input:checked + .aj-form-choice-box {
	border-color: #2271b1;
	background: #eef6fd;
	box-shadow: 0 0 0 1px #2271b1 inset;
}

.aj-form-choice input:checked + .aj-form-choice-box .aj-form-choice-mark {
	border-color: #2271b1;
	background: #2271b1;
}

.aj-form-choice input:checked + .aj-form-choice-box .aj-form-choice-mark::after {
	opacity: 1;
}

/* 키보드 포커스 표시 */
.aj-form-choice input:focus + .aj-form-choice-box {
	box-shadow: 0 0 0 2px rgba( 34, 113, 177, .4 );
}

.aj-form-choice-text {
	line-height: 1.3;
}

.aj-form-submit-btn {
	background: #2271b1;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 10px 22px;
	font-size: 15px;
	cursor: pointer;
}

.aj-form-submit-btn:hover {
	background: #135e96;
}

.aj-form-success {
	background: #edfaef;
	border: 1px solid #68de7c;
	color: #1e6e2d;
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 16px;
}

/* 설문 결과 */
.aj-form-results {
	max-width: 560px;
}

.aj-form-results-total {
	color: #666;
	font-size: 13px;
}

.aj-form-result-block {
	margin-bottom: 18px;
}

.aj-form-result-block h4 {
	margin: 0 0 8px;
}

.aj-form-bars {
	list-style: none;
	margin: 0;
	padding: 0;
}

.aj-form-bar-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
}

.aj-form-bar-label {
	flex: 0 0 130px;
	font-size: 14px;
	word-break: break-word;
}

.aj-form-bar-track {
	flex: 1 1 auto;
	height: 18px;
	background: #eee;
	border-radius: 3px;
	overflow: hidden;
}

.aj-form-bar-fill {
	display: block;
	height: 100%;
	background: #2271b1;
	min-width: 2px;
}

.aj-form-bar-value {
	flex: 0 0 100px;
	text-align: right;
	font-size: 13px;
	color: #555;
}

.aj-form-stat-note {
	color: #666;
}
