/* ============================================================
   Wizard de reporte (modal)
   ============================================================ */

.wizard {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--gutter);
}
.wizard[hidden] { display: none; }

.wizard__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(27, 27, 27, .6);
}

.wizard__dialog {
	position: relative;
	background: var(--amarelo);
	border: 1px solid var(--preto);
	box-shadow: var(--shadow-preta);
	width: 100%;
	max-width: 480px;
	max-height: 92vh;
	overflow: auto;
	padding: var(--space-3);
}

.wizard__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: var(--space-3);
}
.wizard__progress { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.wizard__title { margin: 0; font-size: var(--fs-titulo); text-transform: uppercase; flex: 1; }
.wizard__close {
	background: transparent;
	border: 0;
	font-size: 28px;
	line-height: 1;
	color: var(--preto);
	padding: 0 4px;
}

.wizard__step-title {
	margin: 0 0 var(--space-2);
	font-size: 16px;
	text-transform: uppercase;
}
.wizard__hint { font-size: 12px; opacity: .85; margin: var(--space-2) 0 0; }

.wizard__step[hidden] { display: none; }

/* Foto */
.wizard__file {
	display: block;
	cursor: pointer;
	margin-bottom: var(--space-2);
}
.wizard__file input[type="file"] { display: none; }

.wizard__file-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	border: 2px dashed var(--preto);
	background: var(--branco);
	min-height: 180px;
	padding: 28px var(--space-3);
	text-align: center;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	color: var(--preto);
	transition: background .1s;
}
.wizard__file:hover .wizard__file-placeholder,
.wizard__file:focus-within .wizard__file-placeholder { background: #fff7e0; }
.wizard__file-placeholder[hidden] { display: none; }
.wizard__file-icon { width: 52px; height: 52px; color: var(--preto); opacity: .7; }

.wizard__preview {
	border: 1px solid var(--preto);
	box-shadow: var(--shadow-preta-sm);
	max-height: 260px;
	width: 100%;
	object-fit: cover;
	display: block;
}
.wizard__preview[hidden] { display: none; }

/* Localização */
.wizard__map {
	height: 260px;
	border: 1px solid var(--preto);
	box-shadow: var(--shadow-preta-sm);
	margin-bottom: var(--space-2);
	background: var(--mapa-bg);
}
.wizard__geo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wizard__coords { font-size: 12px; font-weight: 700; }

/* Categorias */
.wizard__cats {
	border: 0;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}
.wizard__cat {
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1px solid var(--preto);
	background: var(--branco);
	padding: 12px;
	cursor: pointer;
}
.wizard__cat input { accent-color: var(--preto); }
.wizard__cat:has(input:checked) { box-shadow: var(--shadow-preta-sm); background: #fff7e0; }
.wizard__cat-pin {
	width: 16px; height: 16px;
	border-radius: 50%;
	border: 2px solid var(--branco);
	box-shadow: 0 0 0 1px var(--preto);
	flex: 0 0 auto;
}
.wizard__cat[data-cat="cabos-janelas"] .wizard__cat-pin { background: var(--pin-janelas); }
.wizard__cat[data-cat="cabos-azulejo"] .wizard__cat-pin { background: var(--pin-azulejo); }
.wizard__cat[data-cat="cabos-arte"] .wizard__cat-pin { background: var(--pin-arte); }
.wizard__cat[data-cat="emaranhados"] .wizard__cat-pin { background: var(--pin-emaranhados); }
.wizard__cat-label { font-weight: 700; }

/* Descrição */
.wizard__form textarea {
	width: 100%;
	font-family: inherit;
	font-size: var(--fs-corpo);
	padding: 10px;
	border: 1px solid var(--preto);
	background: var(--branco);
	resize: vertical;
}
.wizard__counter { font-size: 12px; text-align: right; margin: 6px 0 0; }

/* Rever */
.wizard__review { margin: 0; }
.wizard__review div { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--preto); }
.wizard__review dt { font-weight: 700; text-transform: uppercase; font-size: 12px; min-width: 90px; }
.wizard__review dd { margin: 0; font-size: 13px; }
.wizard__review img { width: 80px; border: 1px solid var(--preto); }

/* Feedback + navegação */
.wizard__feedback {
	margin: var(--space-2) 0 0;
	padding: 10px;
	border: 1px solid var(--preto);
	background: #f8d7da;
	font-weight: 700;
	font-size: 13px;
}
.wizard__feedback[hidden] { display: none; }

.wizard__nav {
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin-top: var(--space-3);
}
.wizard__nav [data-fachadas-next],
.wizard__nav [data-fachadas-submit] { margin-left: auto; }

/* Sucesso */
.wizard__success { text-align: center; padding: var(--space-3) 0; }
.wizard__success[hidden] { display: none; }
.wizard__success-title { font-size: var(--fs-titulo); text-transform: uppercase; font-weight: 700; margin: 0 0 var(--space-2); }
.wizard__success .btn-brutal { margin-top: var(--space-3); }

body.wizard-open { overflow: hidden; }

@media (min-width: 768px) {
	.wizard__dialog { max-width: 560px; padding: var(--space-4); }
}
