/* =========================================================
   01. CONTAINER BASE
========================================================= */
.mp-shell {
	color: #111827;
	font-family: inherit;
	margin: 24px auto;
	max-width: 1180px;
	width: 100%;
}

.mp-header {
	margin-bottom: 20px;
}

.mp-header h2,
.mp-header h3 {
	letter-spacing: 0;
	margin: 0;
}

.mp-eyebrow {
	color: #26735f;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0;
	margin: 0 0 6px;
	text-transform: uppercase;
}

.mp-notice {
	background: #eef8f4;
	border: 1px solid #7fd3bc;
	border-radius: 6px;
	margin-bottom: 16px;
	padding: 12px 14px;
}

.mp-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.mp-options {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.mp-shell label {
	display: grid;
	font-weight: 600;
	gap: 8px;
}

.mp-shell input,
.mp-shell select,
.mp-shell textarea {
	border: 1px solid #b8c4cc;
	border-radius: 6px;
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
	padding: 10px 12px;
	width: 100%;
}


/* =========================================================
   02. AÇÕES E STATUS
========================================================= */
.mp-actions {
	align-items: center;
	display: flex;
	gap: 16px;
	justify-content: flex-start;
	padding-top: 18px;
}

.mp-button,
.mp-shell a.mp-button {
	--cor: white;
	--cor-hover: var(--e-global-color-primary);
	--border: var(--e-global-color-primary);
	--bg: var(--e-global-color-primary);
	--x-start: 0;
	--x-end: -100%;
	--transition: .2s .15s;

	width: max-content;
	position: relative;
	overflow: hidden;
	border-radius: 100px;
	border: 2px solid var(--border);
	background: transparent !important;
	font-weight: 600;
	color: var(--cor);
	fill: currentColor;
	transition: var(--transition);
	z-index: 1;
}

.mp-button::before,
.mp-shell a.mp-button::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 100px;
	transition: var(--transition);
	background: var(--bg);
	transform: translateX(var(--x-start));
	z-index: -1;
}

.mp-button:hover,
.mp-shell a.mp-button:hover {
	transform: translateY(-3px);
	color: var(--cor-hover) !important;
}

.mp-button:hover::before,
.mp-shell a.mp-button:hover::before {
	transform: translateX(var(--x-end));
}

.mp-status {
	color: var(--mp-figma-blue, #26735f);
	font-weight: 700;
}

.mp-status.is-error {
	color: #b42318;
}


/* =========================================================
   03. WIZARD - BASE FINAL
========================================================= */
.mp-wizard {
	--mp-figma-blue: #026c7c;
	--mp-figma-gray: #616161;
	--mp-figma-dark: #464646;
	--mp-figma-track: #d9d9d9;

	color: var(--mp-figma-gray);
	font-family: Montserrat, Arial, sans-serif;
}

.mp-wizard__form {
	display: flex;
	justify-content: center;
	align-items: center;
	background: rgba(0, 0, 0, 0.1) !important;
	width: 100vw;
	height: 100vh;
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 99999;
}

.mp-wizard-card {
	background: #fff;
	border: 0;
	border-radius: 6px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
	gap: 28px;
	overflow: visible;
	padding: 48px;
	position: relative;
	width: 100%;
	max-width: 1070px;
}

.mp-wizard__chrome {
	align-items: flex-start;
	display: flex;
	justify-content: center;
	min-height: 48px;
	position: relative;
}

.mp-wizard__header {
	margin-bottom: 18px;
	min-height: 68px;
	padding-left: 46px;
}

.mp-wizard__header h2 {
	font-size: 28px;
	line-height: 1.12;
}

.mp-wizard__body {
	display: grid;
	flex: 1;
	min-height: 0;
}

.mp-wizard .mp-step {
	display: none;
	min-height: 0;
	padding: 0;
}

.mp-wizard .mp-step.is-active {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.mp-wizard .mp-step h3 {
	color: var(--mp-figma-gray);
	font-size: 28px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 38px;
	margin: 0 auto;
	text-align: center;
}


/* =========================================================
   04. LOGO / NAVEGAÇÃO DO WIZARD
========================================================= */
.mp-wizard-logo {
	align-items: baseline;
	display: inline-flex;
	font-size: 13px;
	font-weight: 700;
	gap: 4px;
	letter-spacing: 0;
	line-height: 1;
}

.mp-wizard-logo span,
.mp-wizard-logo strong {
	color: var(--mp-figma-blue);
}

.mp-wizard-logo em {
	color: #eeb027;
	font-size: 10px;
	font-style: normal;
}

.mp-wizard-logo-img {
	display: block;
	height: 48px !important;
	object-fit: contain;
}

.mp-wizard-logo-stack {
	align-items: center;
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
}

.mp-wizard-logo-tagline {
	display: block;
	height: 8px;
	object-fit: contain;
}

.mp-wizard-logo-stack + .mp-step-close {
	top: 2px;
}

.mp-wizard .mp-step-back,
.mp-wizard .mp-step-close {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 6px;
	box-shadow: none;
	color: var(--mp-figma-dark);
	display: inline-flex;
	font-family: Arial, sans-serif;
	justify-content: center;
	padding: 0;
	position: absolute;
	top: 2px;
}

.mp-wizard .mp-step-back {
	font-size: 18px;
	height: 18px;
	left: 0;
	line-height: 1;
	width: 12px;
}

.mp-wizard .mp-step-close {
	font-size: 20px;
	font-weight: 300;
	height: 20px;
	right: 0;
	transform: rotate(45deg);
	width: 20px;
}

.mp-wizard .mp-step-back img,
.mp-wizard .mp-step-close img {
	display: block;
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.mp-shell .mp-step-back:hover,
.mp-shell .mp-step-close:hover {
	background: transparent;
	color: var(--mp-figma-blue);
}

.mp-step-back[hidden],
.mp-wizard__actions [hidden] {
	display: none;
}


/* =========================================================
   05. PROGRESSO
========================================================= */
.mp-step-meter {
	margin: auto;
	max-width: 690px;
	width: 100%;
}

.mp-step-meter__labels {
	color: var(--mp-figma-gray);
	display: flex;
	font-size: 16px;
	font-weight: 700;
	justify-content: space-between;
	line-height: 20px;
	margin-bottom: 8px;
	opacity: 0.6;
}

.mp-progress {
	background: var(--mp-figma-track);
	border-radius: 100px;
	height: 16px;
	left: auto;
	overflow: hidden;
	position: static;
	right: auto;
	top: auto;
	width: 100%;
}

.mp-progress span {
	background: var(--mp-figma-blue);
	border-radius: 100px;
	display: block;
	height: 100%;
	transition: width 180ms ease;
	width: 0;
}


/* =========================================================
   06. TEXTOS E APOIO
========================================================= */
.mp-step-copy {
	margin: auto;
	max-width: 970px;
	text-align: center;
}

.mp-step-copy p {
	color: var(--mp-figma-gray);
	font-size: 18px;
	font-weight: 400;
	line-height: 22px;
	margin: 18px auto 0;
	max-width: 802px;
	opacity: 1;
	text-align: center;
}

.mp-helper-link {
	color: var(--mp-figma-blue);
	display: inline-block;
	font-size: 18px;
	font-weight: 400;
	line-height: 22px;
	margin-top: 18px;
	text-align: center;
	text-decoration: underline;
}

.mp-marble-preview {
	border: 2px solid var(--mp-figma-track);
	border-radius: 6px;
	height: 183px;
	margin: -8px auto 24px;
	max-width: 454px;
	overflow: hidden;
	width: 100%;
}

.mp-marble-preview img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}


/* =========================================================
   07. CAMPOS DE FORMULÁRIO
========================================================= */
.mp-contact-fields {
	display: grid;
	gap: 16px;
	margin: 0 auto;
	max-width: 690px;
	width: 100%;
}

.mp-contact-fields label,
.mp-project-name,
.mp-wizard .mp-step > label {
	color: var(--mp-figma-gray);
	display: grid;
	font-size: 22px;
	font-weight: 700;
	gap: 12px;
	line-height: 32px;
}

.mp-contact-fields input,
.mp-project-name input,
.mp-wizard .mp-step > label input {
	border: 1px solid rgba(97, 97, 97, 0.4);
	border-radius: 6px;
	color: var(--mp-figma-gray);
	font-weight: 400;
	padding: 8px 16px;
	width: 100%;
}

.mp-wizard .mp-step > label input[type="file"] {
	padding: 12px;
}

.mp-contact-fields input::placeholder,
.mp-project-name input::placeholder,
.mp-wizard .mp-step > label input::placeholder {
	color: rgba(97, 97, 97, 0.65);
}


/* =========================================================
   08. OPÇÕES COM IMAGEM
========================================================= */
.mp-image-options {
	display: grid;
	gap: 20px;
}

.mp-image-options--formats {
	grid-template-columns: repeat(4, 1fr);
}

.mp-image-options:not(.mp-image-options--formats) {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	max-width: 926px;
}

.mp-image-options--binary {
	grid-template-columns: repeat(2, minmax(120px, 180px));
}

.mp-shell .mp-image-option {
	display: block;
	font-weight: 700;
}

.mp-image-option input,
.mp-pill-options input {
	clip: rect(0 0 0 0);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.mp-image-option__box {
	align-content: space-between;
	aspect-ratio: auto;
	background: #fff;
	border: 1px solid rgba(97, 97, 97, 0.4);
	border-radius: 6px;
	box-shadow: none;
	color: var(--mp-figma-gray);
	cursor: pointer;
	display: grid;
	gap: 16px;
	justify-items: center;
	padding: 16px;
	text-align: center;
	transition: border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.mp-image-option__box img {
	aspect-ratio: 7 / 5;
	display: block;
	max-width: 180px;
	object-fit: contain;
	object-position: top;
	width: 100%;
}

.mp-image-option__box strong {
	color: var(--mp-figma-gray);
	font-size: 22px;
	font-weight: 700;
	order: -1;
}

.mp-image-options--appliances .mp-image-option__box img {
	max-height: 80px;
	object-fit: contain;
}

.mp-image-options--appliances .mp-image-option__box strong {
	font-weight: 400;
	order: 1;
}

.mp-image-option input:checked + .mp-image-option__box {
	border-color: var(--mp-figma-blue);
	box-shadow: inset 0 0 0 1px var(--mp-figma-blue);
}

.mp-other-format {
	width: 100%;
}

.mp-other-format input {
	border: 1px solid rgba(97, 97, 97, 0.4);
	border-radius: 6px;
	color: var(--mp-figma-gray);
	font-size: 22px;
	font-weight: 700;
	height: 45px;
	line-height: 22px;
	padding: 8px 96px;
	width: 100%;
}

.mp-other-format input::placeholder {
	color: var(--mp-figma-gray);
	opacity: 1;
}


/* =========================================================
   09. MEDIDAS / PAREDES / UPLOAD
========================================================= */
.mp-measure-stage {
	align-items: start;
	display: grid;
	gap: 80px;
	grid-template-columns: 330px minmax(0, 1fr);
	margin: 0 auto;
	max-width: 820px;
}

.mp-measure-preview {
	border: 0;
	border-radius: 6px;
	padding: 0;
}

.mp-measure-preview img {
	display: block;
	object-fit: contain;
	width: 100%;
}

.mp-wall-inputs {
	display: grid;
	gap: 12px;
}

.mp-wall-row {
	border: 0;
	border-radius: 6px;
	display: grid;
	gap: 8px;
	grid-template-columns: 1fr 1fr;
	padding: 0;
}

.mp-wall-row strong {
	color: var(--mp-figma-gray);
	font-size: 18px;
	font-weight: 500;
	grid-column: 1 / -1;
	line-height: 24px;
}

.mp-wall-row label {
	color: var(--mp-figma-gray);
	font-size: 16px;
	font-weight: 500;
	gap: 4px;
	line-height: 22px;
}

.mp-wall-row input {
	border: 1px solid rgba(97, 97, 97, 0.4);
	border-radius: 6px;
}

.mp-file-field {
	margin: 18px auto 0;
	max-width: 690px;
}


/* =========================================================
   10. OPÇÕES EM PILLS
========================================================= */
.mp-pill-options {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin: 0 auto;
}

.mp-pill-options--binary {
	max-width: 500px;
}

.mp-shell .mp-pill-options label {
	display: block;
}

.mp-pill-options span {
	align-items: center;
	background: #fff;
	border: 2px solid rgba(97, 97, 97, 0.4);
	border-radius: 100px;
	color: var(--mp-figma-gray);
	cursor: pointer;
	display: inline-flex;
	font-size: 20px;
	font-weight: 500;
	height: 53px;
	justify-content: center;
	line-height: 30px;
	min-width: 236px;
	padding: 8px 16px;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.mp-pill-options input:checked + span {
	border-color: var(--mp-figma-blue);
	box-shadow: inset 0 0 0 1px var(--mp-figma-blue);
}


/* =========================================================
   11. AÇÕES DO WIZARD
========================================================= */
.mp-wizard__actions {
	align-items: center;
	display: flex;
	justify-content: flex-end;
	min-height: 55px;
	padding-top: 0;
}

.mp-wizard__actions .mp-status {
	color: var(--mp-figma-blue);
	font-size: 14px;
	font-weight: 700;
	margin-right: auto;
}


/* =========================================================
   12. PLANNER / LAYOUT / SIDEBAR
========================================================= */
.mp-planner__layout {
	align-items: start;
	display: grid;
	gap: 20px;
	grid-template-columns: 240px minmax(0, 1fr) 260px;
}

.mp-sidebar {
	border: 1px solid #d9e2e7;
	border-radius: 6px;
	padding: 16px;
}

.mp-sidebar h3 {
	margin-top: 0;
}

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

.mp-module {
	align-items: start;
	background: #fff;
	border-color: #b8c4cc;
	color: #111827;
	display: grid;
	min-height: 86px;
	padding: 12px;
	text-align: left;
}

.mp-module span {
	color: #4b5563;
	font-size: 12px;
}

.mp-module.is-selected {
	background: #eef8f4;
	border-color: #26735f;
	color: #111827;
}

.mp-pager {
	align-items: center;
	display: flex;
	gap: 8px;
	justify-content: space-between;
}


/* =========================================================
   13. CANVAS / PAREDES / RESUMO
========================================================= */
.mp-canvas-area {
	display: grid;
	gap: 20px;
	min-width: 0;
}

.mp-wall {
	border: 1px solid #d9e2e7;
	border-radius: 6px;
	overflow: hidden;
}

.mp-wall__heading {
	align-items: center;
	background: #f7f9fb;
	display: flex;
	justify-content: space-between;
	padding: 10px 12px;
}

.mp-wall__heading h3 {
	margin: 0;
}

.mp-wall canvas {
	display: block;
	max-width: 100%;
	width: 100%;
}

.mp-price {
	border-top: 1px solid #d9e2e7;
	display: grid;
	gap: 4px;
	margin: 18px 0;
	padding-top: 14px;
}

.mp-price strong {
	font-size: 24px;
}

.mp-list {
	display: grid;
	gap: 12px;
}

.mp-list-item {
	align-items: center;
	border: 1px solid #d9e2e7;
	border-radius: 6px;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	padding: 12px;
}

.mp-summary {
	display: grid;
	gap: 8px 16px;
	grid-template-columns: max-content 1fr;
}

.mp-summary dt {
	font-weight: 700;
}


/* =========================================================
   14. RESPONSIVO
========================================================= */
@media (max-width: 1120px) {
	.mp-wizard {
		max-width: calc(100vw - 32px);
	}

	.mp-wizard-card {
		padding-left: 40px;
		padding-right: 40px;
	}

	.mp-image-options--formats,
	.mp-image-options:not(.mp-image-options--formats) {
		grid-template-columns: repeat(2, minmax(0, 216px));
		justify-content: center;
	}

	.mp-image-options--appliances {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 980px) {
	.mp-planner__layout {
		grid-template-columns: 1fr;
	}

	.mp-module-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	.mp-wizard-card {
		min-height: auto;
		padding: 20px;
	}

	.mp-wizard .mp-step h3 {
		font-size: 22px;
		line-height: 30px;
	}

	.mp-image-options--formats,
	.mp-image-options:not(.mp-image-options--formats) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mp-image-options--appliances {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mp-image-option__box {
		height: 160px;
	}

	.mp-image-option__box strong {
		font-size: 18px;
		line-height: 24px;
	}

	.mp-measure-stage {
		grid-template-columns: 1fr;
	}

	.mp-pill-options span {
		min-width: 0;
		width: 100%;
	}

	.mp-pill-options label {
		width: 100%;
	}

	.mp-wizard__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.mp-wizard__actions .mp-status {
		margin-right: 0;
	}
}

@media (max-width: 640px) {
	.mp-wizard-card {
		padding: 42px 18px 22px;
	}

	.mp-wizard__header {
		padding-left: 42px;
	}

	.mp-image-options,
	.mp-image-options--formats,
	.mp-image-options--binary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mp-measure-stage {
		grid-template-columns: 1fr;
	}

	.mp-module-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mp-actions,
	.mp-list-item {
		align-items: stretch;
		flex-direction: column;
	}
}