/* =========================================================================
   Cliente – Modo Orçamento
   Paleta (OKLCH): azul royal estrutural + teal de ação, neutros tintados.
   ========================================================================= */

/* Texto exibido no lugar do preço (catálogo, produto, carrinho). */
.cqm-price-hidden {
	display: inline-block;
	font-style: italic;
	font-weight: 500;
	color: oklch(0.52 0.02 264);
}

/* Honeypot anti-spam: escondido sem usar style inline. */
.cqm-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* =========================================================================
   Superfície do orçamento (resumo + formulário)
   ========================================================================= */
.cqm-quote {
	max-width: 720px;
	margin: 0 auto;
	padding: clamp(20px, 4vw, 36px);
	background: oklch(0.995 0.002 264);
	border: 1px solid oklch(0.91 0.012 264);
	border-radius: 16px;
	box-shadow: 0 1px 2px oklch(0.45 0.15 264 / 0.04),
		0 12px 28px -18px oklch(0.45 0.15 264 / 0.25);
	color: oklch(0.32 0.02 264);
}

.cqm-section-title {
	margin: 0 0 14px;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.005em;
	color: oklch(0.45 0.15 264);
}

.cqm-section-title + .cqm-items {
	margin-top: 0;
}

.cqm-quote .cqm-form {
	margin-top: 28px;
}

/* =========================================================================
   Resumo de itens
   ========================================================================= */
.cqm-items {
	width: 100%;
	margin: 0 0 4px;
	border-collapse: collapse;
	font-size: 0.97rem;
}

.cqm-items thead th {
	padding: 11px 14px;
	text-align: left;
	background: oklch(0.965 0.012 264);
	color: oklch(0.45 0.13 264);
	font-weight: 600;
	letter-spacing: 0.01em;
	border-bottom: 2px solid oklch(0.9 0.012 264);
}

.cqm-items tbody td {
	padding: 11px 14px;
	border-bottom: 1px solid oklch(0.93 0.01 264);
}

.cqm-items tbody tr:last-child td {
	border-bottom: none;
}

.cqm-items th:last-child,
.cqm-items td:last-child {
	width: 72px;
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

/* =========================================================================
   Formulário
   ========================================================================= */
.cqm-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
}

.cqm-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
}

.cqm-field--full {
	grid-column: 1 / -1;
}

.cqm-form label {
	font-weight: 600;
	font-size: 0.92rem;
	color: oklch(0.4 0.05 264);
}

.cqm-req {
	color: oklch(0.52 0.17 25);
	font-weight: 700;
}

.cqm-form input[type="text"],
.cqm-form input[type="email"],
.cqm-form input[type="tel"],
.cqm-form textarea {
	width: 100%;
	padding: 11px 13px;
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
	color: oklch(0.3 0.02 264);
	background: oklch(0.99 0.004 264);
	border: 1px solid oklch(0.88 0.014 264);
	border-radius: 10px;
	box-shadow: inset 0 1px 2px oklch(0.45 0.15 264 / 0.03);
	transition: border-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cqm-form textarea {
	min-height: 132px;
	resize: vertical;
}

.cqm-form input::placeholder,
.cqm-form textarea::placeholder {
	color: oklch(0.7 0.015 264);
}

.cqm-form input:focus,
.cqm-form textarea:focus {
	outline: none;
	border-color: oklch(0.68 0.09 168);
	box-shadow: 0 0 0 3px oklch(0.68 0.09 168 / 0.22);
}

/* Consentimento LGPD: checkbox alinhado ao texto, peso normal. */
.cqm-consent-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 400;
	font-size: 0.9rem;
	line-height: 1.5;
	color: oklch(0.45 0.02 264);
	cursor: pointer;
}

.cqm-consent-label input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	accent-color: oklch(0.54 0.12 168);
	cursor: pointer;
}

.cqm-consent-label input[type="checkbox"]:focus-visible {
	outline: 3px solid oklch(0.54 0.12 168 / 0.5);
	outline-offset: 2px;
}

/* =========================================================================
   Botão de envio (sobrescreve o .button do tema com o teal de ação)
   ========================================================================= */
.cqm-actions {
	margin-top: 4px;
}

.cqm-form button[type="submit"].cqm-submit {
	display: inline-block;
	padding: 13px 30px;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	color: oklch(0.99 0.01 168) !important;
	background: oklch(0.53 0.12 168) !important;
	border: none !important;
	border-radius: 999px;
	box-shadow: 0 8px 18px -10px oklch(0.5 0.12 168 / 0.7);
	cursor: pointer;
	transition: background-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
		transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cqm-form button[type="submit"].cqm-submit:hover {
	background: oklch(0.47 0.12 168) !important;
	transform: translateY(-1px);
	box-shadow: 0 12px 22px -10px oklch(0.5 0.12 168 / 0.75);
}

.cqm-form button[type="submit"].cqm-submit:active {
	transform: translateY(0);
}

.cqm-form button[type="submit"].cqm-submit:focus-visible {
	outline: 3px solid oklch(0.54 0.12 168 / 0.55);
	outline-offset: 2px;
}

/* =========================================================================
   Estados: vazio, sucesso, erros
   ========================================================================= */
.cqm-empty {
	margin: 0;
	padding: 18px 16px;
	text-align: center;
	color: oklch(0.5 0.02 264);
}

.cqm-success {
	padding: 18px 20px;
	font-weight: 500;
	color: oklch(0.4 0.07 168);
	background: oklch(0.96 0.03 168);
	border: 1px solid oklch(0.86 0.05 168);
	border-radius: 12px;
}

.cqm-errors {
	margin-bottom: 22px;
	padding: 14px 18px;
	color: oklch(0.46 0.13 25);
	background: oklch(0.965 0.03 25);
	border: 1px solid oklch(0.86 0.07 25);
	border-radius: 12px;
}

.cqm-errors ul {
	margin: 0;
	padding-left: 20px;
}

.cqm-errors li + li {
	margin-top: 4px;
}

/* =========================================================================
   Responsivo
   ========================================================================= */
@media (max-width: 560px) {
	.cqm-form {
		grid-template-columns: 1fr;
	}

	.cqm-form button[type="submit"].cqm-submit {
		width: 100%;
	}
}
