/**
 * Leadership Under Pressure Survey — minimal defaults.
 * Themes override by targeting .lup-survey … (high specificity optional).
 */

.lup-survey {
	box-sizing: border-box;
	font: inherit;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
	max-width: 42rem;
}

.lup-survey.lup-survey--success-wide {
	max-width: min(100%, 72rem);
}

.lup-survey *,
.lup-survey *::before,
.lup-survey *::after {
	box-sizing: inherit;
}

.lup-survey__title {
	font: inherit;
	font-size: 1.25em;
	font-weight: bold;
	margin: 0 0 0.75em;
}

.lup-survey__intro,
.lup-survey__question,
.lup-survey__result {
	margin-bottom: 1.5em;
}

.lup-survey__header {
	font: inherit;
	margin-bottom: 1.25em;
	padding-bottom: 0.75em;
	border-bottom: 1px solid;
	border-color: inherit;
}

.lup-survey__section-head {
	font: inherit;
	font-size: 1.15em;
	font-weight: bold;
	margin: 0 0 0.5em;
	line-height: 1.3;
}

.lup-survey__progress {
	font: inherit;
	margin: 0;
	opacity: 0.9;
}

.lup-survey__section-body {
	font: inherit;
}

.lup-survey__block {
	font: inherit;
	margin-bottom: 2em;
}

.lup-survey__block:last-child {
	margin-bottom: 0;
}

.lup-survey__section-label {
	font: inherit;
	font-size: 0.9em;
	font-weight: bold;
	margin: 0 0 0.5em;
	text-transform: none;
}

.lup-survey__prompt {
	font: inherit;
	margin: 0 0 1em;
}

/* Per-item question text: stronger hierarchy than body copy */
.lup-survey__block .lup-survey__prompt {
	font-size: 1.08em;
	font-weight: 600;
	line-height: 1.45;
	margin: 0 0 1.1em;
	padding: 0.7em 0.9em 0.7em 1em;
	border-radius: 0.2em;
	border-left: 4px solid currentColor;
	background: rgba(128, 128, 128, 0.07);
}

@supports (background: color-mix(in srgb, red, blue)) {
	.lup-survey__block .lup-survey__prompt {
		background: color-mix(in srgb, currentColor 9%, transparent);
	}
}

.lup-survey .lup-survey__scale {
	border: 1px solid;
	border-color: inherit;
	margin: 0;
	padding: 0.75em 1em;
	font: inherit;
}

.lup-survey__score-row {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 0.35em;
	width: 100%;
	align-items: stretch;
}

.lup-survey__score-btn {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0.75em 0.25em;
	font: inherit;
	font-size: inherit;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	border: 1px solid;
	border-color: inherit;
	background: transparent;
	color: inherit;
	box-sizing: border-box;
	min-height: 2.75em;
}

.lup-survey__score-btn:hover,
.lup-survey__score-btn:focus-visible {
	outline: 2px solid;
	outline-offset: 2px;
}

.lup-survey__score-btn.is-selected {
	font-weight: bold;
	border-width: 2px;
	border-color: currentColor;
	/* Fallback tint when color-mix is unsupported */
	background: rgba(128, 128, 128, 0.14);
	color: inherit;
}

@supports (background: color-mix(in srgb, red, blue)) {
	.lup-survey__score-btn.is-selected {
		background: color-mix(in srgb, currentColor 22%, transparent);
	}
}

.lup-survey__block--answered .lup-survey__scale {
	border-color: currentColor;
}

@supports (background: color-mix(in srgb, red, blue)) {
	.lup-survey__block--answered .lup-survey__scale {
		background: color-mix(in srgb, currentColor 6%, transparent);
	}
}

.lup-survey__scale-hint {
	display: flex;
	justify-content: space-between;
	font: inherit;
	font-size: 0.85em;
	margin-top: 0.5em;
	opacity: 0.85;
}

.lup-survey__row {
	margin-bottom: 0.75em;
}

.lup-survey__row label {
	display: block;
	font: inherit;
	font-weight: bold;
	margin-bottom: 0.25em;
}

.lup-survey__row input[type="text"],
.lup-survey__row input[type="email"] {
	font: inherit;
	width: 100%;
	max-width: 100%;
	padding: 0.35em 0.5em;
}

.lup-survey__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em 1em;
	margin-top: 1em;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding-top: 0.75em;
	padding-bottom: 0.25em;
}

.lup-survey__actions > .lup-survey__back {
	flex: 0 0 auto;
}

.lup-survey__actions button,
.lup-survey__actions .lup-survey__back {
	font: inherit;
	cursor: pointer;
	padding: 0.4em 0.9em;
}

.lup-survey__back {
	font: inherit;
}

.lup-survey__next-slot {
	font: inherit;
	flex: 1 1 50%;
	min-width: min(100%, 14rem);
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.lup-survey__footer-hint {
	font: inherit;
	font-size: 0.95em;
	line-height: 1.35;
	margin: 0;
	padding: 0;
	text-align: right;
	color: inherit;
	max-width: 24rem;
}

.lup-survey__next {
	font: inherit;
	font-weight: bold;
}

.lup-survey__error {
	color: #b32d2e;
	font: inherit;
	margin: 0.5em 0;
}

.lup-survey__success {
	font: inherit;
	margin: 0 0 1em;
	padding: 0.75em 1em;
	border: 1px solid;
	border-color: inherit;
	border-radius: 0.25em;
	background: rgba(0, 128, 0, 0.08);
}

.lup-survey__warning {
	font: inherit;
	margin: 0 0 1em;
	padding: 0.75em 1em;
	border: 1px solid;
	border-color: inherit;
	border-radius: 0.25em;
	background: rgba(180, 100, 0, 0.12);
}

.lup-survey__result-raw {
	font: inherit;
	font-family: ui-monospace, monospace;
	font-size: 0.85em;
	overflow: auto;
	padding: 1em;
	border: 1px solid;
	margin: 0;
	white-space: pre-wrap;
	word-break: break-word;
}

.lup-survey__result pre {
	font: inherit;
	font-family: ui-monospace, monospace;
	font-size: 0.9em;
	overflow: auto;
	padding: 1em;
	border: 1px solid;
	margin: 0;
	white-space: pre-wrap;
	word-break: break-word;
}

.lup-survey__loading {
	display: flex;
	align-items: center;
	gap: 0.65em;
	font: inherit;
	margin: 0.5em 0;
}

.lup-survey__spinner {
	display: inline-block;
	flex-shrink: 0;
	width: 1.15em;
	height: 1.15em;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: lup-survey-spin 0.65s linear infinite;
	vertical-align: middle;
}

.lup-survey__loading-text {
	font: inherit;
}

@keyframes lup-survey-spin {
	to {
		transform: rotate(360deg);
	}
}

.lup-survey__debug-wrap {
	margin-bottom: 1em;
	padding-bottom: 1em;
	border-bottom: 1px dashed;
	border-color: inherit;
	opacity: 0.85;
}

.lup-survey__debug {
	font: inherit;
	font-size: 0.9em;
	cursor: pointer;
	text-decoration: underline;
	background: none;
	border: none;
	padding: 0;
	color: inherit;
}

.lup-survey__debug:hover,
.lup-survey__debug:focus {
	opacity: 0.75;
}

.lup-survey__result--with-report .lup-survey__title,
.lup-survey__result--with-report .lup-survey__success {
	font-size: 1.1em;
}

.lup-survey__results-frame {
	display: block;
	width: 100%;
	min-height: min(75vh, 52rem);
	height: 75vh;
	max-height: 85vh;
	border: 1px solid;
	border-color: inherit;
	margin-top: 1em;
	background: #fff;
}

.lup-survey__post-report-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	justify-content: center;
	align-items: center;
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid;
	border-color: inherit;
}

.lup-survey__cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font: inherit;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	padding: 0.55em 1.15em;
	border: 2px solid currentColor;
	border-radius: 0.25em;
	color: inherit;
	background: transparent;
	cursor: pointer;
}

.lup-survey__cta-btn:hover,
.lup-survey__cta-btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.lup-survey--unconfigured {
	opacity: 0.9;
}
