/* =====================================================================
 *  "Talk to us, directly." lead popup
 * ===================================================================== */
.lp { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.lp[hidden] { display: none; }
.lp-scrim { position: absolute; inset: 0; background: rgba(7, 22, 52, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: lpFade .3s ease-out both; }
.lp.is-closing .lp-scrim { animation: lpFade .22s ease-in reverse both; }

.lp-card {
    position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; -ms-overflow-style: none;
    padding: 44px 46px 30px; border-radius: 30px; isolation: isolate;
    background: rgba(250, 252, 255, .94);
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: 0 40px 90px -30px rgba(7, 22, 52, .55), 0 0 0 1px rgba(22, 115, 230, .06), inset 0 1px 0 #fff;
    animation: lpIn .45s cubic-bezier(.2, .8, .2, 1) both;
}
.lp.is-closing .lp-card { animation: lpOut .22s ease-in both; }
.lp-card::-webkit-scrollbar { display: none; width: 0; height: 0; }
.lp-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; }
.lp-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(42px); pointer-events: none; }
.lp-glow-a { width: 300px; height: 300px; top: -120px; right: -110px; background: radial-gradient(circle, rgba(98, 188, 255, .75), rgba(22, 115, 230, .25) 55%, transparent 72%); animation: lpDrift 9s ease-in-out infinite alternate; }
.lp-glow-b { width: 260px; height: 260px; bottom: -130px; left: -110px; background: radial-gradient(circle, rgba(249, 163, 27, .55), rgba(242, 106, 18, .18) 55%, transparent 72%); animation: lpDrift 11s ease-in-out infinite alternate-reverse; }

.lp-x { position: absolute; top: 22px; right: 22px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--navy-800, #0b1e4a); cursor: pointer; transition: background .2s, transform .2s; }
.lp-x:hover { background: rgba(11, 30, 74, .07); transform: rotate(90deg); }
.lp-x:focus-visible { outline: 2px solid var(--blue-500, #1673e6); outline-offset: 2px; }
.lp-x .ic { width: 22px; height: 22px; stroke-width: 2.4; }

.lp-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--blue-500, #1673e6); }
.lp-eyebrow i { position: relative; width: 14px; height: 14px; border-radius: 50%; background: rgba(22, 115, 230, .18); }
.lp-eyebrow i::after { content: ""; position: absolute; inset: 3.5px; border-radius: 50%; background: var(--blue-500, #1673e6); }
.lp-eyebrow i::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(22, 115, 230, .35); animation: lpPing 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
.lp-title { margin: 0 0 10px; font-size: clamp(28px, 4.6vw, 36px); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; color: var(--navy-800, #0b1e4a); }
.lp-sub { margin: 0 0 28px; font-size: 17px; line-height: 1.5; color: var(--muted, #5f6b86); }

/* fields */
.lp-form { display: grid; gap: 16px; }
.lp-f { position: relative; display: block; }
.lp-f input, .lp-f .csel-btn {
    width: 100%; height: 62px; padding: 0 22px; border-radius: 16px; font: inherit; font-size: 17px; color: var(--navy-800, #0b1e4a);
    background: rgba(234, 244, 255, .7); border: 1px solid #cfdcee; box-shadow: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.lp-f input:hover, .lp-f .csel-btn:hover { border-color: #a9c4e6; }
.lp-f input:focus, .lp-f .csel-btn:focus, .lp-f .csel.open .csel-btn { outline: none; background: #fff; border-color: var(--blue-500, #1673e6); box-shadow: 0 0 0 4px rgba(98, 188, 255, .28); }
.lp-ph { position: absolute; left: 23px; top: 50%; transform: translateY(-50%); font-size: 17px; color: #6c7894; pointer-events: none; transition: opacity .15s; }
.lp-ph b { color: var(--orange-500, #f26a12); font-weight: 700; margin-left: 1px; }
.lp-f input:not(:placeholder-shown) + .lp-ph { opacity: 0; }

.lp-tel { display: flex; align-items: stretch; border-radius: 16px; background: rgba(234, 244, 255, .7); border: 1px solid #cfdcee; transition: border-color .2s, box-shadow .2s, background .2s; }
.lp-tel:hover { border-color: #a9c4e6; }
.lp-tel:focus-within { background: #fff; border-color: var(--blue-500, #1673e6); box-shadow: 0 0 0 4px rgba(98, 188, 255, .28); }
.lp-tel input, .lp-tel input:focus, .lp-tel input:hover { background: transparent; border: 0; box-shadow: none; height: 60px; }
.lp-cc { flex: 0 0 76px; width: 76px !important; padding: 0 0 0 22px !important; color: #4a5672 !important; }
.lp-tel-in { position: relative; flex: 1; min-width: 0; display: block; }
.lp-tel-in::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: #cfdcee; }
.lp-tel-in input { padding-left: 14px; }
.lp-tel-in .lp-ph { left: 15px; }

.lp-sel select { width: 100%; height: 62px; padding: 0 22px; border-radius: 16px; border: 1px solid #cfdcee; font: inherit; font-size: 17px; background: rgba(234, 244, 255, .7); color: var(--navy-800, #0b1e4a); }
.lp-f .csel { width: 100%; }
.lp-f .csel-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; text-align: left; }
.lp-f .csel-btn .csel-val { color: var(--navy-800, #0b1e4a); }
.lp-f .csel-btn .csel-val.ph, .lp-f .csel-btn.ph .csel-val { color: #6c7894; }
.lp-f .csel.invalid .csel-btn { border-color: #e25555; }
.lp-f.bad input, .lp-tel.bad { border-color: #e25555 !important; box-shadow: 0 0 0 4px rgba(226, 85, 85, .14) !important; }

.lp-err { margin: -4px 2px 0; font-size: 14px; color: #c53030; }
.lp-err[hidden] { display: none; }

/* button */
.lp-btn {
    position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 62px; margin-top: 10px;
    border: 0; border-radius: 999px; font: inherit; font-size: 18px; font-weight: 800; letter-spacing: .01em; color: #fff; cursor: pointer; text-decoration: none;
    background: var(--grad-warm, linear-gradient(135deg, #f9a31b, #f26a12));
    box-shadow: 0 16px 30px -14px rgba(242, 106, 18, .75);
    transition: transform .2s, box-shadow .2s;
}
.lp-btn .ic { width: 20px; height: 20px; transition: transform .2s; }
.lp-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 20px 34px -14px rgba(242, 106, 18, .85); }
.lp-btn:hover:not(:disabled) .ic { transform: translateX(4px); }
.lp-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-100%); }
.lp-btn:not(:disabled)::after { animation: lpShine 2.8s ease-in-out 1s infinite; }
.lp-btn:disabled { cursor: not-allowed; background: #dfe6f0; color: #6f7c96; box-shadow: none; }
.lp-btn:disabled .ic { display: none; }
.lp-btn:focus-visible { outline: 3px solid rgba(98, 188, 255, .6); outline-offset: 3px; }
.lp-btn.is-busy { pointer-events: none; }
.lp-btn.is-busy span::after { content: ""; display: inline-block; width: 16px; height: 16px; margin-left: 10px; vertical-align: -2px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: lpSpin .7s linear infinite; }
.lp-btn.is-busy .ic { display: none; }

.lp-consent { margin: 8px 2px 0; font-size: 14px; line-height: 1.6; color: var(--muted, #5f6b86); }
.lp-consent a { color: var(--navy-800, #0b1e4a); font-weight: 700; text-decoration: none; }
.lp-consent a:hover { color: var(--blue-500, #1673e6); text-decoration: underline; }

/* success */
.lp-done { text-align: center; padding: 12px 0 6px; animation: lpIn .4s cubic-bezier(.2, .8, .2, 1) both; }
.lp-done[hidden], .lp-body[hidden] { display: none; }
.lp-tick { display: inline-grid; place-items: center; width: 84px; height: 84px; margin-bottom: 18px; border-radius: 50%; background: linear-gradient(135deg, #e6f4ff, #fff0e3); }
.lp-tick svg { width: 58px; height: 58px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lp-tick circle { stroke: var(--blue-500, #1673e6); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: lpDraw .6s ease-out .1s forwards; }
.lp-tick path { stroke: var(--orange-500, #f26a12); stroke-width: 4; stroke-dasharray: 40; stroke-dashoffset: 40; animation: lpDraw .35s ease-out .6s forwards; }
.lp-done .lp-sub { margin-bottom: 22px; }
.lp-done-acts { display: grid; gap: 10px; justify-items: center; }
.lp-btn-wa { background: linear-gradient(135deg, #2bd46b, #1ea952); box-shadow: 0 16px 30px -14px rgba(30, 169, 82, .7); margin-top: 0; }
.lp-btn-wa .ic { width: 22px; height: 22px; display: inline-block; }
.lp-link { border: 0; background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--blue-500, #1673e6); cursor: pointer; padding: 8px 12px; border-radius: 10px; }
.lp-link:hover { background: var(--blue-50, #f2f7fe); }

body.lp-lock { overflow: hidden; }

@keyframes lpFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lpIn { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes lpOut { to { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes lpDrift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-24px, 18px) scale(1.12); } }
@keyframes lpPing { 75%, 100% { transform: scale(2.1); opacity: 0; } }
@keyframes lpShine { 0% { transform: translateX(-100%); } 45%, 100% { transform: translateX(100%); } }
@keyframes lpSpin { to { transform: rotate(360deg); } }
@keyframes lpDraw { to { stroke-dashoffset: 0; } }

@media (max-width: 560px) {
    .lp { padding: 0; align-items: end; }
    .lp-card { width: 100%; border-radius: 26px 26px 0 0; padding: 36px 22px 22px; max-height: 92vh; animation-name: lpUp; }
    .lp-x { top: 14px; right: 14px; }
    .lp-sub { font-size: 16px; margin-bottom: 22px; }
    .lp-f input, .lp-f .csel-btn, .lp-sel select, .lp-btn { height: 56px; font-size: 16px; }
    .lp-tel input { height: 54px; }
    .lp-ph { font-size: 16px; }
    .lp-consent { font-size: 13px; }
}
@media (min-width: 561px) and (max-height: 800px) {
    .lp-card { padding: 30px 40px 22px; }
    .lp-eyebrow { margin-bottom: 10px; }
    .lp-sub { margin-bottom: 20px; font-size: 16px; }
    .lp-form { gap: 12px; }
    .lp-f input, .lp-f .csel-btn, .lp-sel select, .lp-btn { height: 54px; }
    .lp-tel input { height: 52px; }
    .lp-btn { margin-top: 6px; }
    .lp-tel-in::before { top: 13px; bottom: 13px; }
}
@keyframes lpUp { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .lp-scrim, .lp-card, .lp-done, .lp-glow, .lp-eyebrow i::before, .lp-btn::after { animation: none !important; }
}
