.mq-app {
	--mq-ink: #163238;
	--mq-muted: #587178;
	--mq-line: #d9e6e8;
	--mq-panel: #ffffff;
	--mq-soft: #eef7f6;
	--mq-accent: #0f766e;
	--mq-accent-dark: #0a5651;
	--mq-button: #0f766e;
	--mq-button-text: #ffffff;
	--mq-button-hover: #0a5651;
	--mq-button-disabled: #dfecee;
	--mq-button-disabled-text: #6e858b;
	--mq-danger: #a73737;
	--mq-safe-bottom: env(safe-area-inset-bottom, 0px);
	box-sizing: border-box;
	min-height: 100svh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(16px, 4vw, 44px);
	background: #f6fbfa;
	color: var(--mq-ink);
	font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	-webkit-text-size-adjust: 100%;
	touch-action: manipulation;
}

.mq-app *,
.mq-app *::before,
.mq-app *::after {
	box-sizing: inherit;
}

.mq-form {
	width: min(1024px, 100%);
	min-height: min(760px, calc(100svh - 32px));
	max-height: calc(100svh - 24px);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: clamp(18px, 2.8vw, 30px);
	padding: clamp(24px, 4.8vw, 56px);
	background: var(--mq-panel);
	border: 1px solid var(--mq-line);
	border-radius: 8px;
	box-shadow: 0 24px 70px rgba(22, 50, 56, 0.12);
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

.mq-brand {
	display: flex;
	justify-content: center;
	margin-bottom: 4px;
}

.mq-brand img {
	display: block;
	width: auto;
	max-width: min(260px, 64vw);
	max-height: 84px;
	object-fit: contain;
}

.mq-progress {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
	height: 6px;
}

.mq-progress span {
	display: block;
	border-radius: 999px;
	background: #d8e8e8;
}

.mq-progress span.is-active {
	background: var(--mq-accent);
}

.mq-step {
	display: none;
}

.mq-step.is-active {
	display: block;
	animation: mq-step-in 180ms ease-out;
}

@keyframes mq-step-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.mq-kicker {
	margin: 0 0 12px;
	color: var(--mq-accent);
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0;
}

.mq-step h2 {
	max-width: 820px;
	margin: 0 0 clamp(20px, 3vw, 30px);
	color: var(--mq-ink);
	font-family: "Playfair Display", Georgia, serif;
	font-weight: 600;
	font-size: clamp(30px, 4vw, 46px);
	line-height: 1.08;
	letter-spacing: 0;
}

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

.mq-options--satisfaction {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mq-choice {
	position: relative;
	display: flex;
	min-height: 96px;
	align-items: center;
	justify-content: center;
	padding: 18px;
	border: 2px solid var(--mq-line);
	border-radius: 8px;
	background: #fff;
	color: var(--mq-ink);
	text-align: center;
	font-size: clamp(18px, 2vw, 23px);
	font-weight: 700;
	line-height: 1.18;
	cursor: pointer;
	transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.mq-choice:has(input:focus-visible) {
	outline: 3px solid rgba(15, 118, 110, 0.28);
	outline-offset: 3px;
}

.mq-choice:has(input:checked),
.mq-choice.is-selected {
	border-color: var(--mq-accent);
	background: var(--mq-soft);
	color: var(--mq-accent-dark);
}

.mq-choice:active {
	transform: scale(0.99);
}

.mq-field {
	display: block;
	margin: 0 0 22px;
}

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

.mq-field span {
	display: block;
	margin: 0 0 10px;
	color: var(--mq-ink);
	font-size: 20px;
	font-weight: 700;
}

.mq-field textarea,
.mq-field input {
	width: 100%;
	min-height: 62px;
	padding: 16px 18px;
	border: 2px solid var(--mq-line);
	border-radius: 8px;
	background: #fff;
	color: var(--mq-ink);
	font: inherit;
	font-size: 22px;
	line-height: 1.35;
}

.mq-field textarea {
	resize: vertical;
}

.mq-field textarea:focus,
.mq-field input:focus {
	border-color: var(--mq-accent);
	outline: 3px solid rgba(15, 118, 110, 0.18);
}

.mq-consent {
	display: grid;
	grid-template-columns: 34px 1fr;
	gap: 14px;
	align-items: start;
	margin-top: 6px;
	color: var(--mq-muted);
	font-size: 18px;
	line-height: 1.4;
}

.mq-consent input {
	width: 28px;
	height: 28px;
	margin-top: 2px;
	accent-color: var(--mq-accent);
}

.mq-turnstile {
	margin: 22px 0 0;
}

.mq-error {
	padding: 14px 18px;
	border-left: 4px solid var(--mq-danger);
	background: #fff4f4;
	color: var(--mq-danger);
	font-size: 18px;
	font-weight: 700;
}

.mq-status {
	padding: 14px 18px;
	border-left: 4px solid var(--mq-accent);
	background: var(--mq-soft);
	color: var(--mq-accent-dark);
	font-size: 18px;
	font-weight: 700;
}

.mq-actions {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: var(--mq-safe-bottom);
}

.mq-actions [hidden] {
	display: none;
}

.mq-button {
	min-width: 184px;
	min-height: 62px;
	padding: 14px 24px;
	border: 0;
	border-radius: 8px;
	background: var(--mq-button);
	color: var(--mq-button-text);
	font-size: 20px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background 160ms ease, color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.mq-button:hover,
.mq-button:focus {
	background: var(--mq-button-hover);
	color: var(--mq-button-text);
}

.mq-button:disabled {
	background: var(--mq-button-disabled);
	color: var(--mq-button-disabled-text);
	opacity: 1;
	cursor: not-allowed;
	transform: none;
}

.mq-button--secondary {
	background: #e4f0f0;
	color: var(--mq-ink);
}

.mq-button--secondary:hover,
.mq-button--secondary:focus {
	background: #d3e5e5;
	color: var(--mq-ink);
}

.mq-step--thanks {
	padding: 70px 0;
	text-align: center;
}

.mq-step--thanks h2 {
	max-width: none;
	margin-bottom: 16px;
}

.mq-step--thanks p:last-child {
	margin: 0;
	color: var(--mq-muted);
	font-size: 24px;
}

@media (min-width: 768px) and (max-width: 1180px) {
	.mq-app {
		padding: 22px;
	}

	.mq-form {
		width: min(980px, 100%);
		min-height: calc(100svh - 44px);
		max-height: calc(100svh - 44px);
		padding: clamp(26px, 4vw, 44px);
	}

	.mq-brand img {
		max-height: 76px;
	}

	.mq-step h2 {
		font-size: clamp(32px, 4.2vw, 44px);
	}

	.mq-choice {
		min-height: 104px;
		padding: 18px 14px;
		font-size: 21px;
	}

	.mq-options--satisfaction {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 768px) and (max-width: 1180px) and (orientation: landscape) {
	.mq-app {
		padding: 16px 22px;
	}

	.mq-form {
		min-height: calc(100svh - 32px);
		max-height: calc(100svh - 32px);
		gap: 16px;
		padding: 22px 34px;
	}

	.mq-brand img {
		max-height: 56px;
	}

	.mq-kicker {
		margin-bottom: 8px;
		font-size: 13px;
	}

	.mq-step h2 {
		margin-bottom: 18px;
		font-size: 31px;
		line-height: 1.1;
	}

	.mq-options--satisfaction {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.mq-choice {
		min-height: 82px;
		font-size: 18px;
	}

	.mq-field {
		margin-bottom: 14px;
	}

	.mq-field textarea {
		min-height: 112px;
	}

	.mq-field input {
		min-height: 54px;
	}

	.mq-button {
		min-height: 56px;
	}
}

@media (min-width: 768px) and (max-width: 1180px) and (orientation: portrait) {
	.mq-form {
		width: min(820px, 100%);
	}

	.mq-options {
		grid-template-columns: 1fr;
	}

	.mq-options--satisfaction {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mq-options--satisfaction .mq-choice:last-child {
		grid-column: 1 / -1;
	}

	.mq-choice {
		min-height: 108px;
		font-size: 23px;
	}

	.mq-field textarea {
		min-height: 150px;
	}
}

@media (max-width: 767px) {
	.mq-app {
		align-items: stretch;
		padding: 14px;
	}

	.mq-form {
		min-height: calc(100svh - 28px);
		max-height: none;
		padding: 24px;
	}

	.mq-options,
	.mq-options--satisfaction,
	.mq-grid {
		grid-template-columns: 1fr;
	}

	.mq-choice {
		min-height: 76px;
	}

	.mq-actions {
		position: sticky;
		bottom: 0;
		padding-top: 12px;
		background: var(--mq-panel);
	}

	.mq-button {
		flex: 1;
		min-width: 0;
	}
}
