/**
 * Busca sem resultados — CTA + popup (compacto, ~quadrado, responsivo, escopado em .smcp-nr-*).
 * Botões reusam .btn.btn-secondary do Houzez (mesma cor/hover/raio/foco do botão Buscar).
 * Centralização à prova de corte: overlay flex + modal margin:auto + max-height de segurança.
 */

/* ---- CTA na área "sem resultados" (usa .btn.btn-secondary) ---- */
.smcp-nr-cta-wrap { margin: 18px 0 4px; text-align: center; }
.smcp-nr-cta.btn { font-weight: 700; padding-left: 26px; padding-right: 26px; }
.smcp-nr-hint { margin: 8px auto 0; max-width: 540px; color: #64748b; font-size: 14px; line-height: 1.5; }

/* ---- overlay + modal ---- */
html.smcp-nr-lock, html.smcp-nr-lock body { overflow: hidden; }

.smcp-nr-overlay {
	position: fixed; inset: 0; z-index: 100000;
	display: flex; padding: 12px;
	background: rgba(15, 23, 42, .55);
	overflow-y: auto; -webkit-overflow-scrolling: touch;
	opacity: 0; transition: opacity .2s ease;
}
.smcp-nr-overlay[hidden] { display: none; }
.smcp-nr-overlay.is-open { opacity: 1; }

.smcp-nr-modal {
	margin: auto;                          /* centra; quando alto, alinha ao topo e rola (sem corte) */
	width: 100%; max-width: 660px;
	max-height: calc(100dvh - 24px);       /* limite de segurança */
	overflow-y: auto;
	background: #fff; border-radius: 18px;
	padding: 22px 24px 18px;
	box-shadow: 0 24px 60px rgba(2, 6, 23, .35);
	transform: translateY(10px) scale(.99);
	transition: transform .2s ease;
}
.smcp-nr-overlay.is-open .smcp-nr-modal { transform: none; }

.smcp-nr-close {
	position: absolute; top: 12px; right: 14px;
	width: 34px; height: 34px; border-radius: 50%;
	border: 0; background: #f1f5f9; color: #334155;
	font-size: 22px; line-height: 1; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	transition: background .15s ease;
}
.smcp-nr-close:hover { background: #e2e8f0; }
.smcp-nr-close:focus-visible { outline: 2px solid #a8cf45; outline-offset: 2px; }

.smcp-nr-title { margin: 2px 34px 5px 0; font-size: 20px; font-weight: 800; color: #0f172a; line-height: 1.2; }
.smcp-nr-support { margin: 0 0 12px; color: #475569; font-size: 13.5px; line-height: 1.45; }

/* ---- resumo da busca (grid 2 colunas) ---- */
.smcp-nr-summary { background: #f8fafc; border: 1px solid #e9eef5; border-radius: 12px; padding: 9px 14px; margin-bottom: 12px; }
.smcp-nr-summary-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #6e9d12; margin-bottom: 6px; }
.smcp-nr-srows { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 18px; }
.smcp-nr-srow { display: flex; gap: 6px; align-items: baseline; min-width: 0; }
.smcp-nr-slabel { color: #64748b; font-size: 13px; flex: 0 0 auto; }
.smcp-nr-slabel::after { content: ':'; }
.smcp-nr-sval { color: #0f172a; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- form (campos compactos; WhatsApp + E-mail lado a lado) ---- */
.smcp-nr-field { margin-bottom: 8px; }
.smcp-nr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.smcp-nr-form input[type="text"],
.smcp-nr-form input[type="tel"],
.smcp-nr-form input[type="email"],
.smcp-nr-form textarea {
	width: 100%; box-sizing: border-box;
	border: 1px solid #d6dee8; border-radius: 10px;
	padding: 11px 14px; font-size: 15px; color: #0f172a; background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.smcp-nr-form input[type="text"],
.smcp-nr-form input[type="tel"],
.smcp-nr-form input[type="email"] { height: 46px; }
.smcp-nr-form input:focus, .smcp-nr-form textarea:focus {
	outline: 0; border-color: #a8cf45; box-shadow: 0 0 0 3px rgba(168, 207, 69, .22);
}
.smcp-nr-form textarea { resize: vertical; min-height: 86px; line-height: 1.4; }

/* ---- aceite: checkbox 18px na mesma linha (sem herdar estilo de input) ---- */
.smcp-nr-terms { display: flex; align-items: flex-start; gap: 9px; margin: 2px 0 12px; color: #475569; font-size: 12.5px; line-height: 1.4; cursor: pointer; }
.smcp-nr-terms input[type="checkbox"] {
	-webkit-appearance: auto; appearance: auto;
	width: 18px; height: 18px; min-width: 18px; flex: 0 0 18px;
	margin: 1px 0 0; padding: 0; box-shadow: none; border-radius: 4px;
}
.smcp-nr-terms a { color: #4d7c0f; font-weight: 600; text-decoration: underline; }

/* botão de envio reusa .btn.btn-secondary; aqui só layout + loading */
.smcp-nr-submit.btn { width: 100%; font-weight: 700; }
.smcp-nr-submit.is-loading { position: relative; color: transparent !important; }
.smcp-nr-submit.is-loading::after {
	content: ""; position: absolute; top: 50%; left: 50%;
	width: 18px; height: 18px; margin: -9px 0 0 -9px;
	border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff;
	border-radius: 50%; animation: smcp-nr-spin .7s linear infinite;
}
@keyframes smcp-nr-spin { to { transform: rotate(360deg); } }

.smcp-nr-feedback { font-size: 13px; line-height: 1.45; margin-bottom: 8px; }
.smcp-nr-feedback:empty { display: none; }
.smcp-nr-feedback.is-error { color: #b91c1c; }

/* ---- sucesso (substitui o form) ---- */
.smcp-nr-done { text-align: center; padding: 14px 6px 6px; }
.smcp-nr-done-ico { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: #ecfccb; color: #4d7c0f; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.smcp-nr-done h3 { margin: 0 0 8px; font-size: 19px; color: #0f172a; }
.smcp-nr-done p { margin: 0 auto; max-width: 440px; color: #475569; font-size: 14.5px; line-height: 1.5; }

/* ---- mobile ---- */
@media (max-width: 575.98px) {
	.smcp-nr-overlay { padding: 8px; }
	.smcp-nr-modal { width: calc(100% - 16px); max-width: none; border-radius: 16px; padding: 20px 16px 16px; }
	.smcp-nr-title { font-size: 19px; }
	.smcp-nr-srows { grid-template-columns: 1fr; }
	.smcp-nr-row { grid-template-columns: 1fr; }
	.smcp-nr-form textarea { min-height: 80px; }
}

/* ---- reduz movimento ---- */
@media (prefers-reduced-motion: reduce) {
	.smcp-nr-overlay, .smcp-nr-modal { transition: none; }
	.smcp-nr-submit.is-loading::after { animation: none; }
}
