/* Survei IPAK - Fluent Design 2 */
.ipak-wrap {
	--ipak-accent: #0F6CBD;
	--ipak-accent-dark: #0C5697;
	--ipak-accent-soft: #EBF3FC;
	--ipak-text: #242424;
	--ipak-text-soft: #616161;
	--ipak-border: #E0E0E0;
	--ipak-bg: #FAFAFA;
	--ipak-radius: 8px;
	--ipak-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.06);
	max-width: 820px;
	margin: 0 auto;
	font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
	color: var(--ipak-text);
	line-height: 1.6;
}

.ipak-card {
	background: #FFFFFF;
	border: 1px solid var(--ipak-border);
	border-radius: var(--ipak-radius);
	box-shadow: var(--ipak-shadow);
	padding: 28px;
	margin-bottom: 18px;
}

/* Header */
.ipak-header {
	border-top: 4px solid var(--ipak-accent);
	text-align: left;
}
.ipak-header-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background: var(--ipak-accent-soft);
	color: var(--ipak-accent);
	margin-bottom: 14px;
}
.ipak-title {
	font-size: 22px;
	font-weight: 600;
	line-height: 1.35;
	margin: 0 0 10px;
	color: var(--ipak-text);
}
.ipak-desc {
	font-size: 14.5px;
	color: var(--ipak-text-soft);
	margin: 0;
}

/* Section */
.ipak-section-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 17px;
	font-weight: 600;
	margin: 0 0 20px;
	color: var(--ipak-text);
}
.ipak-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	background: var(--ipak-accent);
	color: #FFFFFF;
	font-size: 14px;
	font-weight: 600;
	flex-shrink: 0;
}
.ipak-sub-title {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 12px;
	color: var(--ipak-text-soft);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Field */
.ipak-field { margin-bottom: 22px; }
.ipak-field:last-child { margin-bottom: 0; }
.ipak-label {
	display: block;
	font-size: 14.5px;
	font-weight: 600;
	margin-bottom: 10px;
	color: var(--ipak-text);
}
.ipak-optional { font-weight: 400; color: var(--ipak-text-soft); font-size: 13px; }
.ipak-required { color: #C42B1C; }

.ipak-input,
.ipak-textarea {
	width: 100%;
	border: 1px solid var(--ipak-border);
	border-bottom: 2px solid #8A8A8A;
	border-radius: 6px 6px 2px 2px;
	background: var(--ipak-bg);
	padding: 10px 12px;
	font-size: 14.5px;
	font-family: inherit;
	color: var(--ipak-text);
	transition: border-color .15s ease, background .15s ease;
	box-sizing: border-box;
}
.ipak-input:focus,
.ipak-textarea:focus {
	outline: none;
	background: #FFFFFF;
	border-bottom-color: var(--ipak-accent);
}
.ipak-input-sm { max-width: 160px; }
.ipak-textarea { resize: vertical; }

/* Radio options */
.ipak-options { display: flex; flex-direction: column; gap: 8px; }
.ipak-options-inline { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.ipak-radio {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border: 1px solid var(--ipak-border);
	border-radius: 6px;
	background: #FFFFFF;
	padding: 10px 14px;
	font-size: 14.5px;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
	user-select: none;
}
.ipak-radio:hover { border-color: var(--ipak-accent); background: var(--ipak-accent-soft); }
.ipak-radio input { accent-color: var(--ipak-accent); width: 16px; height: 16px; margin: 0; }
.ipak-radio:has(input:checked) {
	border-color: var(--ipak-accent);
	background: var(--ipak-accent-soft);
	box-shadow: inset 0 0 0 1px var(--ipak-accent);
}

/* Likert scale */
.ipak-scale {
	display: flex;
	gap: 8px;
}
.ipak-scale-item {
	flex: 1;
	cursor: pointer;
	position: relative;
}
.ipak-scale-item input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.ipak-scale-num {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	border: 1px solid var(--ipak-border);
	border-radius: 6px;
	background: var(--ipak-bg);
	font-size: 15px;
	font-weight: 600;
	color: var(--ipak-text-soft);
	transition: all .15s ease;
}
.ipak-scale-item:hover .ipak-scale-num { border-color: var(--ipak-accent); color: var(--ipak-accent); }
.ipak-scale-item input:checked + .ipak-scale-num {
	background: var(--ipak-accent);
	border-color: var(--ipak-accent);
	color: #FFFFFF;
	box-shadow: 0 2px 6px rgba(15,108,189,0.35);
}
.ipak-scale-item input:focus-visible + .ipak-scale-num {
	outline: 2px solid var(--ipak-accent);
	outline-offset: 2px;
}
.ipak-scale-caption {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: var(--ipak-text-soft);
	margin-top: 6px;
}

/* Scale info */
.ipak-scale-info {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: var(--ipak-accent-soft);
	border-color: #C7E0F4;
	padding: 16px 20px;
	color: var(--ipak-accent-dark);
}
.ipak-scale-info svg { flex-shrink: 0; margin-top: 2px; }
.ipak-scale-info p { margin: 0; font-size: 13.5px; }

/* Error state */
.ipak-field.ipak-error .ipak-label { color: #C42B1C; }
.ipak-field.ipak-error .ipak-scale-num,
.ipak-field.ipak-error .ipak-radio,
.ipak-field.ipak-error .ipak-input { border-color: #C42B1C; }

/* Submit */
.ipak-submit-card { text-align: center; }
.ipak-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--ipak-accent);
	color: #FFFFFF;
	border: none;
	border-radius: 6px;
	padding: 12px 32px;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
	box-shadow: 0 2px 6px rgba(15,108,189,0.3);
}
.ipak-btn:hover { background: var(--ipak-accent-dark); }
.ipak-btn:active { transform: scale(0.98); }
.ipak-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.ipak-msg { display: none; margin-bottom: 14px; padding: 12px 16px; border-radius: 6px; font-size: 14px; text-align: left; }
.ipak-msg.ipak-msg-error { display: block; background: #FDE7E9; border: 1px solid #F1BBBC; color: #C42B1C; }

/* Success */
.ipak-success { text-align: center; border-top: 4px solid #107C10; }
.ipak-success-icon { color: #107C10; margin-bottom: 12px; }
.ipak-success h3 { font-size: 20px; font-weight: 600; margin: 0 0 8px; }
.ipak-success p { color: var(--ipak-text-soft); margin: 0; font-size: 14.5px; }

/* ===== Hasil ===== */
.ipak-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 14px;
	margin-bottom: 18px;
}
.ipak-stat { padding: 20px; text-align: center; margin-bottom: 0; }
.ipak-stat-label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ipak-text-soft);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 8px;
}
.ipak-stat-value { display: block; font-size: 32px; font-weight: 700; color: var(--ipak-text); line-height: 1.1; }
.ipak-stat-cat { display: block; font-size: 13px; font-weight: 600; margin-top: 6px; color: var(--ipak-text-soft); }
.ipak-grade-a { border-top: 4px solid #107C10; }
.ipak-grade-a .ipak-stat-value, .ipak-grade-a .ipak-stat-cat { color: #107C10; }
.ipak-grade-b { border-top: 4px solid var(--ipak-accent); }
.ipak-grade-b .ipak-stat-value, .ipak-grade-b .ipak-stat-cat { color: var(--ipak-accent); }
.ipak-grade-c { border-top: 4px solid #CA5010; }
.ipak-grade-c .ipak-stat-value, .ipak-grade-c .ipak-stat-cat { color: #CA5010; }
.ipak-grade-d { border-top: 4px solid #C42B1C; }
.ipak-grade-d .ipak-stat-value, .ipak-grade-d .ipak-stat-cat { color: #C42B1C; }

.ipak-demo-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
}

.ipak-bar-row { margin-bottom: 16px; }
.ipak-bar-row:last-child { margin-bottom: 0; }
.ipak-bar-head {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: 13.5px;
	margin-bottom: 6px;
	color: var(--ipak-text);
}
.ipak-bar-head span:last-child { white-space: nowrap; color: var(--ipak-text-soft); font-weight: 600; }
.ipak-bar-score { color: var(--ipak-accent) !important; }
.ipak-bar {
	height: 8px;
	background: #EDEDED;
	border-radius: 99px;
	overflow: hidden;
}
.ipak-bar-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--ipak-accent), #2B88D8);
	border-radius: 99px;
	transition: width .4s ease;
}

.ipak-result-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 4px;
}
.ipak-result-section-head .ipak-section-title { margin-bottom: 16px; }
.ipak-pill {
	display: inline-block;
	background: var(--ipak-accent-soft);
	color: var(--ipak-accent-dark);
	border-radius: 99px;
	padding: 5px 14px;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 16px;
}

.ipak-empty { text-align: center; color: var(--ipak-text-soft); }
.ipak-empty svg { color: #C8C8C8; margin-bottom: 10px; }
.ipak-empty h3 { font-size: 18px; font-weight: 600; margin: 0 0 6px; color: var(--ipak-text); }
.ipak-empty p { margin: 0; font-size: 14px; }

.ipak-footnote { padding: 16px 22px; }
.ipak-footnote p { margin: 0; font-size: 12.5px; color: var(--ipak-text-soft); }

@media (max-width: 640px) {
	.ipak-card { padding: 20px 16px; }
	.ipak-title { font-size: 18px; }
	.ipak-scale { gap: 5px; }
	.ipak-scale-num { height: 40px; font-size: 14px; }
	.ipak-demo-grid { grid-template-columns: 1fr; gap: 20px; }
	.ipak-stat-value { font-size: 26px; }
}
