/* Minimal styles that inherit theme variables. Adjust to match client theme. */
.ct-form,
.ct-test,
.ct-test-info,
.ct-thank-you {
	max-width: 640px;
	margin: 2rem auto;
	padding: 1rem;
}
.ct-form label {
	display: block;
	margin: 0.75rem 0;
}
.ct-form label span {
	display: block;
	font-weight: 600;
	margin-bottom: 0.25rem;
}
.ct-form input[type=email],
.ct-form input[type=password] {
	width: 100%;
	padding: 0.6rem 0.75rem;
	box-sizing: border-box;
}
.ct-btn {
	display: inline-block;
	padding: 0.7rem 1.25rem;
	border: 0;
	cursor: pointer;
	font-weight: 600;
}
.ct-btn-primary {
	background: var(--wp--preset--color--primary, #0057ff);
	color: #fff;
}
.ct-question {
	border: 1px solid #e0e0e0;
	padding: 1rem;
	margin-bottom: 1rem;
	border-radius: 6px;
}
.ct-question legend {
	font-weight: 600;
}
.ct-answer {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	padding: 0.4rem 0;
	cursor: pointer;
}
.ct-form-message {
	min-height: 1.5em;
	margin-top: 0.75rem;
}

/* Terms-acceptance checkbox: checkbox inline with wrapped text, so the
   GDPR-required link stays readable at small widths. The span overrides
   the .ct-form label span bold treatment because the label text itself
   is not a field title. */
.ct-form label.ct-terms {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 1rem 0;
	font-weight: 400;
}
.ct-form label.ct-terms > span {
	display: inline;
	font-weight: 400;
	margin: 0;
	line-height: 1.4;
}
.ct-form label.ct-terms input[type=checkbox] {
	margin-top: 0.25rem;
	flex: 0 0 auto;
}
.ct-error {
	color: #b00020;
}

/* Visual marker next to required field labels. aria-hidden on the
   element handles the accessibility side; this is the sighted-user cue. */
.ct-form .ct-required {
	color: #b00020;
	font-weight: 700;
	margin-left: 2px;
}

/* Dynamic-field selects and extra input types inherit the form width
   so they align with the email/password inputs above. */
.ct-form select,
.ct-form input[type=text],
.ct-form input[type=tel],
.ct-form input[type=number] {
	width: 100%;
	padding: 0.6rem 0.75rem;
	box-sizing: border-box;
}

/* --- one-at-a-time test runner --- */
.ct-test-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
}
.ct-progress {
	flex: 1 1 auto;
}
.ct-progress-label {
	font-size: 0.9rem;
	margin-bottom: 0.35rem;
	color: #444;
}
.ct-progress-bar {
	position: relative;
	height: 8px;
	background: #e5e7eb;
	border-radius: 4px;
	overflow: hidden;
}
.ct-progress-fill {
	height: 100%;
	width: 0%;
	background: var(--wp--preset--color--primary, #0057ff);
	transition: width 0.25s ease;
}
.ct-timer {
	font-variant-numeric: tabular-nums;
	font-size: 1.15rem;
	font-weight: 600;
	padding: 0.35rem 0.75rem;
	background: #f3f4f6;
	border-radius: 6px;
	min-width: 4.5em;
	text-align: center;
}
.ct-timer-warn {
	background: #fff3cd;
	color: #855;
}
.ct-timer-critical {
	background: #fde7e9;
	color: #a00;
	animation: ct-pulse 1s infinite;
}
@keyframes ct-pulse {
	0%, 100% { opacity: 1; }
	50%      { opacity: 0.55; }
}
.ct-question-area {
	margin-bottom: 1rem;
}
.ct-nav {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	margin-top: 0.5rem;
}
.ct-btn-secondary {
	background: #e5e7eb;
	color: #111;
}
.ct-btn[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}
