/* 머리글 「도입 문의하기」, 「소개서 다운로드」 를 누르면 뜨는 AI 문의 창 (contact-modal.js, 사용자 10-27)
   네모 창 없이 어두운 블러 덮개 위에 바로 띄움. 위 = 흰 글래스 AI 구슬(하늘, 연보라가 드문드문 흐름)
   한 번 적으면 AI가 요청서로 정리하고, 빈 칸만 그 자리에서 채워 바로 보냄 (질문을 여러 번 주고받지 않음)
   예전 양식 창 contact-modal.form-bak.css, 흰 대화형 contact-modal.chat-white-bak.css */
.cfm{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:0 24px;visibility:hidden;opacity:0;transition:opacity .4s cubic-bezier(.4,0,.2,1),visibility 0s .4s}
.cfm.on{visibility:visible;opacity:1;transition:opacity .4s cubic-bezier(.4,0,.2,1)}
.cfm-bg{position:absolute;inset:0;background:radial-gradient(ellipse 70% 80% at 50% 45%,rgba(4,6,12,.72),rgba(4,6,12,.55) 65%,rgba(4,6,12,.42) 100%);-webkit-backdrop-filter:blur(7px) brightness(.55) saturate(1.3);backdrop-filter:blur(7px) brightness(.55) saturate(1.3)}
/* 뒤 바탕 깨짐 (사용자 10-30): 흐림 7px 은 머리글 글자, 파란 단추가 얼룩으로 남았고, 화면 가장자리는 흐림이 바깥을 못 읽어 밝은 띠가 생겼음, 어두운 그라데이션은 계단 무늬가 보였음
   → 흐림 28px, 바탕 칸을 화면 밖 64px 까지 넓혀 가장자리 띠 없앰, 아주 옅은 노이즈를 얹어 계단 무늬를 풀어 줌 */
.cfm-bg{inset:-64px;-webkit-backdrop-filter:blur(28px) brightness(.55) saturate(1.2);backdrop-filter:blur(28px) brightness(.55) saturate(1.2)}
.cfm-bg::after{content:"";position:absolute;inset:0;opacity:.07;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
.cfm-box{position:relative;width:min(600px,100%);height:100%;display:flex;flex-direction:column;justify-content:center;color:#fff;transform:translateY(24px) scale(.98);transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.cfm.on .cfm-box{transform:none}
/* 처음 화면: 구슬, 인사, 입력 묶음을 화면 가운데보다 조금 위로 (눈에 보이는 가운데는 실제 가운데보다 위) */
.cfm:not(.talk) .cfm-box{padding-bottom:12vh}
@media (max-width:600px){ .cfm:not(.talk) .cfm-box{padding-bottom:8vh} }
.cfm-x{position:fixed;right:24px;top:24px;z-index:3;width:44px;height:44px;border:0;border-radius:50%;background:transparent;cursor:pointer}
.cfm-x::before,.cfm-x::after{content:"";position:absolute;left:50%;top:50%;width:16px;height:1.5px;background:rgba(255,255,255,.55);transform:translate(-50%,-50%) rotate(45deg);transition:background .2s}
.cfm-x::after{transform:translate(-50%,-50%) rotate(-45deg)}
.cfm-x:hover::before,.cfm-x:hover::after{background:#fff}

/* 구슬: 쪼개지고 붙는 액체 (사용자 10-27) */
.cfm-head{flex:none;display:flex;justify-content:center;padding:0;margin-bottom:36px;transition:padding .6s cubic-bezier(.2,.8,.2,1)}
.cfm.talk .cfm-box{justify-content:flex-start}
.cfm.talk .cfm-head{padding:max(56px,8vh) 0 0;margin-bottom:8px}
.orb{--s:1;cursor:pointer;position:relative;width:104px;height:104px;flex:none;transition:width .6s cubic-bezier(.2,.8,.2,1),height .6s cubic-bezier(.2,.8,.2,1)}
.cfm.talk .orb{width:56px;height:56px}
.orb::before{content:"";position:absolute;inset:-10%;border-radius:50%;pointer-events:none;background:radial-gradient(circle,rgba(110,190,255,.12),rgba(170,140,255,0) 70%);filter:blur(10px);animation:orbHalo calc(5s / var(--s)) ease-in-out infinite alternate}
/* 액체 구슬 (SVG goo, 움직임은 contact-modal.js tick). 그림은 구슬 칸보다 넓게 깔아 떨어져 나간 방울이 보이게 */
.orb .goo{position:absolute;left:50%;top:50%;width:230%;height:230%;translate:-50% -50%;overflow:visible;pointer-events:none}
.orb .gl{display:none}
/* AI 글자: 버블 안에 갇혀 안에서 빛나는 느낌 (흐린 빛 번짐 + 숨 쉬는 광채) */
.orb b{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;pointer-events:none;color:#fff;font-weight:800;font-size:28px;line-height:1;letter-spacing:-.01em;text-shadow:0 0 1px rgba(255,255,255,.9),0 1px 2px rgba(40,60,140,.35),0 0 10px rgba(150,205,255,.6),0 0 24px rgba(160,140,255,.35);animation:aiGlow 3.2s ease-in-out infinite alternate;transition:font-size .6s cubic-bezier(.2,.8,.2,1)}

@keyframes aiGlow{0%{opacity:.9}100%{opacity:1}}
/* AI 글자 (사용자 10-30): 회색 글자 + 빛 대신 수은 질감. 글자를 물방울처럼 뭉친 둥근 덩어리(블러 후 경계 세우기) + 크롬 그라데이션 + 위 왼쪽 빛 반사, 천천히 일렁임 */
.orb b{text-shadow:none;animation:none}
.orb b .aiw{width:100%;height:auto;overflow:visible;filter:drop-shadow(0 2px 3px rgba(10,12,20,.45));transition:width .6s cubic-bezier(.2,.8,.2,1)}
.cfm.talk .orb b .aiw{width:100%}
.orb.speak b{animation-duration:.9s}
.cfm.talk .orb b{font-size:16px}

/* 생각: 숨 쉬듯 / 말함: 후광이 밝아짐 (속도는 바꾸지 않음: 바꾸면 움직임이 튐) */
.orb.think{animation:orbBreath 1.2s ease-in-out infinite}
.orb::before{transition:filter .6s}
.orb.speak::before,.orb.think::before{filter:blur(14px) brightness(1.6)}

@keyframes orbHalo{0%{opacity:.7;scale:.94}100%{opacity:1;scale:1.08}}
@keyframes orbBreath{50%{transform:scale(1.07)}}

/* 대화: AI는 말풍선 없이 글, 내 글은 파랑 말풍선 하나 */
.cfm-log{flex:0 1 auto;min-height:0;overflow-y:auto;padding:28px 8px 28px;-webkit-mask-image:linear-gradient(transparent,#000 28px,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(transparent,#000 28px,#000 calc(100% - 28px),transparent);display:flex;flex-direction:column;gap:32px;overscroll-behavior:contain}
.cfm.talk .cfm-log{flex:1}
.cfm-log>*{animation:msgIn .5s cubic-bezier(.2,.8,.2,1) both}
@keyframes msgIn{from{opacity:0;transform:translateY(10px)}}
.cfm .hi{text-align:center;font-size:22px;line-height:1.45;font-weight:600}
.cfm .hi span{display:block;min-height:1.45em}
.cfm .typing::after{content:"";display:inline-block;width:2px;height:1em;margin-left:3px;vertical-align:-.12em;background:currentColor;opacity:.7;animation:caret .9s steps(1) infinite}
@keyframes caret{50%{opacity:0}}
.cfm .hi small{min-height:1.6em;display:block;margin-top:8px;font-size:16px;font-weight:400;color:rgba(255,255,255,.78)}
.cfm .m{font-size:16px;line-height:1.6;word-break:keep-all;overflow-wrap:anywhere}
.cfm .m.me{align-self:flex-end;max-width:86%;background:var(--blue,#0385FF);color:#fff;padding:12px 16px;border-radius:20px 6px 20px 20px}
.cfm .m.bot{color:rgba(255,255,255,.85)}

/* 요청서: 뽑은 값이 채워진 밑줄 칸 (4장 양식 결). 빈 필수 칸은 밑줄을 조금 밝게 */
.cfm .req{display:grid;grid-template-columns:1fr 1fr;gap:24px 20px}
/* 간격 세 단계 (사용자 10-27: 묶음끼리 같은 간격이라 위계가 안 보임)
   6 = 같은 묶음 안의 줄(이어지는 AI 문장)  12 = 비슷한 항목끼리(체크 두 줄)  32 = 묶음과 묶음 사이(말풍선, 답, 칸 묶음, 체크 묶음)
   36 = AI 답과 요청서 사이, 40 = 체크 묶음과 보내기 버튼 사이 (사용자 10-27: 조금 더 띄움) */
.cfm-log>.m.bot+.m.bot{margin-top:-26px}
.cfm-log>.m.bot+.req{margin-top:4px}
.cfm .req .msgf+.chk{margin-top:8px}
.cfm .req .chk+.chk{margin-top:-12px}
.cfm .req .full{grid-column:1/-1}
.cfm .req label{display:flex;flex-direction:column;row-gap:6px}
.cfm .req label>span{font-size:14px;line-height:1.5;color:rgba(255,255,255,.68)}
.cfm .req label.must>span::after{content:"*";margin-left:4px;color:#fff}
.cfm .req input,.cfm .req textarea,.cfm .req select{font-family:inherit;font-size:16px;line-height:1.5;color:#fff;background:transparent;border:0;border-bottom:1px solid rgba(255,255,255,.24);border-radius:0;padding:6px 0;outline:0;resize:none}
.cfm .req input::placeholder,.cfm .req textarea::placeholder{color:rgba(255,255,255,.42)}
.cfm .req input:focus,.cfm .req textarea:focus,.cfm .req select:focus{border-bottom-color:#fff}
.cfm .req label.empty input{border-bottom-color:rgba(255,255,255,.6)}
.cfm .req .bad>span{color:#FF8A4C}.cfm .req .bad input{border-bottom-color:#FF8A4C}
.cfm .req select{appearance:none;-webkit-appearance:none;padding-right:24px;cursor:pointer;background:transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='rgba(255,255,255,.6)' stroke-width='1.5'/></svg>") no-repeat right 4px center}
.cfm .req select option{color:#16181C}
.cfm .req .msgf{display:flex;flex-direction:column;row-gap:6px}
.cfm .req .fh{display:flex;align-items:center;justify-content:space-between;gap:12px}
.cfm .req .fh>span{font-size:14px;line-height:1.5;color:rgba(255,255,255,.68)}
/* AI로 다듬기: 작은 스위치 */
.cfm .req .tg{flex-direction:row;align-items:center;column-gap:8px;cursor:pointer;font-size:13px;color:rgba(255,255,255,.62)}
.cfm .req .tg input{position:absolute;opacity:0;width:1px;height:1px}
.cfm .req .tg i{position:relative;width:30px;height:18px;border-radius:999px;background:rgba(255,255,255,.18);transition:background .25s}
.cfm .req .tg i::after{content:"";position:absolute;left:2px;top:2px;width:14px;height:14px;border-radius:50%;background:#fff;transition:transform .3s cubic-bezier(.2,.8,.2,1)}
.cfm .req .tg input:checked+i{background:var(--blue,#0385FF)}
.cfm .req .tg input:checked+i::after{transform:translateX(12px)}
.cfm .req .tg input:focus-visible+i{outline:2px solid #fff;outline-offset:2px}
.cfm .req .tg>span{color:rgba(255,255,255,.62)}
.cfm .req .msgf textarea{overflow:hidden;display:block;min-height:0}
.cfm .req .chk{flex-direction:row;align-items:center;column-gap:8px;cursor:pointer}
.cfm .req .chk input{appearance:none;-webkit-appearance:none;flex:none;position:relative;width:18px;height:18px;margin:0;border-radius:4px;background:transparent;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.5);cursor:pointer;transition:background .2s,box-shadow .2s}
.cfm .req .chk input::after{content:"";position:absolute;left:6px;top:2.5px;width:4px;height:9px;border-right:2px solid #0A0B0C;border-bottom:2px solid #0A0B0C;transform:rotate(45deg) scale(0);transition:transform .25s cubic-bezier(.2,.8,.2,1)}
.cfm .req .chk input:hover{box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.85)}
.cfm .req .chk input:checked{background:#fff;box-shadow:none}
.cfm .req .chk input:checked::after{transform:rotate(45deg) scale(1)}
.cfm .req .chk input:focus-visible{outline:2px solid #fff;outline-offset:2px}
.cfm .req .chk.bad input{box-shadow:inset 0 0 0 1.5px #FF8A4C}
.cfm .req .chk input:disabled{opacity:.5}
.cfm .req .chk>span{color:rgba(255,255,255,.72)}
.cfm .req .chk.bad>span{color:#FF8A4C}
.cfm .act{display:flex;align-items:center;gap:16px;margin-top:16px}
.cfm .btn{display:inline-flex;align-items:center;gap:10px;height:54px;padding:0 22px 0 28px;border:0;border-radius:999px;cursor:pointer;background:#fff;color:#0A0B0C;font-family:inherit;font-size:16px;font-weight:600;line-height:1;transition:background .2s,transform .25s cubic-bezier(.2,.8,.2,1)}
.cfm .btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s cubic-bezier(.2,.8,.2,1)}
.cfm .btn:hover{background:#E6E7E9}.cfm .btn:hover svg{transform:translateX(3px)}
.cfm .btn:active{transform:scale(.97)}
.cfm .btn:focus-visible{outline:2px solid #fff;outline-offset:3px}
.cfm .done{font-size:16px;color:rgba(255,255,255,.85)}
/* 소개서 신청 뒤: 완료 문구 아래 다운로드 버튼 */
.cfm .act.got{flex-direction:column;align-items:flex-start}
.cfm .act.got .btn{animation:msgIn .5s cubic-bezier(.2,.8,.2,1) both}
.cfm .act.got .btn:hover svg{transform:translateY(3px)}

/* 아래 입력: 처음 한 번만 */
.cfm-foot{flex:none;padding:0}
.cfm-foot[hidden]{display:none}
.cfm-foot{transition:opacity .5s cubic-bezier(.2,.8,.2,1),transform .6s cubic-bezier(.2,.8,.2,1)}
.cfm-foot.wait{opacity:0;transform:translateY(10px);pointer-events:none}
.cfm-foot:not(.wait) .cc{animation:msgIn .5s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i,0) * 70ms + 120ms)}
/* 요청서 칸이 하나씩 */
.cfm .req.req-in>*{animation:msgIn .5s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i,0) * 70ms)}
.cfm-log>.req.req-in{animation:none}  /* 11-19: 「rv」는 홈(index.html)의 스크롤 등장 클래스(.rv{opacity:0})와 겹쳐 홈에서만 요청서가 투명했음 → req-in */
/* 코치: 입력칸 위 한 줄. 글에서 잡힌 칸은 체크가 차오르고 뽑힌 값이 붙음 */
.cfm-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 22px;padding:0 4px 16px}
.cfm-chips:empty{display:none}
.cfm .cc{display:inline-flex;align-items:center;gap:7px;min-width:0;font-size:14px;line-height:1.4;color:rgba(255,255,255,.6);transition:color .35s}
.cfm .cc i{flex:none;position:relative;width:16px;height:16px;border-radius:50%;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.45);transition:background .35s,box-shadow .35s}
.cfm .cc i::after{content:"";position:absolute;left:5px;top:3px;width:4px;height:7px;border-right:1.6px solid #0A0B0C;border-bottom:1.6px solid #0A0B0C;transform:rotate(45deg) scale(0);transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.cfm .cc em{font-style:normal}
.cfm .cc b{font-weight:500;color:#fff;max-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;opacity:0;transition:max-width .5s cubic-bezier(.2,.8,.2,1),opacity .35s}
.cfm .cc.ok{color:rgba(255,255,255,.8)}
.cfm .cc.ok i{background:#fff;box-shadow:none}
.cfm .cc.ok i::after{transform:rotate(45deg) scale(1)}
.cfm .cc.ok b{max-width:180px;opacity:1}
/* 폰: 코치 넷을 한 줄에 (줄바꿈 금지). 자리가 좁아 뽑힌 값은 숨기고 체크만 */
@media (max-width:600px){ .cfm-chips:has(.cc){flex-wrap:nowrap;gap:14px} .cfm .cc{font-size:13px;gap:5px;white-space:nowrap} .cfm .cc i{width:14px;height:14px} .cfm .cc i::after{left:4.5px;top:2.5px;width:3.5px;height:6.5px} .cfm .cc b{display:none} }
/* 입력: 투명한 알약(테두리만). 글이 늘면 위로 자람 */
.cfm-in{display:flex;align-items:flex-end;gap:12px;background:rgba(12,15,24,.25);border-radius:26px;padding:10px 10px 10px 22px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.3);transition:box-shadow .25s,background .25s}
/* 누르면 또렷하게: 바탕이 밝아지고 테두리와 은은한 빛 */
.cfm-in:focus-within{background:transparent;box-shadow:inset 0 0 0 1px rgba(255,255,255,.85),0 0 24px rgba(130,190,255,.18)}
.cfm-in:focus-within textarea::placeholder{color:rgba(255,255,255,.55)}
.cfm-in textarea{flex:1;min-width:0;border:0;background:transparent;font-family:inherit;font-size:16px;font-weight:400;line-height:1.5;color:#fff;padding:8px 0;outline:0;resize:none;max-height:144px}
.cfm-in textarea::placeholder{color:rgba(255,255,255,.5)}
/* 보내기: 흰 원 + 위 화살표. 글이 없으면 흐린 유리, 생기면 흰색으로 차오름 */
.cfm-in .go{flex:none;display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:#fff;color:#0A0B0C;cursor:pointer;transition:background .25s,color .25s,transform .25s cubic-bezier(.2,.8,.2,1)}
.cfm-in .go svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s cubic-bezier(.2,.8,.2,1)}
.cfm-in .go:not(:disabled):hover svg{transform:translateY(-2px)}
.cfm-in .go:not(:disabled):active{transform:scale(.92)}
.cfm-in .go:disabled{background:transparent;box-shadow:inset 0 0 0 1px rgba(255,255,255,.3);color:rgba(255,255,255,.5);cursor:default}
.cfm-in .go:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media (max-width:600px){
  .cfm{padding:0 20px}
  .cfm-x{right:12px;top:12px}
  .orb{width:88px;height:88px}
  .cfm.talk .cfm-head{padding:56px 0 0}
  .cfm-log{padding:20px 0}
  .cfm .req{grid-template-columns:1fr}
  .cfm-foot{padding:0 0 env(safe-area-inset-bottom)}
}
@media (prefers-reduced-motion:reduce){ .orb b,.orb::before,.orb.think,.cfm-log>*,.cfm .req.req-in>*,.cfm .cc{animation:none} }
/* 대화 중 입력칸: 화면 맨 아래에 붙지 않게 아래 여백 (사용자 10-27) */
.cfm.talk .cfm-foot{padding:16px 0 max(48px,8vh)}
@media (max-width:600px){ .cfm.talk .cfm-foot{padding:12px 0 calc(max(24px,4vh) + env(safe-area-inset-bottom))} }
/* 대화 칸 스크롤 막대: 보이지 않게 (스크롤은 그대로). 막대가 보이는 환경이어도 글과 겹치지 않게 양쪽에 자리 확보 */
.cfm-log{scrollbar-width:none;-ms-overflow-style:none;scrollbar-gutter:stable both-edges}
.cfm-log::-webkit-scrollbar{display:none;width:0;height:0}
/* 안내 두 문장은 문장 단위로 줄을 나눔 (한 문장이 중간에서 잘리지 않게) */
.cfm .hi small{white-space:pre-line;word-break:keep-all}
/* 폰은 폭이 기기마다 달라 강제 줄바꿈 없이 이어서 (두 문장이 자연스럽게 흐름) */
@media (max-width:600px){ .cfm .hi small{white-space:normal} }
.cfm-chips.pre{display:none}


/* AI 글자 = 액체 방울 몸통 (사용자 10-30): 원래 구슬 색과 액체(나뉘고 붙음, 마우스 따라감) 그대로, 큰 구슬 대신 둥근 AI 글자. 누르고 끄는 동안 파랑 */
.orb b{display:none}
.orb{user-select:none;-webkit-user-select:none;-webkit-user-drag:none;touch-action:none}
.orb .goo circle,.orb .goo text{transition:fill .35s}
.orb.press .goo circle:not(:first-child),.orb.press .goo text{fill:#2F80FF}

/* 처음 화면 AI 글자 아래 끝과 인사말 사이 48 (사용자 10-30). 대화 중 간격은 그대로 */
.cfm:not(.talk) .cfm-head{margin-bottom:28px}

/* 3D 액체 금속 AI (orb3d.js): 그려지면 SVG 액체는 숨김. 그림 칸은 구슬 칸보다 넓게(떨어져 나간 방울이 보이게) */
.orb .o3d{position:absolute;left:50%;top:50%;translate:-50% -50%;pointer-events:none}
.orb.o3d-on .goo{visibility:hidden}
/* 문의 구슬 (회사 정보 + 문의창, 사용자 11-02 「처음 뜰 때 단편적으로 보임, 다 보인 다음에 뜨게」):
   3D 가 첫 프레임을 다 그릴 때(o3d-on)까지 구슬 자리는 완전히 비움 (파란 빛, 2D 그림 모두). 그 뒤 한 번에 서서히 나타남.
   2D 그림은 3D 를 아예 못 쓸 때(o3d-off: WebGL 없음, 받기 실패)와 움직임 줄이기 설정에서만 */
.orb:not(.o3d-on):not(.o3d-off)::before,.orb:not(.o3d-on):not(.o3d-off) .goo{opacity:0!important;animation:none!important}
.orb.o3d-off .goo,.orb.o3d-off::before{animation:orbIn .4s both}
.orb.o3d-on::before{animation:orbIn .6s both,orbHalo calc(5s / var(--s)) .6s ease-in-out infinite alternate}
.orb .o3d{opacity:0}
.orb.o3d-on .o3d{animation:orbIn .6s both}
@keyframes orbIn{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){ .orb .goo,.orb::before{opacity:1!important;animation:none!important} }

/* 흩어진 방울은 인사말, 대화 글 위로 (사용자 10-30). 그림 칸은 누르기를 막지 않음 */
.cfm-head{position:relative;z-index:6}
.orb .o3d{z-index:6}

/* 「문의하기」 버튼 C안 (사용자 10-30, cta-options.html): 지금 파란 버튼 + 은빛 금속 테두리가 천천히 돎. 마우스를 올리면 안쪽 위에서 밝은 반사가 번짐.
   머리글 버튼과 모바일 메뉴 아래 버튼 모두 */
@property --ctr{syntax:"<angle>";initial-value:0deg;inherits:false}
.top .acts .b1,.mnp .mf .b1{position:relative;isolation:isolate;background:transparent!important;overflow:hidden}
/* 성능 (11-03): 테두리 회전을 사용자 속성(--ctr) 애니메이션 대신 큰 정사각형 판을 transform 으로 돌려 GPU 가 처리. 예전엔 모든 페이지에서 매 프레임 스타일 계산과 버튼 다시 그리기가 돌았음 (흐림 걸린 머리글 안이라 합성도 매번).
   모양은 같음(버튼 가운데를 축으로 도는 conic). 판이 버튼 밖으로 나가므로 버튼이 잘라 냄. 테두리 굵기는 안쪽 파랑을 .25px 더 들여 그대로 */
.top .acts .b1::before,.mnp .mf .b1::before{content:"";position:absolute;inset:-.25px;border-radius:inherit;z-index:-2;background:conic-gradient(#fff,#9AA3B0,#3E454F,#C9CED6,#fff,#7C8592,#fff);animation:ctaRim 5s linear infinite;inset:auto;left:50%;top:50%;width:max(200%,160px);aspect-ratio:1;border-radius:0;transform:translate(-50%,-50%)}
.top .acts .b1::after,.mnp .mf .b1::after{content:"";position:absolute;inset:.5px;border-radius:inherit;z-index:-1;background:#0385FF;transition:background .3s;inset:.75px}
.top .acts .b1:hover::after,.mnp .mf .b1:hover::after{background:radial-gradient(120% 140% at 30% 0%,#4FA6FF 0,#0385FF 55%,#0270D8 100%)}
@keyframes ctaRim{to{transform:translate(-50%,-50%) rotate(360deg)}}
@media (prefers-reduced-motion:reduce){ .top .acts .b1::before,.mnp .mf .b1::before{animation:none} }
.cfm .hi span{white-space:pre-line}

/* 문의 보내기, 소개서 신청 버튼 (사용자 10-30): 화살표 없이, 누를 때 줄어들거나 색이 바뀌는 움직임 없이 단색 흰색 */
.cfm .btn{padding:0 24px;transition:none}  /* 11-18: 회사 정보 양식 버튼(.btn pri, 24)과 같은 좌우 여백 */
.cfm .btn:hover{background:#fff}.cfm .btn:active{transform:none}

/* 회사 정보 Contact 챗봇 (문의창 첫 화면과 같은 글, 입력칸) */
.ichat{width:min(600px,100%);margin-top:var(--gap-group);color:#fff;text-align:center}
.ichat .ih{font-size:22px;line-height:1.45;font-weight:600}
.ichat .is{margin-top:8px;font-size:15px;line-height:1.6;color:rgba(255,255,255,.62)}
.ichat .cfm-in{margin-top:var(--gap-block);text-align:left}
@media (max-width:600px){ .ichat .ih{font-size:19px} }
.ichat .iorb{margin:0 auto var(--gap-block);width:104px;height:104px}
@media (max-width:600px){ .ichat .iorb{width:88px;height:88px} }
/* 서버 연결 (11-04, 이슈 #3 1단계): 보내기 실패 안내는 버튼 아래 (색은 잘못된 칸 표시와 같게), 숨은 칸 hp, 동의 문구 안 개인정보처리방침 링크 */
.cfm .err,.jform .err{margin:0;font-size:var(--font-small-size,14px);color:#FF8A4C}
/* 좁은 폭: 버튼이 눌려 두 줄이 되지 않게 안내를 버튼 아래 줄로. PC 회사 정보 양식은 버튼 칸이 아래에 붙어 있어 옆에 둠 */
.cfm .req .act:has(.err:not([hidden])){flex-wrap:wrap}.cfm .req .act .err{flex-basis:100%}
@media (max-width:900px){ .jform .act:has(.err:not([hidden])){flex-wrap:wrap} .jform .act .err{flex-basis:100%} }
.cfm .req .hp,.jform .hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}
.cfm .req .chk a,.jform .chk a{color:inherit;text-decoration:underline;text-underline-offset:3px}
/* 동의 칸 「전문보기」 (11-09, 이슈 #3 2단계 미리보기): 글자 끝 작은 버튼, 누르면 바로 아래 옅은 상자로 동의 내용. 문의창(.req), 회사 정보(.jform) 공통 */
.cmore{margin-left:6px;padding:0;border:0;background:none;color:rgba(255,255,255,.5);font:inherit;font-size:.92em;cursor:pointer;white-space:nowrap}
/* 11-18 「아래로 펼쳐지는 건 꺽쇠로」: 밑줄 대신 글자 뒤 꺽쇠, 닫힘 ⌄ 열림 ⌃. 동의 문장 안 개인정보 링크(밑줄)는 뺌, 전문은 이 펼침으로 봄 */
.cmore::after{content:'';display:inline-block;width:5px;height:5px;margin-left:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-3px) rotate(45deg);transition:transform .2s}
.cmore[aria-expanded="true"]::after{transform:translateY(0) rotate(-135deg)}
.cmore:hover{color:rgba(255,255,255,.85)}
/* 11-18 「전문보기 가로 기준 오른쪽 정렬」: 동의 글을 칸 끝까지 늘리고 전문보기를 그 오른쪽 끝에. 글이 한 줄을 넘으면 다음 줄 오른쪽 */
.chk:has(.cmore)>span{flex:1;min-width:0}.chk .cmore{float:right;margin-left:12px}
.cmore:focus-visible{outline:2px solid #fff;outline-offset:2px;border-radius:2px}
/* 동의 전문 (11-10 디자인 정리, 11-18 헤어라인도 뺌): 상자, 선 없이 바탕 위 글자만, 항목 이름은 같은 폭 열로 맞춰 값이 한 줄로 정렬, 안쪽 스크롤 없이 펼침 */
.cdoc{margin-top:-4px;padding-top:4px;color:rgba(255,255,255,.62);font-size:13px;line-height:1.6}
.cdoc strong{display:block;margin-bottom:6px;color:rgba(255,255,255,.85);font-weight:600}
.cdoc p{margin:6px 0 0}
.cdoc dl{display:grid;grid-template-columns:8.5em minmax(0,1fr);column-gap:12px;margin:4px 0 0}
.cdoc dt{color:rgba(255,255,255,.85)}
.cdoc dd{margin:0}
.cdoc .cdoc-pp{display:inline-flex;align-items:center;margin-top:12px;color:rgba(255,255,255,.85);text-decoration:none}.cdoc .cdoc-pp:hover{color:#fff}
.cdoc .cdoc-pp::after{content:'';width:5px;height:5px;margin-left:6px;border-right:1.5px solid currentColor;border-top:1.5px solid currentColor;transform:rotate(45deg)}  /* 다른 페이지로 가는 것 = 오른쪽 꺽쇠 (펼침 ⌄ 과 구분) */
@media (max-width:600px){ .cdoc dl{display:block;margin-top:8px} .cdoc dt{margin-bottom:2px} }
/* AI 문의 창 첫 화면 간격 위계 (11-17 「이것도 간격 위계」): AI 글자→제목 묶음 32(PC 40) | 제목→안내 12 | 안내→입력칸 40(PC 48).
   첫 화면엔 스크롤할 대화가 없어 대화 칸 위아래 흐림 여백(28)을 걷고 간격을 직접 줌. 대화가 시작되면(.talk) 예전 값 그대로 */
.cfm:not(.talk) .cfm-head{margin-bottom:40px}
.cfm:not(.talk) .cfm-log{padding-top:0;padding-bottom:0;-webkit-mask-image:none;mask-image:none}
.cfm:not(.talk) .hi small{margin-top:12px}
.cfm:not(.talk) .cfm-foot{margin-top:48px}
@media (max-width:600px){ .cfm:not(.talk) .cfm-head{margin-bottom:32px} .cfm:not(.talk) .cfm-foot{margin-top:40px} }
/* 회사 정보 하단 AI 문의 칸 간격 위계 (11-17 「다 똑같은데」): 예전엔 AI→제목, 제목→안내, 안내→입력칸이 모두 비슷(16~24).
   문의 창 첫 화면과 같은 규칙: AI→제목 40(폰 32) | 제목→안내 12 | 안내→입력칸 48(폰 40) */
.ichat .iorb{margin-bottom:40px}
.ichat .is{margin-top:12px}
.ichat .cfm-in{margin-top:48px}
@media (max-width:600px){ .ichat .iorb{margin-bottom:32px} .ichat .cfm-in{margin-top:40px} }
/* 입력칸 글자 위아래 여백 (11-17 「인풋 위 간격이 더 넓다」): 칸 안 여백은 위아래 18 로 같았지만 한글은 줄 높이 안에서 아래로 앉아
   눈으로는 위 23, 아래 16 으로 보였음 → 글 칸 여백을 위 2, 아래 14 로 나눠 글자를 6 올림 (눈으로 위아래 약 17) */
.cfm-in.ml textarea{padding:2px 0 14px}  /* 사파리 실측 위 20, 아래 14 → 3 더 올림. 두 줄 이상일 때만 (.ml, contact-modal.js) */
/* 한 줄 (11-17 「한 줄이면 위로 치우쳐 보임」): 글 칸 위아래 같게 두고 보내기 단추와 세로 가운데 맞춤 */
.cfm-in:not(.ml){align-items:center}
