.answer-container {
	background-image: url("../images/dati/background_pc.png");
	background-attachment: fixed;
	background-position: center top;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 44px 6vw;
}

.answer-shell {
	width: min(880px, 64vw);
	margin: 0 auto;
	padding: 36px 42px 40px;
	background-color: rgba(255, 255, 255, 0.82);
	border: 1px solid rgba(255, 255, 255, 0.88);
	border-radius: 8px;
	box-shadow: 0 24px 70px rgba(76, 83, 73, 0.18);
	backdrop-filter: blur(5px);
}

.answer-header {
	margin-bottom: 30px;
	padding-bottom: 24px;
	border-bottom: 1px solid rgba(122, 150, 145, 0.24);
}

.answer-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 18px;
}

.back-link {
	flex: 0 0 auto;
	padding: 8px 14px;
	font-size: 15px;
	color: #426368;
	background-color: rgba(224, 241, 238, 0.82);
	border: 1px solid rgba(127, 181, 170, 0.45);
	border-radius: 999px;
	transition: all 0.25s ease;
}

.page-kicker {
	display: inline-block;
	margin-bottom: 0;
	padding: 8px 16px;
	font-size: 15px;
	line-height: 1;
	color: #315c68;
	background-color: rgba(229, 246, 243, 0.9);
	border: 1px solid rgba(135, 179, 171, 0.5);
	border-radius: 999px;
	letter-spacing: 2px;
	font-weight: 600;
}

.back-link:hover {
	background-color: #d1e9e4;
	transform: translateY(-2px);
}

.answer-header p:last-child {
	font-size: 19px;
	line-height: 1.7;
	color: #546363;
}

.question-form {
	display: grid;
	gap: 22px;
}

.step-status {
	display: grid;
	gap: 10px;
}

.step-count {
	font-size: 15px;
	color: #526766;
	font-weight: 600;
}

.step-track {
	width: 100%;
	height: 8px;
	overflow: hidden;
	background-color: rgba(213, 227, 224, 0.9);
	border-radius: 999px;
}

.step-progress {
	display: block;
	width: 12.5%;
	height: 100%;
	background-color: #6aa79d;
	border-radius: inherit;
	transition: width 0.25s ease;
}

.question-step {
	display: none;
	align-content: center;
}

.question-step.is-active {
	display: grid;
}

.step-heading {
	display: grid;
	gap: 10px;
	margin-bottom: 24px;
}

.step-heading span {
	font-size: 16px;
	color: #4f8f86;
	font-weight: 700;
}

.step-heading h2 {
	font-size: 30px;
	line-height: 1.3;
	color: #1f2a2b;
	letter-spacing: 0;
}

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

.field-group {
	display: grid;
	gap: 10px;
}

.field-group span {
	font-size: 17px;
	line-height: 1.6;
	color: #263635;
	font-weight: 600;
}

.field-group input,
.field-group textarea {
	width: 100%;
	padding: 15px 16px;
	font-size: 16px;
	line-height: 1.6;
	color: #2c3737;
	background-color: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(115, 146, 141, 0.36);
	border-radius: 8px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-group textarea {
	resize: vertical;
	min-height: 112px;
}

.field-group input:focus,
.field-group textarea:focus {
	border-color: #6aa79d;
	box-shadow: 0 0 0 3px rgba(106, 167, 157, 0.18);
}

.field-group input::placeholder,
.field-group textarea::placeholder {
	color: #8a9694;
}

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

.secondary-button,
.submit-button {
	padding: 15px 26px;
	font-size: 17px;
	font-weight: 600;
	border-radius: 8px;
	transition: all 0.25s ease;
}

.secondary-button:disabled {
	cursor: not-allowed;
	opacity: 0.5;
	transform: none;
}

.finish-button {
	display: none;
}

.finish-button.is-visible {
	display: inline-block;
}

.secondary-button {
	color: #526766;
	background-color: rgba(255, 255, 255, 0.78);
	border: 1px solid rgba(115, 146, 141, 0.34);
}

.submit-button {
	color: #ffffff;
	background-color: #4f8f86;
	border: 1px solid #4f8f86;
	box-shadow: 0 12px 26px rgba(79, 143, 134, 0.22);
}

.secondary-button:hover,
.submit-button:hover {
	transform: translateY(-2px);
}

.secondary-button:hover {
	background-color: #eef7f5;
}

.submit-button:hover {
	background-color: #427c74;
	box-shadow: 0 16px 32px rgba(79, 143, 134, 0.28);
}

@media (max-width: 1100px) {
	.answer-shell {
		width: min(920px, 86vw);
	}
}

@media (max-width: 768px) {
	.answer-container {
		background-image: url("../images/dati/background_mobile.png");
		background-attachment: scroll;
		background-position: center top;
		padding: 22px 16px 34px;
	}

	.answer-shell {
		width: 100%;
		padding: 24px 18px 26px;
		background-color: rgba(255, 255, 255, 0.86);
	}

	.answer-header {
		margin-bottom: 24px;
		padding-bottom: 20px;
	}

	.answer-toolbar {
		gap: 12px;
		margin-bottom: 14px;
	}

	.back-link {
		padding: 7px 12px;
		font-size: 14px;
	}

	.page-kicker {
		padding: 7px 13px;
		font-size: 14px;
		letter-spacing: 1px;
	}

	.answer-header p:last-child {
		font-size: 17px;
		line-height: 1.65;
	}

	.question-form {
		gap: 20px;
	}

	.step-count {
		font-size: 14px;
	}

	.step-heading {
		margin-bottom: 20px;
	}

	.step-heading span {
		font-size: 15px;
	}

	.step-heading h2 {
		font-size: 25px;
	}

	.student-row {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.field-group {
		gap: 8px;
	}

	.field-group span {
		font-size: 16px;
		line-height: 1.55;
	}

	.field-group input,
	.field-group textarea {
		padding: 13px 14px;
		font-size: 16px;
		line-height: 1.55;
	}

	.field-group textarea {
		min-height: 120px;
	}

	.form-actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
		padding-top: 4px;
	}

	.secondary-button,
	.submit-button {
		width: 100%;
		padding: 14px 18px;
		font-size: 17px;
	}

	.finish-button.is-visible {
		display: block;
	}
}

@media (max-width: 390px) {
	.answer-container {
		padding: 18px 12px 28px;
	}

	.answer-shell {
		padding: 22px 14px 24px;
	}

	.answer-header p:last-child {
		font-size: 16px;
	}
}
