/* =========================================================
   CelesTI – Preços por Proposta e Tópicos
   CSS alinhado ao padrão visual do site (sem hover/focus/transition)
   ========================================================= */

.celesti-precos-proposta,
.celesti-precos-proposta * {
	box-sizing: border-box;
}

.celesti-precos-proposta {
	width: 100%;
	font-family: "Open Sans", Arial, sans-serif;
	color: #333333;
	font-size: 14px;
}

/* =========================================================
   FORMULÁRIO BASE
   ========================================================= */

.celesti-precos-proposta form,
.celesti-form-preco-proposta {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0;
	padding: 0;
	font-family: "Open Sans", Arial, sans-serif;
}

.celesti-campo {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
	padding: 0;
}

.celesti-campo > label,
.celesti-campo > .celesti-label {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	color: #717376;
	padding: 0 0 6px 10px;
	margin: 0;
}

.celesti-campo > small {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	color: #717376;
	margin: 0;
	padding: 5px 0 0 10px;
}

/* Campos */

.celesti-precos-proposta input[type="text"],
.celesti-precos-proposta input[type="number"],
.celesti-precos-proposta input[type="email"],
.celesti-precos-proposta input[type="url"],
.celesti-precos-proposta select {
	width: 100%;
	height: 40px;
	min-height: 40px;
	border: none;
	border-radius: 8px;
	background: #dedede;
	color: #333333;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 40px;
	padding: 0 14px;
	outline: none;
	box-shadow: none;
	margin: 0;
}

.celesti-precos-proposta textarea {
	width: 100%;
	height: auto;
	min-height: 90px;
	border: none;
	border-radius: 8px;
	background: #dedede;
	color: #333333;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	padding: 10px 14px;
	outline: none;
	box-shadow: none;
	margin: 0;
	resize: vertical;
}

/* Placeholders visíveis (no original estavam transparentes) */
.celesti-precos-proposta input::placeholder,
.celesti-precos-proposta textarea::placeholder {
	color: #9a9da2;
	opacity: 1;
}

/* =========================================================
   RADIO – pílula cinza com input nativo do navegador
   ========================================================= */

.celesti-radio-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding-left: 0;
}

.celesti-radio-option {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 32px;
	padding: 6px 14px;
	border-radius: 999px;
	background: #dedede;
	color: #333333;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
	margin: 0;
}

/* Radio nativo (sem appearance: none) */
.celesti-radio-option input[type="radio"] {
	width: 14px;
	height: 14px;
	min-width: 14px;
	min-height: 14px;
	margin: 0;
	padding: 0;
	cursor: pointer;
}

.celesti-radio-option span {
	display: block;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 1;
	color: #333333;
}

/* =========================================================
   TÓPICOS / FAQ
   ========================================================= */

.celesti-campo-topicos {
	width: 100%;
}

#celesti-topicos-disponiveis {
	width: 100%;
}

.celesti-topicos-faq {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.celesti-topico-servico {
	width: 100%;
	background: #eeeeee;
	border: 1px solid #d3d3d3;
	border-radius: 8px;
	overflow: hidden;
}

.celesti-topico-header {
	width: 100%;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 34px;
	align-items: center;
	gap: 10px;
	height: 48px;
	padding: 6px 10px;
	background: #eeeeee;
}

.celesti-topico-header.sem-filhos {
	grid-template-columns: minmax(0, 1fr);
	height: 48px;
}

/* Botão fica à direita visualmente, independente da ordem no HTML */
.celesti-topico-toggle {
	order: 2;
	justify-self: end;
	align-self: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	appearance: none;
	-webkit-appearance: none;
	box-sizing: content-box;
	border: none;
	border-radius: 7px;
	background: #ef2332;
	padding: 8px 9px;
	margin: 0;
	cursor: pointer;
	box-shadow: none;
	outline: none;
	line-height: 0;
	height: auto;
	min-height: 0;
	max-height: none;
	width: auto;
	min-width: 0;
}

.celesti-topico-toggle i {
	display: block;
	color: #ffffff;
	font-size: 12px;
	line-height: 1;
	padding: 0;
	margin: 0;
}

.celesti-topico-check {
	width: 100%;
	display: grid;
	grid-template-columns: 14px minmax(0, 1fr);
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	cursor: pointer;
	font-family: "Open Sans", Arial, sans-serif;
	color: #111111;
}

/* Checkbox nativo (sem customização) */
.celesti-topico-check input[type="checkbox"] {
	width: 14px;
	height: 14px;
	min-width: 14px;
	min-height: 14px;
	margin: 0;
	padding: 0;
	cursor: pointer;
}

.celesti-topico-check span {
	display: block;
	width: 100%;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.45;
	color: #111111;
}

.celesti-topico-check strong {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 13px;
	font-weight: 900;
	color: #111111;
	margin-right: 4px;
}

.celesti-topico-check small {
	display: inline-block;
	margin-left: 6px;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	color: #ef2332;
	vertical-align: middle;
}

.celesti-topico-filhos {
	width: 100%;
	padding: 0 12px 13px 50px;
	background: #eeeeee;
}

.celesti-topico-filhos[hidden] {
	display: none;
}

.celesti-topico-etapa {
	width: 100%;
	margin: 0;
	padding: 7px 0 4px 0;
}

.celesti-topico-etapa > .celesti-topico-check span {
	font-size: 13px;
	font-weight: 700;
}

.celesti-topico-subetapa {
	width: 100%;
	margin: 0;
	padding: 5px 0 0 20px;
}

.celesti-topico-subetapa .celesti-topico-check span {
	font-size: 13px;
	font-weight: 600;
	color: #333333;
}

.celesti-topico-bloqueado {
	opacity: .45;
	cursor: not-allowed;
}

.celesti-topico-bloqueado input,
.celesti-topico-bloqueado span {
	cursor: not-allowed;
}

/* =========================================================
   BOTÕES
   ========================================================= */

.celesti-form-acoes {
	width: 100%;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding-top: 4px;
}

.celesti-btn-salvar-preco,
.celesti-btn-concluir-precos {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: none;
	border-radius: 8px;
	background: #ef2332;
	color: #ffffff;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 16px;
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	padding: 15px 30px !important;
	margin: 0;
	cursor: pointer;
	box-shadow: none;
	outline: none;
}

.celesti-btn-salvar-preco span,
.celesti-btn-concluir-precos span {
	display: inline-block;
	color: #ffffff;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 16px;
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
}

.celesti-btn-salvar-preco i,
.celesti-btn-concluir-precos i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	font-size: 16px;
	line-height: 1;
	margin: 0;
	padding: 0;
}

.celesti-btn-salvar-preco:disabled {
	opacity: .65;
	cursor: not-allowed;
}

/* Botão voltar (modo edição) – segue mesmo padrão visual */
.celesti-btn-cancelar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: none;
	border-radius: 8px;
	background: #dedede;
	color: #333333;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 16px;
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	padding: 15px 30px;
	margin: 0;
	cursor: pointer;
	box-shadow: none;
	outline: none;
}

.celesti-btn-cancelar span,
.celesti-btn-cancelar i {
	color: #333333;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 16px;
	font-weight: 900;
	line-height: 1;
}

/* Botões somente ícone (editar/excluir na lista) */

.celesti-preco-acoes {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.celesti-editar-preco,
.celesti-excluir-preco {
	width: 34px;
	height: 34px;
	min-width: 34px;
	min-height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 8px;
	background: #ef2332;
	color: #ffffff;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 13px;
	font-weight: 900;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	padding: 0;
	margin: 0;
	cursor: pointer;
	box-shadow: none;
	outline: none;
}

.celesti-editar-preco i,
.celesti-excluir-preco i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	font-size: 13px;
	line-height: 1;
	margin: 0;
	padding: 0;
}

.celesti-editar-preco:disabled,
.celesti-excluir-preco:disabled {
	opacity: .5;
	cursor: not-allowed;
}

/* =========================================================
   RETORNOS
   ========================================================= */

.celesti-preco-retorno {
	width: 100%;
	padding: 12px 14px;
	border-radius: 8px;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0;
	display: none;
}

.celesti-preco-retorno[hidden] {
	display: none !important;
}

.celesti-preco-retorno.sucesso {
	display: block;
	background: #dff5e5;
	color: #166534;
}

.celesti-preco-retorno.erro {
	display: block;
	background: #ffe1e4;
	color: #991b1b;
}

.celesti-empty-box,
.celesti-loading {
	width: 100%;
	padding: 14px;
	border-radius: 10px;
	background: #dedede;
	color: #596170;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

/* =========================================================
   LISTA DE PREÇOS
   ========================================================= */

.celesti-lista-precos-proposta {
	width: 100%;
	margin-top: 34px;
}

.celesti-precos-lista {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.celesti-lista-header {
	width: 100%;
	margin-bottom: 4px;
}

.celesti-lista-header h3 {
	margin: 0 0 8px 0;
	color: #333333;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 18px;
	font-weight: 900;
	line-height: 1.2;
	text-transform: uppercase;
}

.celesti-preco-item {
	width: 100%;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 210px;
	gap: 6px;
	align-items: stretch;
	margin: 0;
}

.celesti-preco-info {
	min-height: 88px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	background: #f1f1f1;
	border: 1px solid #dcdcdc;
	border-radius: 12px;
	padding: 17px 18px;
}

.celesti-preco-info strong {
	display: block;
	color: #111111;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 15px;
	font-weight: 900;
	line-height: 1.35;
	margin: 0;
}

.celesti-preco-info span {
	display: block;
	color: #717376;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	margin: 0;
}

.celesti-preco-info small {
	display: block;
	color: #717376;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.35;
	margin: 0;
}

.celesti-preco-valor {
	min-height: 88px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #e2e2e2;
	border-radius: 12px;
	padding: 14px;
	text-align: center;
}

.celesti-preco-valor strong {
	display: block;
	color: #111111;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 18px;
	font-weight: 900;
	line-height: 1.2;
	margin: 0;
}

/* =========================================================
   TOTAL
   ========================================================= */

.celesti-precos-total {
	width: 100%;
	min-height: 82px;
	margin-top: 12px;
	padding: 16px;
	border-radius: 14px;
	background: #333333;
	border: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	text-align: center;
}

.celesti-precos-total span {
	color: #ffffff;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: .08em;
	opacity: .75;
}

.celesti-precos-total strong {
	color: #ffffff;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 24px;
	font-weight: 900;
	line-height: 1.1;
}

/* =========================================================
   SHORTCODE DE TÓPICOS
   ========================================================= */

.celesti-preco-servicos {
	display: inline-block;
	color: #717376;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 767px) {
	.celesti-radio-group {
		flex-direction: column;
		align-items: stretch;
	}

	.celesti-radio-option {
		width: 100%;
	}

	.celesti-topico-header {
		grid-template-columns: 1fr 34px;
		align-items: center;
	}

	.celesti-topico-header.sem-filhos {
		grid-template-columns: 1fr;
	}

	.celesti-topico-filhos {
		padding-left: 22px;
	}

	.celesti-topico-subetapa {
		padding-left: 18px;
	}

	/* Corrigido: justify-content: stretch é valor inválido na spec do flex */
	.celesti-form-acoes {
		justify-content: center;
		flex-direction: column-reverse;
	}

	.celesti-btn-salvar-preco,
	.celesti-btn-concluir-precos,
	.celesti-btn-cancelar {
		width: 100%;
	}

	.celesti-preco-item {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.celesti-preco-info,
	.celesti-preco-valor {
		min-height: auto;
	}

	.celesti-preco-valor {
		flex-direction: row;
		justify-content: space-between;
		text-align: left;
	}

	.celesti-precos-total strong {
		font-size: 22px;
	}
}

/* =========================================================
   CAMPOS OBRIGATÓRIOS
   ========================================================= */

.celesti-label-required::after {
	content: " *";
	color: #717376;
	font-weight: 900;
}