/* 번호 남기기 장치 (리멤버 랜딩과 같은 방식) — site.json의 lead 설정이 있을 때만 붙는다 */
:root { --ld-navy:#0b1736; --ld-gold:#b08d57; --ld-gold2:#d8b98a; --ld-ink:#1d2433; --ld-line:#e6e0d4; }
body.has-lead .mbar, body.has-lead .bar, body.has-lead .quick { display:none !important; }
body.has-lead { padding-bottom:0; }
@media (max-width:900px){ body.has-lead { padding-bottom:76px; } }

/* 휴대폰 하단 고정 바 */
.ld-bar { position:fixed; left:0; right:0; bottom:0; z-index:900; display:none; grid-template-columns:1fr 1.4fr; background:#fff; box-shadow:0 -4px 18px rgba(0,0,0,.14); padding:8px 8px calc(8px + env(safe-area-inset-bottom)); gap:6px; }
.ld-bar button { border:0; border-radius:12px; font:inherit; font-weight:800; font-size:15px; padding:14px 4px; line-height:1.2; cursor:pointer; }
.ld-bar .b-tel { background:#fff; color:var(--ld-navy); border:1.5px solid var(--ld-navy); }
.ld-bar .b-lead { background:var(--ld-gold); color:#fff; }
.ld-bar .b-sms { background:var(--ld-navy); color:#fff; }
@media (max-width:900px){ .ld-bar { display:grid; } .totop { bottom:92px !important; } }

/* PC 오른쪽 고정 상자 */
.ld-side { position:fixed; right:22px; bottom:22px; z-index:900; width:300px; background:#fff; border-radius:16px; box-shadow:0 10px 34px rgba(0,0,0,.22); overflow:hidden; display:none; font-size:14px; color:var(--ld-ink); }
.ld-side .hd { background:var(--ld-navy); color:#fff; padding:14px 16px 12px; position:relative; }
.ld-side .hd b { display:block; font-size:16.5px; line-height:1.35; }
.ld-side .hd span { color:var(--ld-gold2); font-size:12.5px; }
.ld-side .min { position:absolute; right:8px; top:6px; background:none; border:0; color:#aab3c5; font-size:20px; cursor:pointer; }
.ld-side .bd { padding:14px 16px 16px; }
.ld-side .tel { display:block; text-align:center; font-weight:800; font-size:22px; color:var(--ld-navy); text-decoration:none; margin-top:10px; }
.ld-side .sms { display:block; width:100%; margin-top:8px; background:#fff; border:1.5px solid var(--ld-navy); color:var(--ld-navy); border-radius:10px; padding:10px; font:inherit; font-weight:700; cursor:pointer; }
.ld-tab { position:fixed; right:22px; bottom:22px; z-index:900; display:none; background:var(--ld-gold); color:#fff; border:0; border-radius:30px; padding:14px 20px; font:inherit; font-weight:800; box-shadow:0 8px 24px rgba(0,0,0,.2); cursor:pointer; }
@media (min-width:901px){ .ld-side.on { display:block; } .ld-tab.on { display:block; } .totop { right:340px !important; } }

/* 입력칸 공통 */
.ld-f input[type=tel] { width:100%; height:52px; border:1.5px solid #cfd5df; border-radius:10px; padding:0 14px; font:inherit; font-size:17px; color:var(--ld-ink); background:#fff; }
.ld-f input[type=tel]:focus { outline:none; border-color:var(--ld-gold); box-shadow:0 0 0 3px rgba(176,141,87,.18); }
.ld-f input.ok { border-color:#1a9b62; }
.ld-f input.need { border-color:#d9463b; animation:ldShake .35s; }
.ld-f .agree { display:flex; gap:8px; align-items:center; margin:10px 0 0; font-size:13.5px; color:#4a5160; cursor:pointer; padding:4px 2px; border-radius:8px; line-height:1.4; }
.ld-f .agree input { width:22px; height:22px; flex:none; accent-color:var(--ld-gold); }
.ld-f .agree.need { outline:2px solid #d9463b; outline-offset:2px; animation:ldShake .35s; }
.ld-f .agree.nudge { outline:2px solid #1a9b62; outline-offset:2px; }
.ld-f .go { width:100%; height:54px; margin-top:12px; border:0; border-radius:12px; background:var(--ld-gold); color:#fff; font:inherit; font-size:17px; font-weight:800; cursor:pointer; }
.ld-f .go:disabled { opacity:.6; }
.ld-f .note { font-size:12.5px; color:#6b7280; line-height:1.55; margin:8px 0 0; }
.ld-f .note a, .ld-f .agree a { color:#6b7280; }
.ld-f .msg { min-height:0; margin:8px 0 0; font-size:14px; color:#d9463b; }
.ld-f .msg:empty { display:none; }
.ld-f .rooms { display:flex; gap:6px; margin-top:10px; flex-wrap:wrap; }
.ld-f .rooms label { flex:1 1 30%; }
.ld-f .rooms input { position:absolute; opacity:0; pointer-events:none; }
.ld-f .rooms span { display:block; text-align:center; border:1.5px solid #cfd5df; border-radius:10px; padding:10px 4px; font-size:14px; font-weight:700; color:#4a5160; cursor:pointer; }
.ld-f .rooms input:checked + span { border-color:var(--ld-gold); background:#fbf6ee; color:var(--ld-navy); }
.ld-f .hp { position:absolute; left:-9999px; }
@keyframes ldShake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-5px)} 75%{transform:translateX(5px)} }

/* 창(휴대폰: 아래에서 올라옴 / PC: 가운데) */
.ld-layer { position:fixed; inset:0; z-index:10000; background:rgba(8,14,28,.55); display:flex; align-items:flex-end; justify-content:center; }
.ld-layer[hidden] { display:none; }
.ld-layer .in { position:relative; width:100%; max-width:440px; background:#fff; border-radius:20px 20px 0 0; padding:24px 20px calc(22px + env(safe-area-inset-bottom)); max-height:92vh; overflow:auto; color:var(--ld-ink); animation:ldUp .22s ease-out; }
@media (min-width:901px){ .ld-layer { align-items:center; } .ld-layer .in { border-radius:20px; padding:30px 28px 26px; } }
@keyframes ldUp { from { transform:translateY(30px); opacity:0 } to { transform:none; opacity:1 } }
.ld-layer .x { position:absolute; right:10px; top:8px; background:none; border:0; font-size:26px; color:#9aa1ad; cursor:pointer; width:44px; height:44px; }
.ld-layer h3 { margin:0 0 6px; font-size:21px; line-height:1.35; color:var(--ld-navy); word-break:keep-all; }
.ld-layer .sub { margin:0 0 14px; font-size:14.5px; color:#5b6472; line-height:1.55; word-break:keep-all; }
.ld-layer .now { display:block; text-align:center; background:var(--ld-navy); color:#fff; text-decoration:none; border-radius:12px; padding:15px; font-size:18px; font-weight:800; }
.ld-layer .now small { display:block; font-size:13px; font-weight:500; color:var(--ld-gold2); margin-top:2px; }
.ld-layer .or { text-align:center; color:#9aa1ad; font-size:13px; margin:16px 0 10px; }
.ld-layer ul.get { margin:0 0 12px; padding:12px 14px 12px 32px; background:#f6f3ec; border-radius:12px; font-size:14.5px; line-height:1.7; }
.ld-done { text-align:center; padding:10px 0 4px; }
.ld-done .ck { width:56px; height:56px; border-radius:50%; background:#1a9b62; color:#fff; font-size:30px; line-height:56px; margin:0 auto 10px; }
.ld-done h4 { margin:0 0 6px; font-size:20px; color:var(--ld-navy); }
.ld-done p { margin:0; color:#5b6472; font-size:14.5px; line-height:1.6; }
.ld-done small { display:block; margin-top:6px; color:#8a919c; }
.ld-done button { margin-top:14px; background:none; border:1px solid #cfd5df; border-radius:10px; padding:10px 16px; font:inherit; color:#4a5160; cursor:pointer; }
