.dmf-form-shell {
	--dmf-primary: #673ab7;
	--dmf-background: #f0ebf8;
	background: var(--dmf-background);
	box-sizing: border-box;
	color: #202124;
	font-family: Arial, sans-serif;
	line-height: 1.5;
	padding: clamp(18px, 4vw, 48px) 14px;
	width: 100%;
}

.dmf-form-shell *,
.dmf-form-shell *::before,
.dmf-form-shell *::after {
	box-sizing: border-box;
}

.dmf-form-card {
	margin-inline: auto;
	max-width: 720px;
}

.dmf-form-header,
.dmf-field,
.dmf-section-title,
.dmf-access-panel,
.dmf-notice {
	background: #fff;
	border: 1px solid #dadce0;
	border-radius: 9px;
	margin-block-end: 14px;
	padding: clamp(18px, 4vw, 28px);
}

.dmf-form-header {
	border-block-start: 10px solid var(--dmf-primary);
}

.dmf-form-header h2 {
	color: #202124;
	font-size: clamp(26px, 5vw, 34px);
	font-weight: 500;
	line-height: 1.2;
	margin: 0;
}

.dmf-form-header p {
	color: #5f6368;
	margin: 12px 0 0;
}

.dmf-access-card {
	max-width: 560px;
}

.dmf-access-panel h3 {
	font-size: 22px;
	margin: 0 0 8px;
}

.dmf-access-panel > p {
	color: #5f6368;
	margin: 0 0 20px;
}

.dmf-access-form input[type="password"] {
	background: #fff;
	border: 1px solid #9aa0a6;
	border-radius: 5px;
	color: #202124;
	font: inherit;
	padding: 11px 12px;
	width: 100%;
}

.dmf-access-form input[type="password"]:focus {
	border-color: var(--dmf-primary);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--dmf-primary) 22%, transparent);
	outline: none;
}

.dmf-access-message {
	border-radius: 6px;
	margin-block-end: 14px;
}

.dmf-access-message:empty {
	display: none;
}

.dmf-section-title {
	border-inline-start: 5px solid var(--dmf-primary);
}

.dmf-section-title h3 {
	font-size: 22px;
	margin: 0;
}

.dmf-section-title p {
	color: #5f6368;
	margin: 8px 0 0;
}

.dmf-label {
	color: #202124;
	display: block;
	font-size: 16px;
	font-weight: 600;
	margin-block-end: 8px;
}

.dmf-required {
	color: #d93025;
	margin-inline-start: 4px;
}

.dmf-help,
.dmf-file-note {
	color: #5f6368;
	font-size: 13px;
	margin: 0 0 10px;
}

.dmf-file-note {
	margin-block-start: 8px;
}

.dmf-field input[type="text"],
.dmf-field input[type="email"],
.dmf-field input[type="tel"],
.dmf-field input[type="number"],
.dmf-field input[type="date"],
.dmf-field input[type="file"],
.dmf-field select,
.dmf-field textarea {
	background: #fff;
	border: 1px solid #9aa0a6;
	border-radius: 5px;
	color: #202124;
	font: inherit;
	max-width: 100%;
	padding: 11px 12px;
	width: 100%;
}

.dmf-field input:focus,
.dmf-field select:focus,
.dmf-field textarea:focus {
	border-color: var(--dmf-primary);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--dmf-primary) 22%, transparent);
	outline: none;
}

.dmf-choices {
	display: grid;
	gap: 9px;
}

.dmf-choice {
	align-items: flex-start;
	cursor: pointer;
	display: flex;
	gap: 9px;
}

.dmf-choice input {
	accent-color: var(--dmf-primary);
	margin-block-start: 4px;
}

.dmf-other-option {
	display: grid;
	gap: 8px;
}

.dmf-other-input-wrap {
	margin-inline-start: 27px;
	max-width: 420px;
}

.dmf-other-input-wrap[hidden] {
	display: none;
}

.dmf-field .dmf-other-input {
	padding-block: 8px;
}

.dmf-consent-choice {
	border: 1px solid #dadce0;
	border-radius: 5px;
	padding: 12px;
}

.dmf-scale-labels {
	color: #5f6368;
	display: flex;
	font-size: 13px;
	justify-content: space-between;
	margin-block-end: 8px;
}

.dmf-scale-labels span {
	max-width: 42%;
}

.dmf-scale-labels span:last-child {
	text-align: end;
}

.dmf-linear-scale {
	direction: ltr;
	display: flex;
	gap: 8px;
	justify-content: space-between;
	overflow-x: auto;
	padding: 4px 2px 8px;
}

.dmf-scale-choice {
	align-items: center;
	cursor: pointer;
	display: flex;
	flex: 1 0 42px;
	flex-direction: column;
	gap: 8px;
	min-width: 42px;
	text-align: center;
}

.dmf-scale-choice span {
	font-size: 14px;
}

.dmf-scale-choice input,
.dmf-question-grid input {
	accent-color: var(--dmf-primary);
	height: 18px;
	margin: 0;
	width: 18px;
}

.dmf-grid-wrap {
	-webkit-overflow-scrolling: touch;
	border: 1px solid #dadce0;
	border-radius: 7px;
	overflow-x: auto;
}

.dmf-question-grid {
	border-collapse: collapse;
	min-width: 520px;
	width: 100%;
}

.dmf-question-grid th,
.dmf-question-grid td {
	border-block-end: 1px solid #e8eaed;
	padding: 12px 10px;
	text-align: center;
	vertical-align: middle;
}

.dmf-question-grid thead th {
	background: #f8f9fa;
	color: #3c4043;
	font-size: 13px;
	font-weight: 600;
}

.dmf-question-grid tbody th {
	background: #fff;
	font-weight: 500;
	min-width: 170px;
	position: sticky;
	inset-inline-start: 0;
	text-align: start;
	z-index: 1;
}

.dmf-question-grid tbody tr:nth-child(even) th,
.dmf-question-grid tbody tr:nth-child(even) td {
	background: #fafafa;
}

.dmf-question-grid tr:last-child th,
.dmf-question-grid tr:last-child td {
	border-block-end: 0;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.dmf-field-error {
	color: #d93025;
	font-size: 13px;
	margin-block-start: 7px;
	min-height: 1px;
}

.dmf-field-has-error {
	border-color: #d93025;
}

.dmf-field-has-error input,
.dmf-field-has-error select,
.dmf-field-has-error textarea {
	border-color: #d93025;
}

.dmf-field-has-error .dmf-grid-wrap {
	border-color: #d93025;
	box-shadow: 0 0 0 1px #d93025;
}

.dmf-submit-row {
	display: flex;
	justify-content: flex-start;
	margin-block-start: 18px;
}

.dmf-submit-button {
	background: var(--dmf-primary);
	border: 0;
	border-radius: 5px;
	color: #fff;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	min-width: 110px;
	padding: 11px 22px;
}

.dmf-submit-button:hover {
	filter: brightness(0.92);
}

.dmf-submit-button:focus {
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--dmf-primary) 28%, transparent);
	outline: none;
}

.dmf-submit-button:disabled {
	cursor: wait;
	opacity: 0.7;
}

.dmf-form-message,
.dmf-notice {
	border-radius: 6px;
	font-weight: 600;
	margin-block-end: 14px;
}

.dmf-form-message:empty {
	display: none;
}

.dmf-form-message-success,
.dmf-notice-success {
	background: #e6f4ea;
	border: 1px solid #a8dab5;
	color: #137333;
	padding: 14px;
}

.dmf-form-message-error,
.dmf-notice-error {
	background: #fce8e6;
	border: 1px solid #f6aea8;
	color: #a50e0e;
	padding: 14px;
}

.dmf-honeypot {
	height: 1px;
	inset-inline-start: -10000px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

[dir="rtl"] .dmf-form-shell,
.dmf-form-shell[dir="rtl"] {
	text-align: right;
}

@media (max-width: 600px) {
	.dmf-form-shell {
		padding-inline: 8px;
	}

	.dmf-form-header,
	.dmf-field,
	.dmf-section-title,
	.dmf-notice {
		border-radius: 7px;
	}

	.dmf-submit-button {
		width: 100%;
	}

	.dmf-question-grid th,
	.dmf-question-grid td {
		padding: 10px 8px;
	}

	.dmf-question-grid tbody th {
		min-width: 140px;
	}
}
