/* lead.css — lead form pop-up, calculator gate and Blueprint slide-in */
html.lm-open, html.lm-open body { overflow: hidden }

.lm {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; padding: 16px;
  background: rgba(4, 15, 25, .62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .2s ease;
}
.lm[hidden] { display: none }
.lm.is-open { opacity: 1 }
.lm__panel {
  position: relative; width: min(460px, 100%);
  max-height: calc(100dvh - 32px); overflow-y: auto;
  background: #fff; color: var(--ink);
  border-radius: 20px; padding: 26px 26px 22px;
  box-shadow: 0 40px 80px -30px rgba(4, 12, 32, .6);
  transform: translateY(8px); transition: transform .2s ease;
}
.lm.is-open .lm__panel { transform: none }
.lm__close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px;
  border: 1px solid var(--line); border-radius: 50%; background: #fff;
  font-size: 1.3rem; line-height: 1; color: var(--muted); cursor: pointer;
}
.lm__close[hidden] { display: none }
.lm__brand { display: flex; align-items: center; gap: 10px; margin: 0 0 16px }
.lm__brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20% }
.lm__brand b { display: block; font-size: .95rem; color: var(--navy) }
.lm__brand small { display: block; font-size: .75rem; color: var(--muted) }
.lm__eyebrow { margin: 0 0 6px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #007f9b }
.lm__title { margin: 0 0 6px; font-size: 1.45rem; line-height: 1.2; color: var(--navy) }
.lm__intro { margin: 0 0 16px; font-size: .92rem; color: var(--muted) }
.lm-field { display: block; margin: 0 0 12px; font-weight: 400 }
.lm-field > span:first-child { display: block; font-size: .84rem; font-weight: 700; margin-bottom: 5px; color: var(--ink) }
.lm-field i { font-style: normal; font-weight: 400; color: var(--muted) }
.lm-field small { display: block; font-size: .76rem; color: var(--muted); margin-top: 4px }
.lm-field em, .lm-cerr { display: block; font-style: normal; font-size: .8rem; color: var(--red); margin-top: 4px }
.lm-field em[hidden], .lm-cerr[hidden] { display: none }
.lm-field textarea {
  width: 100%; border: 1px solid #c5cfda; border-radius: 10px; padding: .65rem .8rem;
  font: inherit; font-size: 1rem; color: var(--ink); resize: vertical;
}
.lm-phone { display: flex; border: 1px solid #c5cfda; border-radius: 10px; overflow: hidden; background: #fff }
.lm-phone b { display: grid; place-items: center; padding: 0 12px; background: #f1f4f7; border-right: 1px solid #c5cfda; font-weight: 600; color: var(--muted) }
.lm-phone input { border: 0; border-radius: 0; box-shadow: none !important }
.lm-phone:focus-within { border-color: #007f9b; box-shadow: 0 0 0 3px rgba(0, 127, 155, .2) }
.lm-phone:has(input[aria-invalid=true]) { border-color: var(--red) }
.lm-consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .84rem; color: #33475c; margin: 4px 0 0; cursor: pointer }
.lm-consent input { margin-top: 2px }
.lm__submit { width: 100%; margin-top: 14px }
.lm__fine { margin: 12px 0 0; font-size: .76rem; color: var(--muted); text-align: center }
.lm__fine a[hidden] { display: none }

/* gate: the calculator behind is blurred and can't be used */
html.is-gated main, html.is-gated .site-header, html.is-gated .site-footer { filter: blur(3px); pointer-events: none; user-select: none }

/* Blueprint slide-in */
.slidein {
  position: fixed; right: 16px; bottom: 88px; z-index: 45; width: min(300px, calc(100% - 32px));
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px;
  box-shadow: 0 24px 50px -20px rgba(4, 15, 25, .45);
  transform: translateY(16px); opacity: 0; transition: transform .35s ease, opacity .35s ease;
}
.slidein[hidden] { display: none }
.slidein.is-shown { transform: none; opacity: 1 }
.slidein__close { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; background: none; font-size: 1.2rem; color: var(--muted); cursor: pointer }
.slidein__eyebrow { margin: 0 0 4px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #007f9b }
.slidein__title { margin: 0 0 4px; font-weight: 700; color: var(--navy); font-size: 1.02rem }
.slidein__text { margin: 0 0 12px; font-size: .84rem; color: var(--muted) }
.slidein .btn { width: 100% }

/* compact floating WhatsApp: never covers inputs */
.wa-float {
  width: 56px; height: 56px; padding: 0 !important; border-radius: 50% !important;
  display: grid; place-items: center;
  right: max(16px, env(safe-area-inset-right)) !important; bottom: max(16px, env(safe-area-inset-bottom)) !important;
}
.wa-float svg { width: 28px; height: 28px; fill: #fff }
.wa-float .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }
.site-footer { padding-bottom: calc(2rem + 72px) !important }
@media (max-width: 520px) { .slidein { bottom: 84px } }
