/* LU Engenharia - Modal de leads do WhatsApp */
:root {
	--luwpp-green: #25d366;
	--luwpp-green-dark: #128c4b;
	--luwpp-primary: var(--ast-global-color-0, #1f4e79);
	--luwpp-heading: var(--ast-global-color-2, #1f2933);
	--luwpp-text: var(--ast-global-color-3, #36414c);
	--luwpp-muted: #6b7480;
	--luwpp-border: #dde2e8;
	--luwpp-danger: #b42318;
}

.luwpp, .luwpp * { box-sizing: border-box; }
.luwpp__icon { display: block; width: 32px; height: 32px; }

.luwpp__floating-button { position: fixed; right: 20px; bottom: 20px; z-index: 9997; display: grid; width: 60px; height: 60px; padding: 0; color: #fff; background: var(--luwpp-green); border: 0; border-radius: 50%; box-shadow: 0 10px 28px rgb(0 0 0 / 24%); cursor: pointer; place-items: center; transition: transform 180ms ease, background-color 180ms ease; }
.luwpp__floating-button:hover, .luwpp__floating-button:focus-visible { color: #fff; background: var(--luwpp-green-dark); transform: translateY(-3px) scale(1.04); }
.luwpp__floating-button:focus-visible { outline: 3px solid var(--luwpp-green); outline-offset: 3px; }

.luwpp__modal[hidden] { display: none; }
.luwpp__modal { position: fixed; z-index: 99998; inset: 0; display: grid; padding: 20px; overflow-y: auto; place-items: center; }
.luwpp__backdrop { position: fixed; inset: 0; background: rgb(15 23 32 / 68%); backdrop-filter: blur(4px); }
.luwpp__dialog { position: relative; width: min(100%, 470px); padding: 34px; color: var(--luwpp-text); background: #fff; border-radius: 20px; box-shadow: 0 28px 80px rgb(0 0 0 / 35%); }
.luwpp__close { position: absolute; top: 12px; right: 12px; display: grid; width: 38px; height: 38px; padding: 0; color: #52606d; font: 30px/1 Arial, sans-serif; background: transparent; border: 0; border-radius: 50%; cursor: pointer; place-items: center; }
.luwpp__close:hover, .luwpp__close:focus { color: var(--luwpp-heading); background: #f1f3f6; }
.luwpp__heading-icon { display: grid; width: 54px; height: 54px; margin: 0 auto 16px; color: #fff; background: var(--luwpp-green-dark); border-radius: 50%; place-items: center; }
.luwpp__heading-icon .luwpp__icon { width: 28px; height: 28px; }
.luwpp__title { margin: 0; color: var(--luwpp-heading); font-size: 28px; line-height: 1.15; text-align: center; }
.luwpp__description { margin: 10px 0 24px; color: var(--luwpp-muted); font-size: 14px; line-height: 1.55; text-align: center; }

.luwpp__form { display: grid; gap: 15px; }
.luwpp__field { display: grid; gap: 6px; }
.luwpp__field label { color: var(--luwpp-heading); font-size: 13px; font-weight: 700; }
.luwpp__field input { width: 100%; min-height: 48px; margin: 0; padding: 11px 13px; color: var(--luwpp-text); font-size: 15px; background: #fbfcfd; border: 1px solid var(--luwpp-border); border-radius: 10px; }
.luwpp__field input:focus { border-color: var(--luwpp-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--luwpp-primary) 15%, transparent); outline: 0; }
.luwpp__consent { display: flex; gap: 10px; align-items: flex-start; color: var(--luwpp-muted); font-size: 12px; line-height: 1.45; cursor: pointer; }
.luwpp__consent input { flex: 0 0 auto; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--luwpp-primary); }
.luwpp__message { margin: 0; color: var(--luwpp-danger); font-size: 13px; font-weight: 700; text-align: center; }
.luwpp__message:empty { display: none; }

.luwpp__submit { display: flex; min-height: 52px; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; color: #fff; font-size: 15px; font-weight: 700; background: var(--luwpp-green-dark); border: 0; border-radius: 999px; cursor: pointer; transition: background-color 160ms ease; }
.luwpp__submit:hover, .luwpp__submit:focus { color: #fff; background: #0e7a40; }
.luwpp__submit:disabled { cursor: wait; opacity: .75; }
.luwpp__spinner { width: 18px; height: 18px; border: 2px solid rgb(255 255 255 / 45%); border-top-color: #fff; border-radius: 50%; animation: luwpp-spin 700ms linear infinite; }
.luwpp__spinner[hidden] { display: none; }

.luwpp__honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

body.luwpp-modal-open { overflow: hidden; }
@keyframes luwpp-spin { to { transform: rotate(360deg); } }

@media (max-width: 520px) {
	.luwpp__floating-button { right: 14px; bottom: 14px; width: 56px; height: 56px; }
	.luwpp__modal { padding: 12px; align-items: end; }
	.luwpp__dialog { width: 100%; max-height: calc(100dvh - 24px); padding: 28px 20px 22px; overflow-y: auto; border-radius: 18px; }
	.luwpp__title { padding: 0 22px; font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.luwpp__floating-button, .luwpp__submit { transition: none; }
	.luwpp__floating-button:hover { transform: none; }
}
