.questionnaire-section {
	padding: 100px 0;
}

.questionnaire-card {
	background: var(--white-color);
	border: 1px solid var(--divider-color);
	border-radius: 24px;
	padding: 30px;
	box-shadow: 0 20px 50px rgba(8, 54, 59, 0.08);
}

.questionnaire-progress-wrap {
	margin-bottom: 24px;
}

.questionnaire-progress-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.progress-step-text,
.progress-percent {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--primary-color);
}

.questionnaire-progress {
	height: 10px;
	background: var(--secondary-color);
	border-radius: 999px;
	overflow: hidden;
}

.questionnaire-progress-fill {
	width: 10%;
	height: 100%;
	background: linear-gradient(90deg, var(--accent-color) 0%, #3cc3cf 100%);
	border-radius: inherit;
	transition: width 0.35s ease;
}

.wizard-viewport {
	position: relative;
	min-height: 380px;
}

.wizard-step {
	display: none;
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.wizard-step.is-active {
	display: block;
	opacity: 1;
	transform: translateY(0);
}

.step-badge {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 99px;
	background: var(--secondary-color);
	color: var(--primary-color);
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 12px;
}

.wizard-question {
	margin-bottom: 10px;
	font-size: 36px;
	line-height: 1.2em;
	color: var(--primary-color);
}

.wizard-helper {
	margin-bottom: 20px;
	color: var(--text-color);
}

.wizard-control.form-control {
	height: 58px;
	border: 1px solid var(--divider-color);
	border-radius: 12px;
	padding: 10px 18px;
	color: var(--primary-color);
	background: var(--white-color);
}

.wizard-control.form-control:focus {
	border-color: var(--accent-color);
	box-shadow: 0 0 0 3px rgba(0, 168, 188, 0.18);
}

.wizard-textarea.form-control {
	height: auto;
	min-height: 180px;
	padding-top: 14px;
	resize: vertical;
}

.option-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.choice-card {
	position: relative;
	border: 1px solid var(--divider-color);
	border-radius: 12px;
	padding: 15px 16px;
	background: var(--white-color);
	cursor: pointer;
	color: var(--primary-color);
	font-weight: 600;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.choice-card:hover {
	border-color: rgba(0, 168, 188, 0.45);
	transform: translateY(-2px);
}

.choice-card input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.choice-card input:checked + span {
	color: var(--accent-color);
}

.choice-card:has(input:checked) {
	border-color: var(--accent-color);
	box-shadow: 0 10px 30px rgba(0, 168, 188, 0.18);
	background: #f4fcfd;
}

.choice-card span {
	display: block;
}

.rating-scale {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.rating-pill {
	cursor: pointer;
}

.rating-pill input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.rating-pill span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	border: 1px solid var(--divider-color);
	color: var(--primary-color);
	font-weight: 700;
	transition: all 0.25s ease;
}

.rating-pill:hover span,
.rating-pill input:focus + span {
	border-color: var(--accent-color);
}

.rating-pill input:checked + span {
	background: var(--accent-color);
	border-color: var(--accent-color);
	color: var(--white-color);
}

.toggle-group {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.toggle-option {
	cursor: pointer;
}

.toggle-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.toggle-option span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 90px;
	height: 50px;
	padding: 0 22px;
	border-radius: 999px;
	border: 1px solid var(--divider-color);
	color: var(--primary-color);
	font-weight: 600;
	transition: all 0.25s ease;
}

.toggle-option input:checked + span {
	background: var(--accent-color);
	color: var(--white-color);
	border-color: var(--accent-color);
}

.question-error {
	min-height: 22px;
	margin: 9px 0 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--error-color);
}

.review-summary {
	border: 1px solid var(--divider-color);
	border-radius: 14px;
	padding: 14px 16px;
	background: var(--secondary-color);
}

.review-item {
	padding: 10px 0;
	border-bottom: 1px solid rgba(8, 54, 59, 0.1);
}

.review-item:last-child {
	border-bottom: none;
}

.review-item-title {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 700;
	color: var(--primary-color);
}

.review-item-value {
	margin: 0;
	font-size: 16px;
	color: var(--text-color);
}

.wizard-nav {
	display: flex;
	gap: 12px;
	justify-content: space-between;
	align-items: center;
	margin-top: 10px;
	padding-top: 18px;
}

.wizard-nav-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
}

.btn-skip {
	border: 0;
	background: transparent;
	color: var(--text-color);
	font-size: 15px;
	font-weight: 600;
	padding: 10px 4px;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.btn-skip:hover,
.btn-skip:focus-visible {
	color: var(--accent-color);
}

.btn-skip:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.wizard-textarea-short.form-control {
	min-height: 120px;
}

.btn-prev {
	background: var(--primary-color);
}

.btn-prev::after {
	background: var(--accent-color);
}

.wizard-nav .btn-default {
	min-width: 130px;
	text-align: center;
}

.wizard-nav .btn-default:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.btn-default.is-loading {
	position: relative;
	padding-right: 42px;
}

.btn-default.is-loading::before {
	content: "";
	position: absolute;
	top: 50%;
	right: 16px;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: var(--white-color);
	border-radius: 50%;
	animation: questionnaireSpin 0.8s linear infinite;
}

.success-screen {
	text-align: center;
	padding: 24px 8px 8px;
}

.success-icon {
	width: 74px;
	height: 74px;
	margin: 0 auto 14px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--accent-color);
	color: var(--white-color);
	font-size: 28px;
}

.success-screen h3 {
	margin-bottom: 8px;
	color: var(--primary-color);
}

.success-screen p {
	margin-bottom: 20px;
}

.error-screen {
	text-align: center;
	padding: 24px 8px 8px;
}

.error-icon {
	width: 74px;
	height: 74px;
	margin: 0 auto 14px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #c0392b;
	color: var(--white-color);
	font-size: 28px;
}

.error-screen h3 {
	margin-bottom: 8px;
	color: var(--primary-color);
}

.error-screen p {
	margin-bottom: 20px;
}

.upload-zone.is-processing {
	pointer-events: none;
	opacity: 0.7;
}

@keyframes questionnaireSpin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

@media only screen and (max-width: 991px) {
	.questionnaire-section {
		padding: 70px 0;
	}

	.wizard-question {
		font-size: 30px;
	}
}

@media only screen and (max-width: 767px) {
	.questionnaire-card {
		padding: 20px 16px;
		border-radius: 18px;
	}

	.wizard-viewport {
		min-height: 340px;
	}

	.wizard-question {
		font-size: 26px;
	}

	.option-grid {
		grid-template-columns: 1fr;
	}

	.wizard-nav {
		position: sticky;
		bottom: 0;
		background: var(--white-color);
		padding: 14px 0 2px;
	}

	.wizard-nav .btn-default {
		min-width: 0;
		flex: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wizard-step,
	.questionnaire-progress-fill,
	.choice-card,
	.rating-pill span,
	.toggle-option span {
		transition: none;
	}

	.btn-default.is-loading::before {
		animation: none;
	}
}

/* Photo Review Form Style System */

.photo-review-form {
	display: grid;
	gap: 26px;
}

.upload-zone {
	border: 1px dashed var(--divider-color);
	border-radius: 14px;
	background: var(--secondary-color);
	padding: 28px 20px;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.upload-zone:hover,
.upload-zone.is-dragover {
	border-color: var(--accent-color);
	box-shadow: 0 14px 30px rgba(0, 168, 188, 0.14);
	transform: translateY(-2px);
}

.upload-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: rgba(0, 168, 188, 0.12);
	color: var(--accent-color);
	font-size: 25px;
	margin-bottom: 14px;
}

.upload-zone p {
	margin-bottom: 6px;
}

.upload-note {
	font-size: 14px;
	margin: 0;
	color: var(--text-color);
}

.preview-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 12px;
}

.preview-card {
	border: 1px solid var(--divider-color);
	border-radius: 12px;
	background: var(--white-color);
	padding: 8px;
	position: relative;
	overflow: hidden;
}

.preview-card img {
	display: block;
	width: 100%;
	height: 110px;
	object-fit: cover;
	border-radius: 8px;
}

.preview-remove {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 30px;
	height: 30px;
	border: none;
	border-radius: 50%;
	background: rgba(8, 54, 59, 0.85);
	color: var(--white-color);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	transition: background 0.25s ease;
}

.preview-remove:hover {
	background: var(--accent-color);
}

.section-label {
	margin-bottom: 12px;
	font-size: 18px;
	font-weight: 700;
	color: var(--primary-color);
}

.char-meta {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: 8px;
}

.char-count {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--primary-color);
}

.category-grid .choice-card {
	text-align: center;
}

.form-actions {
	display: flex;
	justify-content: flex-end;
	padding-top: 6px;
}

.file-input-hidden {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

@media only screen and (max-width: 767px) {
	.upload-zone {
		padding: 22px 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.upload-zone,
	.preview-remove {
		transition: none;
	}
}