/* Página de orçamento (templates/orcamento.php) */

.orcamento {
	--orc-vermelho: #c3141a;
	--orc-vermelho-escuro: #9d0d06;
	--orc-verde: #1f8a3b;
	--orc-texto: #333;
	--orc-texto-suave: #6b6b6b;
	--orc-borda: #d9d9d9;
	--orc-fundo-suave: #f7f7f7;

	max-width: 1180px;
	margin: 0 auto;
	padding: 3rem 1.25rem 3.5rem;
	font-family: Barlow, sans-serif;
	color: var(--orc-texto);
}

.orcamento svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Cabeçalho */

.orcamento__header {
	text-align: center;
	margin-bottom: 2.5rem;
}

.orcamento__titulo {
	margin: 0 0 1.25rem !important;
	font-family: Barlow, sans-serif;
	font-size: 2.25rem;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--orc-vermelho);
}

.orcamento__titulo::after,
.orcamento__lateral-titulo::after {
	content: '';
	display: block;
	width: 3rem;
	height: 3px;
	margin: 0.75rem auto 0;
	background: var(--orc-vermelho);
}

.orcamento__subtitulo {
	margin: 0;
	font-size: 1.15rem;
	color: var(--orc-texto-suave);
}

/* Colunas */

.orcamento__conteudo {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 18.5rem;
	gap: 2.5rem;
	align-items: start;
}

.orcamento__form {
	padding: 1.75rem 1.5rem;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Formulário */

.orc-form__campos {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem 2rem;
}

.orc-campo {
	display: block;
	margin: 0;
}

.orc-campo--inteiro {
	grid-column: 1 / -1;
}

.orc-campo__label {
	display: block;
	margin-bottom: 0.6rem;
	font-size: 1rem;
	font-weight: 500;
	color: var(--orc-texto);
}

.orc-campo__label em {
	font-style: normal;
	color: var(--orc-vermelho);
}

.orc-form input[type="text"],
.orc-form input[type="email"],
.orc-form input[type="tel"],
.orc-form textarea {
	width: 100%;
	padding: 0.7rem 1rem;
	font-family: inherit;
	font-size: 1rem;
	color: var(--orc-texto);
	background: #fff;
	border: 1px solid var(--orc-borda);
	border-radius: 6px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.orc-form input::placeholder,
.orc-form textarea::placeholder {
	color: #9a9a9a;
}

.orc-form input:focus,
.orc-form textarea:focus {
	outline: none;
	border-color: var(--orc-vermelho);
	box-shadow: 0 0 0 3px rgba(195, 20, 26, 0.12);
}

.orc-form .wpcf7-not-valid {
	border-color: var(--orc-vermelho) !important;
}

.orc-form .wpcf7-not-valid-tip {
	margin-top: 0.35rem;
	font-size: 0.85rem;
	color: var(--orc-vermelho);
}

.orc-campo__textarea {
	position: relative;
	display: block;
}

.orc-form textarea {
	height: 6.5rem;
	padding-bottom: 1.75rem;
	resize: none;
}

/* Preso ao topo (altura fixa do textarea) para não descer quando aparece a mensagem de erro */
.orc-campo__contador {
	position: absolute;
	top: 5rem;
	right: 0.75rem;
	font-size: 0.85rem;
	color: var(--orc-texto-suave);
	pointer-events: none;
}

/* Cards de solução */

.orc-solucoes {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 1rem;
}

.orc-solucoes .wpcf7-list-item {
	margin: 0;
}

.orc-solucoes label {
	display: block;
	height: 100%;
	margin: 0;
	cursor: pointer;
}

.orc-solucoes input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.orc-solucoes .wpcf7-list-item-label {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 0.6rem;
	height: 100%;
	min-height: 6.75rem;
	padding: 1.1rem 0.5rem 1rem;
	font-size: 0.95rem;
	line-height: 1.2;
	text-align: center;
	color: var(--orc-texto);
	border: 1px solid var(--orc-borda);
	border-radius: 8px;
	transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.orc-solucoes .wpcf7-list-item-label::before {
	content: '';
	width: 2rem;
	height: 2rem;
	flex-shrink: 0;
	background: var(--orc-vermelho);
	-webkit-mask: var(--orc-icone) center / contain no-repeat;
	mask: var(--orc-icone) center / contain no-repeat;
}

.orc-solucoes label:hover .wpcf7-list-item-label {
	border-color: var(--orc-vermelho);
}

.orc-solucoes input:focus-visible + .wpcf7-list-item-label {
	box-shadow: 0 0 0 3px rgba(195, 20, 26, 0.2);
}

.orc-solucoes input:checked + .wpcf7-list-item-label {
	font-weight: 500;
	border-color: var(--orc-vermelho);
	background: #fff5f5;
	box-shadow: inset 0 0 0 1px var(--orc-vermelho);
}

/* Ícones na ordem das opções do formulário */
.orc-solucoes .wpcf7-list-item:nth-child(1) { --orc-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M3 21.5h18M5 21.5V3h9v18.5M14 8.5h5v13M8 6.5h1.5M8 10h1.5M8 13.5h1.5M8 17h1.5M16.5 12h1M16.5 15.5h1'/%3E%3C/svg%3E"); }
.orc-solucoes .wpcf7-list-item:nth-child(2) { --orc-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M3 21.5h18M4.5 21.5V8h15v13.5M9 5V2.5h6V5M10 21.5v-4h4v4M12 10.5v5M9.5 13h5'/%3E%3C/svg%3E"); }
.orc-solucoes .wpcf7-list-item:nth-child(3) { --orc-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M12.5 2.5h8a1 1 0 0 1 1 1v8L11 22a1.4 1.4 0 0 1-2 0L2 15a1.4 1.4 0 0 1 0-2z'/%3E%3Ccircle cx='17' cy='7' r='1.5'/%3E%3Cpath d='M7 13.5l4-4M9.5 16l4-4'/%3E%3C/svg%3E"); }
.orc-solucoes .wpcf7-list-item:nth-child(4) { --orc-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17l17.4-10M9.5 3.5L12 6l2.5-2.5M9.5 20.5L12 18l2.5 2.5M3 10.3l3.4.9-.9 3.4M21 13.7l-3.4-.9.9-3.4M5.5 9.4l.9 3.4-3.4.9M18.5 14.6l-.9-3.4 3.4-.9'/%3E%3C/svg%3E"); }
.orc-solucoes .wpcf7-list-item:nth-child(5) { --orc-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20c0-9 5-15 16-16 0 11-6 16-15 16zM4 20L14 10'/%3E%3C/svg%3E"); }
.orc-solucoes .wpcf7-list-item:nth-child(6) { --orc-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Ccircle cx='8' cy='12' r='.6' fill='%23000'/%3E%3Ccircle cx='12' cy='12' r='.6' fill='%23000'/%3E%3Ccircle cx='16' cy='12' r='.6' fill='%23000'/%3E%3C/svg%3E"); }

/* Privacidade e envio */

.orc-form__privacidade {
	display: flex;
	align-items: flex-start;
	gap: 0.4rem;
	margin: 1.25rem 0 1.25rem;
	font-size: 0.85rem;
	color: var(--orc-texto-suave);
}

.orc-form__privacidade::before {
	content: '';
	width: 0.85rem;
	height: 0.85rem;
	flex-shrink: 0;
	margin-top: 0.15em;
	background: var(--orc-texto-suave);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10V7a6 6 0 0 1 12 0v3h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1zm2.5 0h7V7a3.5 3.5 0 0 0-7 0z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10V7a6 6 0 0 1 12 0v3h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1zm2.5 0h7V7a3.5 3.5 0 0 0-7 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.orc-form .orc-form__enviar {
	display: block;
	width: 100%;
	padding: 0.85rem 1rem;
	font-family: Barlow, sans-serif;
	font-size: 1.25rem;
	font-weight: 600;
	text-transform: uppercase;
	color: #fff;
	background: var(--orc-vermelho);
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.2s;
}

.orc-form .orc-form__enviar:hover,
.orc-form .orc-form__enviar:focus {
	background: var(--orc-vermelho-escuro);
}

/* Enquanto envia, o próprio botão indica o carregamento no lugar do spinner do CF7 */
.orc-form .wpcf7-spinner {
	display: none;
}

.orc-form.submitting .orc-form__enviar {
	opacity: 0.7;
	cursor: wait;
	pointer-events: none;
}

.orc-form .wpcf7-response-output {
	margin: 1rem 0 0 !important;
	padding: 0.75rem 1rem !important;
	font-size: 0.95rem;
	border-radius: 6px;
}

.orc-form.invalid .wpcf7-response-output,
.orc-form.failed .wpcf7-response-output {
	color: var(--orc-vermelho-escuro);
	background: #fff5f5;
	border-color: var(--orc-vermelho) !important;
}

.orc-form.sent .wpcf7-response-output {
	color: #1b5e20;
	background: #edf7ee;
	border-color: #4caf50 !important;
}

/* Lateral */

.orcamento__lateral {
	padding-top: 1rem;
}

.orcamento__lateral-titulo {
	margin: 0 0 2rem !important;
	font-family: Barlow, sans-serif;
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.25;
	text-transform: uppercase;
	color: var(--orc-vermelho);
}

.orcamento__lateral-titulo::after {
	margin-left: 0;
	width: 4.5rem;
}

.orcamento__beneficios {
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
}

.orcamento__beneficios li {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin-bottom: 1.75rem;
	font-size: 1rem;
	line-height: 1.5;
}

.orcamento__beneficios svg {
	width: 2.5rem;
	height: 2.5rem;
	flex-shrink: 0;
	color: var(--orc-vermelho);
}

.orcamento__whatsapp {
	padding: 1.5rem 1rem;
	text-align: center;
	background: var(--orc-fundo-suave);
	border: 1px solid #e6e6e6;
	border-radius: 10px;
}

.orcamento__whatsapp-icone {
	width: 2.75rem;
	height: 2.75rem;
	color: var(--orc-verde);
}

.orcamento__whatsapp strong {
	display: block;
	margin: 0.5rem 0;
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--orc-verde);
}

.orcamento__whatsapp p {
	margin: 0 0 1.25rem;
	line-height: 1.5;
}

.orcamento__whatsapp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.7rem 1rem;
	font-family: Barlow, sans-serif;
	font-size: 1.05rem;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--orc-verde);
	background: #fff;
	border: 1.5px solid var(--orc-verde);
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.orcamento__whatsapp-btn svg {
	width: 1.5rem;
	height: 1.5rem;
}

.orcamento__whatsapp-btn:hover,
.orcamento__whatsapp-btn:focus {
	color: #fff;
	background: var(--orc-verde);
}

/* Rodapé */

.orcamento__rodape {
	margin-top: 3rem;
	text-align: center;
	font-size: 1.05rem;
	color: var(--orc-texto-suave);
}

.orcamento__rodape p {
	margin: 0;
}

.orcamento__rodape svg {
	width: 1.15rem;
	height: 1.15rem;
	vertical-align: -0.15em;
}

/* Responsivo */

@media (max-width: 1024px) {
	.orcamento__conteudo {
		grid-template-columns: 1fr;
	}

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

	.orcamento__lateral {
		padding-top: 0;
	}
}

@media (max-width: 600px) {
	.orcamento {
		padding-top: 2rem;
	}

	.orcamento__titulo {
		font-size: 1.75rem;
	}

	.orcamento__subtitulo {
		font-size: 1rem;
	}

	.orcamento__form {
		padding: 1.25rem 1rem;
	}

	.orc-form__campos {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.orc-solucoes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.75rem;
	}
}
