
.tara-chestionar-form {
	max-width: 720px;
	margin: 24px auto;
	background: var(--oft-surface, #fff);
	border: 1px solid var(--oft-line, #e5e7eb);
	border-radius: var(--oft-radius-lg, 16px);
	padding: clamp(20px, 3vw, 34px);
}

.tara-chestionar-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tara-chestionar-errors {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	background: #fdecec;
	border: 1px solid var(--oft-urgent, #d32f2f);
	color: #931f1f;
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 20px;
	font-size: 14.5px;
}

.tara-chestionar-errors i {
	color: var(--oft-urgent, #d32f2f);
	font-size: 18px;
	margin-top: 2px;
}

.tara-chestionar-errors p {
	margin: 0;
}

.tara-chestionar-field-error {
	color: var(--oft-urgent, #d32f2f);
	font-size: 13px;
	margin: -4px 0 8px;
}

.tara-chestionar-field {
	margin-bottom: 22px;
}

.tara-chestionar-field label {
	display: block;
	font-weight: 600;
	color: var(--oft-ink, #0f172a);
	margin-bottom: 10px;
}

.tara-chestionar-field .req {
	color: var(--oft-urgent, #d32f2f);
	margin-left: 3px;
}

.tara-chestionar-field.has-error label {
	color: var(--oft-urgent, #d32f2f);
}

.tara-chestionar-field select,
.tara-chestionar-field input[type='text'],
.tara-chestionar-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 14px;
	font-size: 15px;
	border: 1px solid var(--oft-line-strong, #d0d5dd);
	border-radius: 8px;
}

.tara-chestionar-gdpr {
	font-size: 13px;
	color: var(--oft-muted, #6b7280);
	margin-bottom: 18px;
}

.tara-chestionar-form button[type='submit'] {
	background: var(--oft-accent, #00a0b6);
	color: #fff;
	border: 0;
	padding: 13px 30px;
	font-size: 15px;
	font-weight: 700;
	border-radius: var(--oft-radius, 10px);
	cursor: pointer;
}

.tara-chestionar-form button[type='submit']:hover {
	background: var(--oft-accent-dark, #00808f);
}

.tara-chestionar-thanks {
	max-width: 560px;
	margin: 24px auto;
	text-align: center;
	background: var(--oft-surface, #fff);
	border: 1px solid var(--oft-line, #e5e7eb);
	border-radius: var(--oft-radius-lg, 16px);
	padding: 40px 28px;
}

.tara-chestionar-thanks i {
	font-size: 40px;
	color: #2e7d32;
	margin-bottom: 14px;
}

.tara-chestionar-banner {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 16px;
	padding: 14px 18px;
	border-radius: var(--oft-radius, 10px);
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.4;
}

.tara-chestionar-banner--success {
	background: #e6f6ea;
	border: 1px solid #2e7d32;
	color: #1b5e20;
}

.tara-chestionar-banner--error {
	background: #fdecec;
	border: 1px solid var(--oft-urgent, #d32f2f);
	color: #931f1f;
}

.tara-chestionar-banner i {
	font-size: 18px;
	flex-shrink: 0;
	margin-top: 1px;
}

.tara-chestionar-banner span {
	flex: 1;
}

.tara-chestionar-banner__close {
	flex-shrink: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 20px;
	line-height: 1;
	padding: 0 0 0 4px;
	cursor: pointer;
	opacity: .6;
}

.tara-chestionar-banner__close:hover {
	opacity: 1;
}

@media (max-width: 560px) {
	.tara-chestionar-banner {
		font-size: 13.5px;
		padding: 12px 14px;
	}
}

/* ---------- Chestionarul tipizat (satisfacție / pacienți internați) ---------- */

.tara-chestionar-form--internare {
	max-width: 820px;
}

.tara-chestionar-intro {
	color: var(--oft-muted, #6b7280);
	font-size: 14.5px;
	margin: 0 0 24px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--oft-line, #e5e7eb);
}

.tara-chestionar-form--internare fieldset.tara-chestionar-field {
	border: 0;
	margin: 0 0 22px;
	padding: 0;
	min-width: 0;
}

.tara-chestionar-form--internare .tara-chestionar-field[hidden] {
	display: none;
}

.tara-chestionar-form--internare .tara-chestionar-q {
	display: block;
	width: 100%;
	padding: 0;
	font-weight: 600;
	color: var(--oft-ink, #0f172a);
	line-height: 1.45;
	margin-bottom: 10px;
}

.tara-chestionar-nr {
	color: var(--oft-accent, #00a0b6);
	font-weight: 700;
	margin-right: 4px;
}

.tara-chestionar-field.has-error .tara-chestionar-q {
	color: var(--oft-urgent, #d32f2f);
}

.tara-chestionar-field input[type='number'] {
	width: 140px;
	max-width: 100%;
	box-sizing: border-box;
	padding: 11px 14px;
	font-size: 15px;
	border: 1px solid var(--oft-line-strong, #d0d5dd);
	border-radius: 8px;
}

.tara-chestionar-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tara-chestionar-field label.tara-chestionar-choice {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	padding: 10px 14px;
	font-weight: 500;
	font-size: 14.5px;
	line-height: 1.35;
	color: var(--oft-ink, #0f172a);
	background: var(--oft-bg-alt, #fbfbfb);
	border: 1px solid var(--oft-line, #e5e7eb);
	border-radius: 10px;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}

.tara-chestionar-choice input[type='radio'] {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--oft-accent, #00a0b6);
}

.tara-chestionar-choice:hover {
	border-color: var(--oft-line-strong, #d0d5dd);
}

.tara-chestionar-choice:has(input:checked) {
	border-color: var(--oft-accent, #00a0b6);
	background: var(--oft-accent-soft, #e0f4f7);
}

.tara-chestionar-choice:has(input:focus-visible) {
	outline: 2px solid var(--oft-accent, #00a0b6);
	outline-offset: 2px;
}

.tara-chestionar-field.has-error .tara-chestionar-choice {
	border-color: #f1b5b5;
}

/* Întrebări cu mai multe aspecte evaluate (8, 11, 17) */
.tara-chestionar-group {
	margin-bottom: 26px;
	padding: 16px 18px 4px;
	background: var(--oft-bg-alt, #fbfbfb);
	border: 1px solid var(--oft-line, #e5e7eb);
	border-radius: 12px;
}

.tara-chestionar-group__title {
	font-weight: 600;
	color: var(--oft-ink, #0f172a);
	margin: 0 0 14px;
	line-height: 1.45;
}

.tara-chestionar-form--internare .tara-chestionar-field--row {
	display: grid;
	grid-template-columns: minmax(170px, 34%) 1fr;
	align-items: center;
	column-gap: 16px;
	padding: 10px 0;
	margin: 0;
	border-top: 1px solid var(--oft-line, #e5e7eb);
}

.tara-chestionar-form--internare .tara-chestionar-field--row .tara-chestionar-q {
	float: left; /* permite legend-ului să intre în grid */
	margin: 0;
	font-weight: 500;
}

.tara-chestionar-form--internare .tara-chestionar-field--row .tara-chestionar-field-error {
	grid-column: 1 / -1;
	grid-row: 2;
	margin: 6px 0 0;
}

.tara-chestionar-field--row .tara-chestionar-choice {
	background: var(--oft-surface, #fff);
}

@media (max-width: 640px) {
	.tara-chestionar-form--internare .tara-chestionar-field--row {
		grid-template-columns: 1fr;
		row-gap: 8px;
	}
	.tara-chestionar-form--internare .tara-chestionar-field--row .tara-chestionar-field-error {
		grid-row: auto;
		margin: 0;
	}
	.tara-chestionar-choices {
		flex-direction: column;
		align-items: stretch;
	}
	.tara-chestionar-group {
		padding: 14px 14px 4px;
	}
}
