/* WhatsApp lead form + cookie preferences (switch: $IC_LEAD_TOOLS in includes/ragip-footer.php) */
html.ict-lock{overflow:hidden}
.ict-scrim{position:fixed;inset:0;background:rgba(18,48,46,.45);z-index:100001}
.ict-ck,.ict-wa{position:fixed;z-index:100002;box-sizing:border-box;background:#fff;color:#12302e;font-family:inherit;font-size:15px;line-height:1.5}
.ict-ck *,.ict-wa *{box-sizing:border-box}
.ict-scrim[hidden],.ict-ck[hidden],.ict-wa[hidden],.ict-ck [hidden],.ict-wa [hidden]{display:none!important}
.ict-ck h2,.ict-wa h2,.ict-wa h3{margin:0;color:inherit;font-family:inherit;font-weight:700;line-height:1.3}
.ict-ck button:focus-visible,.ict-ck a:focus-visible,.ict-ck input:focus-visible+i,.ict-wa button:focus-visible,.ict-wa a:focus-visible,.ict-fl:focus-visible{outline:3px solid #2b7fc1;outline-offset:2px}
.ict-x{flex:none;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#f0f5f5;color:#12302e;cursor:pointer;display:flex;align-items:center;justify-content:center}

.ict-ck{left:0;right:0;bottom:0;max-height:92vh;overflow-y:auto;padding:12px 20px calc(24px + env(safe-area-inset-bottom,0px));border-radius:24px 24px 0 0;display:flex;flex-direction:column;gap:16px}
.ict-grip{width:40px;height:4px;flex:none;border-radius:4px;background:#cfdcdb;align-self:center}
.ict-ck-h{display:flex;align-items:center;justify-content:space-between;gap:12px}
.ict-ck h2{font-size:19px}
.ict-ck-p{margin:0;font-size:14px;line-height:1.7;color:#3f5654}
.ict-rows{display:flex;flex-direction:column;border:1px solid #e2ecec;border-radius:16px}
.ict-row{position:relative;margin:0;padding:14px 16px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #e2ecec;font-weight:400}
.ict-row:last-child{border-bottom:0}
label.ict-row{cursor:pointer}
.ict-rt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.ict-rt b{font-size:15px;font-weight:600}
.ict-rt span{font-size:13px;color:#4f6866}
.ict-row em{flex:none;font-style:normal;font-size:12px;font-weight:600;color:#1f6f6b;padding:4px 10px;border-radius:999px;background:#e3f1ef;white-space:nowrap}
.ict-row input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.ict-row i{flex:none;position:relative;width:48px;height:28px;border-radius:999px;background:#9fb3b1;transition:background .15s}
.ict-row i::after{content:"";position:absolute;top:3px;inset-inline-start:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:inset-inline-start .15s}
.ict-row input:checked+i{background:#1f7a76}
.ict-row input:checked+i::after{inset-inline-start:23px}
.ict-btns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ict-pri,.ict-sec{min-height:48px;padding:6px 8px;border-radius:12px;font-family:inherit;font-size:15px;font-weight:600;cursor:pointer}
.ict-pri{border:0;background:#1f7a76;color:#fff}
.ict-sec{border:1px solid #bfd3d1;background:#fff;color:#12302e}
.ict-pol{font-size:13px;text-align:center;color:#1f6f6b;text-decoration:underline}
.ict-fl{display:block;margin:6px auto 0;padding:6px 8px;border:0;background:none;color:inherit;font:inherit;font-size:13px;text-decoration:underline;cursor:pointer}

/* compact panel: phone bottom sheet, desktop bottom-left corner with no dimming */
.ict-ck{gap:10px;padding:12px 14px calc(14px + env(safe-area-inset-bottom,0px));border-radius:18px 18px 0 0;box-shadow:0 -6px 24px rgba(18,48,46,.16)}
.ict-grip{display:none}
.ict-ck h2{font-size:16px}
.ict-ck-p{font-size:12.5px;line-height:1.5}
.ict-x{width:36px;height:36px}
.ict-rows{border-radius:12px}
.ict-row{padding:7px 12px;gap:10px;min-height:44px}
.ict-rt{gap:0}
.ict-rt b{font-size:13.5px}
.ict-rt span{font-size:11.5px;line-height:1.35}
.ict-row em{font-size:11px;padding:3px 8px}
.ict-row i{width:40px;height:24px}
.ict-row i::after{width:18px;height:18px}
.ict-row input:checked+i::after{inset-inline-start:19px}
.ict-btns{gap:8px}
.ict-pri,.ict-sec{min-height:44px;font-size:14px;border-radius:10px}
.ict-pol{font-size:12px}
@media (max-width:599px){.ict-ck-p{display:none}}
@media (min-width:600px){.ict-ck{left:24px;right:auto;bottom:24px;width:350px;border-radius:18px;box-shadow:0 12px 36px rgba(18,48,46,.24);padding:14px 16px 16px}.ict-scrim:not(.ict-wa-s){display:none!important}html.ict-lock{overflow:auto}}

.ict-wa{right:30px;bottom:115px;width:min(380px,calc(100vw - 40px));max-height:calc(100vh - 135px);border-radius:20px;overflow:hidden;box-shadow:0 18px 48px rgba(18,48,46,.28);display:flex;flex-direction:column}
@media (max-width:520px){.ict-wa{left:0;right:0;bottom:0;width:auto;max-height:92vh;border-radius:22px 22px 0 0;padding-bottom:env(safe-area-inset-bottom,0px)}}
.ict-wa-h{flex:none;background:#128c4b;color:#fff;padding:14px 16px;display:flex;align-items:center;gap:12px}
.ict-av{flex:none;width:42px;height:42px;border-radius:50%;background:#fff;color:#1f7a76;font-weight:700;font-size:14px;display:flex;align-items:center;justify-content:center}
.ict-wa-tt{flex:1;min-width:0}
.ict-wa-h h2{font-size:16px;color:#fff}
.ict-wa-h small{display:block;font-size:12px;opacity:.9}
.ict-wa-h .ict-x{width:40px;height:40px;background:rgba(255,255,255,.15);color:#fff}
.ict-wa-b{background:#eae4da;padding:16px;display:flex;flex-direction:column;gap:12px;overflow-y:auto}
.ict-bub{background:#fff;border-radius:14px;padding:10px 12px;max-width:90%;font-size:14px;line-height:1.6}
.ict-wa form{margin:0;background:#fff;border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:12px}
.ict-f{display:flex;flex-direction:column;gap:6px}
.ict-f label{margin:0;font-size:13px;font-weight:600}
.ict-wa input:not(.ict-hp),.ict-wa select{display:block;width:100%;height:46px;margin:0;border:1px solid #bfd3d1;border-radius:10px;padding:0 12px;background:#fff;color:#12302e;font-family:inherit;font-size:16px}
.ict-wa input:focus,.ict-wa select:focus{border-color:#1f7a76;outline:none;box-shadow:0 0 0 3px #e3f1ef}
.ict-ph{display:flex;gap:8px}
.ict-wa .ict-ph select{flex:none;width:112px;padding:0 6px}
.ict-wa .ict-ph input{flex:1;min-width:0;text-align:left}
.ict-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.ict-e{margin:0;color:#b42318;font-size:13px}
.ict-fb{font-size:14px;font-weight:600;color:#128c4b;text-decoration:underline}
.ict-go{min-height:50px;width:100%;padding:6px 10px;border:0;border-radius:12px;background:#25d366;color:#0b2e1a;font-family:inherit;font-weight:700;font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none}
.ict-go:hover{background:#1fbf5b;color:#0b2e1a}
.ict-go:disabled{opacity:.6;cursor:default}
.ict-done{background:#fff;border-radius:14px;padding:20px;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.ict-tick{width:56px;height:56px;border-radius:50%;background:#e3f1ef;color:#1f7a76;display:flex;align-items:center;justify-content:center}
.ict-done h3{font-size:17px}
.ict-done p{margin:0;font-size:14px;color:#4a615f;line-height:1.6}
@media (prefers-reduced-motion:reduce){.ict-row i,.ict-row i::after{transition:none}}
