/* ========================================
   Widget: Module Check
======================================== */

/* Section Layout */

.budi-module-check {
	width: 100%;
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
}

/* Progress */

.budi-module-check__progress {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
}

.budi-module-check__progress-text {
	margin: 0;
	flex-shrink: 0;
	color: rgba(138, 64, 141, 0.8);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.15em;
	white-space: nowrap;
}

.budi-module-check__progress-track {
	flex: 1 1 auto;
	height: 6px;
	border-radius: 999px;
	background-color: rgba(138, 64, 141, 0.2);
	overflow: hidden;
}

.budi-module-check__progress-bar {
	display: block;
	height: 100%;
	border-radius: 999px;
	background-color: rgba(138, 64, 141, 0.8);
	transition: width 0.25s ease;
}

/* Quiz */

.budi-module-check__quiz {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.budi-module-check__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 86px;
	padding: 23px 25px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 15px;
	background: linear-gradient(270deg, #8a408d 0%, #322447 100%);
	color: #fff;
	box-sizing: border-box;
}

.budi-module-check__item-content {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: 1 1 auto;
	min-width: 0;
}

.budi-module-check__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border: 1px solid rgba(211, 154, 214, 0.4);
	border-radius: 999px;
	background-color: rgba(211, 154, 214, 0.15);
	color: #fff;
	font-size: 15px;
	font-weight: 900;
	font-style: italic;
	line-height: 1em;
}

.budi-module-check__question {
	flex: 1 1 auto;
	margin: 0;
	min-width: 0;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: normal;
}

.budi-module-check__answers {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	gap: 8px;
}

div.budi-module-check__answers button.budi-module-check__answer {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	margin: 0;
	padding: 12px 20px;
	border: 1px solid rgba(255, 255, 255, 0.3) !important;
	border-radius: 999px;
	background-color: transparent;
	color: rgba(255, 255, 255, 0.9);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2em;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

div.budi-module-check__answers button.budi-module-check__answer:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

div.budi-module-check__answers button.budi-module-check__answer.is-selected,
div.budi-module-check__answers button.budi-module-check__answer[aria-pressed="true"] {
	background-color: #fff;
	border-color: #fff;
	color: #322447;
}

/* Result */

.budi-module-check__result {
	margin-top: 40px;
}

.budi-module-check__result[hidden] {
	display: none !important;
}

.budi-module-check__result-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 40px 36px;
	border-radius: 25px;
	background-color: #fff;
	box-shadow: 0 18px 44px rgba(20, 4, 40, 0.25);
	text-align: center;
}

.budi-module-check__result-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0;
	padding: 6px 15px;
	border-radius: 999px;
	background-color: rgba(138, 64, 141, 0.1);
	color: #8a408d;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.13em;
	line-height: 1.2em;
	text-transform: uppercase;
}

.budi-module-check__result-title {
	margin: 0;
	max-width: 928px;
	color: #322447;
	font-size: 35px;
	font-weight: 900;
	font-style: italic;
	letter-spacing: 0;
	line-height: 1.715em;
	text-transform: uppercase;
}

.budi-module-check__result-desc {
	margin: 0 0 22px;
	max-width: 686px;
	color: #666;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.445em;
}

.budi-module-check__cta-wrap {
	width: auto;
	max-width: none;
	margin-bottom: 0;
}

.budi-module-check__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 215px;
	min-height: 50px;
	padding: 18px 35px;
	border: 0;
	border-radius: 30px;
	background: linear-gradient(0deg, #322447 0%, #8a408d 100%);
	color: #fff !important;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.075em;
	line-height: 0.875em;
	text-decoration: none !important;
	text-transform: uppercase;
}

.budi-module-check__cta:hover,
.budi-module-check__cta:focus {
	color: #fff !important;
	opacity: 0.92;
}

div.budi-module-check__result-inner button.budi-module-check__reset,
div.budi-module-check__result-inner button.budi-module-check__reset:hover {
	appearance: none;
	margin: 13px 0 0;
	padding: 0;
	border: 0;
	background: none;
	color: #8a408d;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2em;
	text-decoration: underline;
	cursor: pointer;
}

/* CF7 skill-check fields — keep in DOM for sync, hide visually */
.budi-module-check-cf7-fields {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.budi-module-check-cf7-sync {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.budi-module-check-cf7-sync .wpcf7-form-control-wrap,
.budi-module-check-cf7-sync .wpcf7-list-item {
	margin: 0;
}

/* Hide CF7 response box until form is actually submitted */
.budi-module-inquiry__form ~ .wpcf7-response-output:empty,
.budi-cf7 ~ .wpcf7-response-output:empty,
.wpcf7-form .wpcf7-response-output:empty,
.wpcf7-form .wpcf7-response-output[aria-hidden="true"] {
	display: none !important;
}

.wpcf7-form.sent .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output,
.wpcf7-form.aborted .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output {
	display: block !important;
}

/* Responsive */

@media screen and (max-width: 991px) {
	.budi-module-check__item {
		flex-wrap: wrap;
		align-items: flex-start;
		gap: 16px;
		min-height: 0;
		padding: 20px;
	}

	.budi-module-check__item-content {
		width: 100%;
	}

	.budi-module-check__answers {
		width: 100%;
		flex-wrap: wrap;
		justify-content: flex-start;
	}

	.budi-module-check__result-inner {
		padding: 32px 24px;
	}

	.budi-module-check__result-title {
		font-size: 28px;
		line-height: 1.35em;
	}

	.budi-module-check__result-desc {
		margin-bottom: 18px;
		font-size: 16px;
		line-height: 1.4em;
	}
}

@media screen and (max-width: 767px) {
	.budi-module-check__progress {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.budi-module-check__progress-track {
		width: 100%;
	}

	.budi-module-check__quiz {
		gap: 12px;
	}

	.budi-module-check__item {
		padding: 16px;
	}

	.budi-module-check__question {
		font-size: 15px;
	}

	.budi-module-check__answer {
		min-height: 36px;
		padding: 10px 16px;
		font-size: 13px;
	}

	.budi-module-check__result {
		margin-top: 28px;
	}

	.budi-module-check__result-inner {
		border-radius: 20px;
		padding: 28px 18px;
	}

	.budi-module-check__result-title {
		font-size: 24px;
	}

	.budi-module-check__result-badge {
		font-size: 12px;
		letter-spacing: 0.1em;
	}

	.budi-module-check__cta {
		width: 100%;
		min-width: 0;
	}
}
