
/* ===== 푸터 (정리습관형: 흐린 사진 배경 + 흰 글자 + SNS) ===== */
.ftx{position:relative; overflow:hidden; color:#fff; padding:64px 0 calc(130px + env(safe-area-inset-bottom,0px)); font-size:15px; line-height:1.75}
.ftx::before{content:""; position:absolute; inset:-30px; background:#3B3330 url(data:image/webp;base64,UklGRkYGAABXRUJQVlA4IDoGAADQSACdASoIAlsBPp1OoE2oKCMiIPZpGQATiWlu4QMEU+ZfrgWft2xNq/n7+lu3p3IHly/9MWOwSS/X+1Qx7mfIBwnKnNtz3bAPQvdLg7pzY4t5uSe6dBefQvebC7Z+dVMTQrcfiQD/JMfm5GziJWqmKws62n22cBZTBLtSt1PWkkrWfO0k3afrOS8QKnmqlwnj/Qm0BZ1y5crPi1nBRn4vnyP0B0rIlRznv57+uhM8TTqNHxwsEj74TuKGuVwJ/Olxc87n7SsU1QaLhma9Elr123VOqCF/ziPuY6TAllhQ3ROf2ekdCl+bWmMrn08mxLI69qpetMH1tsz6jQ1H0/zGOICfKvqxpvCkitx+cffk0rwKPgOjAsc+chT1PshLrfXlLi5502gnF4zDak+mV52Ja0SsfjF7ybj7oDBEJIOcBp4X1JfFCKVBqZ6vOpS1S4Y5uvjjzF0BK/lgcgmibcQaO8rXXZBBFr/jISDKgNDUv5+m9BZOQVzHTpOWXu69qpb1+SX0ngq5MqbVyLYFuSumoH3PheF3HojhDY4dg8MScwDcpS2TB3Sjeoo3POPH0RBmpB49TUkabZ5OZgkOiFDBf+WKaAMz4kMbGyZwua5xkaKRJQ3Ghbzu5sGOMEEzTX91qKCh5qSWzj42Zicceytix1o/5y/wVhkEzYCOUv5rt/ZL9dZiYYWuYQPcjVsdyM4x/3W03GPHz3snUtwaCGxwbo/GNck43f7GDZBdYKJRW5MkQK6eCNc6Ymax218Rm83abjeFcrX3EZRSb7eUPgAA/sprUjKY5HZTQerdQQSeUZl73Pu+gILa8nYEd8gjfJbDp7O3upOBkHK3LTII9qDj2pmMhNT6nyAxafCU/CoaUHY212n3YDC23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cvKKEdL6dD6+SahgiAhA8T35ReUShjHIbHvSn0X13g/bNbT2xV/5ypiFPP/FKh405/btDjSyrePSeh1tgo7et6yMFkzvm9Np/pjEQKdgFDYykMvf37NQ2DaE5eFUiYRZUz92u2SowAtZcxAe8ZbHvFXo41LHExn2kq33MVEIEAAAA) center/cover no-repeat; filter:blur(6px); transform:scale(1.04)}
.ftx::after{content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(30,24,22,.38),rgba(30,24,22,.62))}
.ftx .wrap{position:relative; z-index:1}
.ftx .ft-co{margin:0}.ft-co img{display:block;width:96px;height:auto;filter:brightness(0) invert(1)}
.ftx .ft-links{display:flex; flex-wrap:wrap; gap:8px 26px; margin-top:28px}
.ftx .ft-links a{color:#fff; font-weight:800; font-size:17px; text-decoration:none}
.ftx .ft-links a:hover{text-decoration:underline}
.ftx address{font-style:normal; margin-top:24px; color:rgba(255,255,255,.92); font-weight:600}
.ftx address p{margin:0 0 4px}
.ftx .hours-group{display:inline-block}
.ftx .copy{margin-top:6px; color:rgba(255,255,255,.62); font-weight:600; font-size:14px}
.ftx .sns{list-style:none; padding:0; margin:30px 0 0; display:flex; gap:14px}
.ftx .sns a{display:grid; place-items:center; width:46px; height:46px; border-radius:14px; background:#fff; color:#2B2B33; transition:transform .15s}
.ftx .sns a:hover{transform:translateY(-2px)}
.ftx .sns svg{width:24px; height:24px}
@media (max-width:620px){.ftx{padding-top:48px; font-size:14px} .ftx .ft-links a{font-size:16px}}


/* ===== 따라오는 상담 바 (항상 고정) ===== */
.dx-bar{position:fixed; left:50%; bottom:calc(20px + env(safe-area-inset-bottom,0px)); transform:translateX(-50%); z-index:45; width:max-content; max-width:calc(100% - 200px); display:flex; align-items:center; justify-content:center; gap:24px; background:rgba(255,255,255,.95); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); border:1px solid #DCDDF5; border-radius:999px; padding:8px 10px 8px 22px; box-shadow:0 18px 44px -18px rgba(74,72,178,.45); transition:opacity .2s}
.dx-bar p{margin:0; text-align:center; word-break:keep-all; font-size:16.5px; font-weight:700; color:var(--ink); letter-spacing:-.01em}
.dx-bar button{flex:none; display:inline-flex; align-items:center; gap:8px; border:0; cursor:pointer; background:var(--btn-grad); color:#fff; font:800 17px/1 "Daieum Web Text","Pretendard",sans-serif; padding:16px 28px; border-radius:999px; white-space:nowrap; box-shadow:0 10px 22px -10px rgba(74,72,178,.7)}
.dx-bar button:hover{filter:brightness(1.06)}
.dx-bar button svg{width:19px; height:19px}
body.dx-open .dx-bar, body.dq-open .dx-bar{opacity:0; pointer-events:none}
/* ===== 상담 신청 창 ===== */
.dq{position:fixed; inset:0; z-index:70; display:grid; place-items:center; background:rgba(17,17,30,.45); padding:16px}
.dq[hidden]{display:none}
.dq-box{width:min(480px,100%); max-height:calc(100% - 24px); overflow-y:auto; background:#fff; border-radius:24px; padding:28px 26px 24px; box-shadow:0 30px 80px -24px rgba(22,23,43,.55); position:relative}
.dq-x{position:absolute; right:16px; top:16px; width:38px; height:38px; border-radius:50%; border:0; background:var(--gray); font-size:22px; cursor:pointer; color:var(--ink)}
.dq-box h2{font-size:24px; font-weight:800; letter-spacing:-.02em}
.dq-box > p{font-size:15.5px; color:var(--sub); margin-top:6px}
.dq-f{display:grid; gap:12px; margin-top:20px}
.dq-f label{display:block; font-size:14.5px; font-weight:700; margin-bottom:6px}
.dq-f input[type=text],.dq-f input[type=tel],.dq-f select{width:100%; border:1px solid var(--line); border-radius:12px; padding:14px; font:500 16px "Daieum Web Text","Pretendard",sans-serif; background:#fff; color:var(--ink)}
.dq-f input:focus,.dq-f select:focus{outline:2px solid var(--brand); border-color:transparent}
.dq-2{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.dq-f .dq-ag{display:flex; gap:10px; align-items:flex-start; font-size:14px; font-weight:500; color:var(--sub); margin:0}
.dq-ag input{width:20px; height:20px; margin-top:1px; flex:none}
.dq-ag a{color:var(--brand)}
.dq-err{color:var(--warn); font-size:14px; min-height:1em}
.dq-f button[type=submit]{border:0; border-radius:999px; padding:17px; background:var(--btn-grad); color:#fff; font:800 17px "Daieum Web Text","Pretendard",sans-serif; cursor:pointer}
.dq-f button[type=submit]:disabled{opacity:.6}
.dq-done{text-align:center; padding:26px 0 8px}
.dq-done b{display:block; font-size:22px; margin:10px 0 6px}
.dq-done img{width:120px; height:120px; margin:0 auto}
.dq .hp{position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden}
/* ===== 오른쪽 아래: AI 상담 + 맨 위로 ===== */
.dx-side{position:fixed; right:24px; bottom:calc(24px + env(safe-area-inset-bottom,0px)); z-index:46; display:flex; flex-direction:column; align-items:center; gap:12px}
.dx-top{width:52px; height:52px; border-radius:50%; border:1px solid var(--line); background:#fff; color:var(--ink); cursor:pointer; display:grid; place-items:center; box-shadow:0 10px 24px -14px rgba(28,27,74,.45); transition:opacity .2s}
.dx-top svg{width:22px; height:22px}
.dx-top.hide{opacity:0; pointer-events:none}
/* ===== 채팅 창 ===== */
.dx-chat{position:fixed; right:24px; bottom:calc(24px + env(safe-area-inset-bottom,0px)); z-index:60; width:min(400px,calc(100% - 32px)); height:min(620px,calc(100% - 48px)); background:#fff; border-radius:24px; box-shadow:0 30px 80px -24px rgba(22,23,43,.55); display:flex; flex-direction:column; overflow:hidden}
.dx-chat[hidden]{display:none}
.dx-hd{display:flex; align-items:center; gap:12px; padding:16px 16px 14px 18px; color:#fff; background:linear-gradient(120deg,#4A48B2 0%,#5B63E3 55%,#8A7CF2 100%)}
.dx-hd img{width:40px; height:40px; border-radius:12px; background:#fff}
.dx-hd b{display:block; font-size:17px} .dx-hd small{font-size:12.5px; opacity:.85}
.dx-hd button{margin-left:auto; width:36px; height:36px; border-radius:50%; border:0; background:rgba(255,255,255,.18); color:#fff; font-size:20px; cursor:pointer}
.dx-log{flex:1; overflow-y:auto; padding:18px 16px 8px; background:#F6F6FB; display:flex; flex-direction:column; gap:10px}
.dx-m{max-width:86%; padding:12px 14px; border-radius:18px; font-size:15.5px; line-height:1.6; white-space:pre-line; word-break:keep-all; overflow-wrap:anywhere}
.dx-m.bot{align-self:flex-start; background:#fff; border:1px solid var(--line); border-top-left-radius:6px; color:var(--ink)}
.dx-m.me{align-self:flex-end; background:var(--brand); color:#fff; border-top-right-radius:6px}
.dx-acts{display:flex; flex-wrap:wrap; gap:6px; align-self:flex-start}
.dx-acts a,.dx-acts button{font:700 14px/1 "Daieum Web Text","Pretendard",sans-serif; padding:10px 14px; border-radius:999px; border:1px solid #D9D6FB; background:#fff; color:var(--brand); text-decoration:none; cursor:pointer}
.dx-acts a.pri{background:var(--btn-grad); border-color:transparent; color:#fff}
.dx-typing{align-self:flex-start; background:#fff; border:1px solid var(--line); border-radius:18px; padding:12px 16px; display:flex; gap:5px}
.dx-typing i{width:7px; height:7px; border-radius:50%; background:var(--brand); animation:dxDot 1s infinite ease-in-out}
.dx-typing i:nth-child(2){animation-delay:.15s} .dx-typing i:nth-child(3){animation-delay:.3s}
@keyframes dxDot{0%,80%,100%{opacity:.3; transform:translateY(0)}40%{opacity:1; transform:translateY(-3px)}}

.dx-in{display:flex; gap:8px; padding:12px; border-top:1px solid var(--line); background:#fff}
.dx-in input{flex:1; min-width:0; border:1px solid var(--line); border-radius:14px; padding:13px 14px; font:500 16px "Daieum Web Text","Pretendard",sans-serif}
.dx-in input:focus{outline:2px solid var(--brand); border-color:transparent}
.dx-in button{flex:none; border:0; border-radius:14px; padding:0 18px; background:var(--btn-grad); color:#fff; font:800 15px "Daieum Web Text","Pretendard",sans-serif; cursor:pointer}
.dx-in button:disabled{opacity:.5}
@media (max-width:760px){
  .dx-bar{left:0; right:0; bottom:0; transform:none; width:auto; max-width:none; border-radius:20px 20px 0 0; padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px)) 16px; border-width:1px 0 0; gap:12px}
  .dx-bar p{font-size:14px; line-height:1.35} .dx-bar button{padding:15px 18px; font-size:15.5px}
  .dq{place-items:end center; padding:0} .dq-box{border-radius:22px 22px 0 0; max-height:92%; padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
  .dx-side{right:14px; bottom:calc(92px + env(safe-area-inset-bottom,0px))}
  .dx-top{width:46px; height:46px}
  .dx-chat{right:0; bottom:0; width:100%; height:100%; border-radius:0}
}
body.no-bar .dx-side{bottom:calc(24px + env(safe-area-inset-bottom,0px))}
@media (max-width:760px){ body.no-bar .dx-side{bottom:calc(96px + env(safe-area-inset-bottom,0px))} }
