/**
 * 공개 홈(index) — AI 챗봇 · 문의 폼 위젯
 * marketing_unified.css 와 톤 맞춤, z-index만 높게
 */

/* --- 플로팅 챗봇 --- */
.hc-chat-launcher{
  position:fixed;
  right:max(16px, env(safe-area-inset-right));
  bottom:max(16px, env(safe-area-inset-bottom));
  z-index:9998;
  min-width:76px;
  width:auto;
  height:72px;
  border-radius:999px;
  border:none;
  cursor:pointer;
  background:linear-gradient(135deg,#2563eb 0%,#1d4ed8 100%);
  color:#fff;
  font-size:15px;
  font-weight:800;
  letter-spacing:-0.02em;
  box-shadow:0 10px 30px rgba(37,99,235,.35);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 18px;
  line-height:1.25;
  text-align:center;
}
.hc-chat-launcher:hover{filter:brightness(1.05);}
.hc-chat-launcher[aria-expanded="true"]{background:#334155;}

.hc-chat-panel{
  position:fixed;
  right:max(16px, env(safe-area-inset-right));
  bottom:calc(max(16px, env(safe-area-inset-bottom)) + 84px);
  z-index:9999;
  width:min(100vw - 32px, 380px);
  max-height:min(70vh, 520px);
  background:#fff;
  border-radius:16px;
  box-shadow:0 20px 50px rgba(15,23,42,.18);
  border:1px solid #e2e8f0;
  display:none;
  flex-direction:column;
  overflow:hidden;
}
.hc-chat-panel.is-open{display:flex;}
.hc-chat-head{
  padding:12px 14px;
  background:#0f172a;
  color:#f8fafc;
  font-size:14px;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.hc-chat-close{
  background:transparent;
  border:none;
  color:#cbd5e1;
  font-size:20px;
  line-height:1;
  cursor:pointer;
  padding:4px 8px;
}
.hc-chat-body{
  flex:1;
  overflow-y:auto;
  padding:12px 14px;
  background:#f8fafc;
  font-size:13px;
  line-height:1.55;
}
.hc-chat-msg{margin:8px 0;padding:10px 12px;border-radius:12px;max-width:92%;}
.hc-chat-msg--bot{background:#fff;border:1px solid #e2e8f0;color:#0f172a;}
.hc-chat-msg--user{margin-left:auto;background:#dbeafe;border:1px solid #bfdbfe;color:#1e3a8a;}
.hc-chat-foot{
  padding:10px 12px;
  border-top:1px solid #e2e8f0;
  background:#fff;
  display:flex;
  gap:8px;
}
.hc-chat-input{
  flex:1;
  border:1px solid #cbd5e1;
  border-radius:10px;
  padding:10px 12px;
  font-size:14px;
}
.hc-chat-send{
  border:none;
  border-radius:10px;
  background:#2563eb;
  color:#fff;
  font-weight:700;
  padding:0 14px;
  cursor:pointer;
}
.hc-chat-hint{font-size:11px;color:#64748b;margin-top:6px;padding:0 4px;}

/* --- 문의 섹션 --- */
.hc-inquiry-section{
  padding-top:8px;
  padding-bottom:8px;
}
.hc-inquiry-box{
  background:linear-gradient(180deg,#f8fafc 0%,#fff 100%);
  border:1px solid #e2e8f0;
  border-radius:18px;
  padding:22px 20px 24px;
  max-width:720px;
  margin:0 auto;
}
.hc-inquiry-box h2{margin:0 0 8px;font-size:22px;font-weight:900;color:#0f172a;letter-spacing:-.02em;}
.hc-inquiry-lead{margin:0 0 18px;font-size:14px;color:#475569;line-height:1.65;}
.hc-inquiry-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px;}
@media (max-width:640px){.hc-inquiry-grid{grid-template-columns:1fr;}}
.hc-inquiry-field label{display:block;font-size:12px;font-weight:800;color:#334155;margin-bottom:6px;}
.hc-inquiry-field input,.hc-inquiry-field textarea{
  width:100%;padding:11px 12px;border:1px solid #cbd5e1;border-radius:12px;font-size:14px;
}
.hc-inquiry-field textarea{min-height:120px;resize:vertical;}
.hc-inquiry-field--full{grid-column:1/-1;}
.hc-inquiry-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;opacity:0;}
.hc-inquiry-actions{margin-top:16px;display:flex;flex-wrap:wrap;gap:10px;align-items:center;}
.hc-inquiry-submit{
  padding:12px 22px;border-radius:12px;border:none;background:#0f172a;color:#fff;font-weight:800;font-size:14px;cursor:pointer;
}
.hc-inquiry-note{font-size:12px;color:#64748b;line-height:1.55;margin:0;}

/* --- 히어로 · 진입 2칸 --- */
.hc-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.hc-cta--hero{flex-wrap:wrap;justify-content:center;gap:12px;}
.hc-hint--hero a{color:#93c5fd;text-decoration:underline;}
.hc-hint--hero a:hover{color:#bfdbfe;}
.req{color:#dc2626;font-weight:700;}

.hc-section--entry{padding-top:0;padding-bottom:8px;}
.hc-entry-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  max-width:720px;
  margin:0 auto;
}
@media (max-width:900px){
  .hc-entry-grid{grid-template-columns:1fr;max-width:440px;}
}
.hc-entry-card{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:16px;
  padding:20px 18px 22px;
  display:flex;
  flex-direction:column;
  min-height:100%;
}
.hc-entry-title{margin:0 0 10px;font-size:17px;font-weight:900;color:#0f172a;letter-spacing:-.02em;}
.hc-entry-desc{margin:0 0 16px;font-size:13px;color:#475569;line-height:1.65;flex:1;}
.hc-btn-block{width:100%;text-align:center;justify-content:center;}
.hc-btn-outline{
  background:transparent !important;
  color:#1e3a8a !important;
  border:2px solid #2563eb !important;
}
.hc-btn-outline:hover{background:#eff6ff !important;}

.hc-consult-section{padding-top:4px;}
.hc-consult-box{
  max-width:720px;
  margin:0 auto;
  background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);
  border:1px solid #e2e8f0;
  border-radius:18px;
  padding:22px 20px 24px;
}
.hc-consent-row label.hc-check-label{font-weight:500;font-size:13px;line-height:1.55;color:#334155;}
.hc-consent-row input{margin-right:8px;vertical-align:middle;}
.hc-consult-msg{flex:1;min-width:0;font-size:14px;margin:0;}
.hc-consult-form textarea{min-height:140px;}

.hc-link-btn{
  background:none;border:none;color:#93c5fd;cursor:pointer;
  text-decoration:underline;font-size:inherit;padding:0;font-family:inherit;
}
.hc-link-btn:hover{color:#bfdbfe;}

/* 챗봇 빠른 질문 */
.hc-chat-quick{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
  margin-bottom:4px;
}
.hc-chat-chip{
  font-size:12px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid #cbd5e1;
  background:#fff;
  color:#334155;
  cursor:pointer;
  line-height:1.3;
  text-align:left;
}
.hc-chat-chip:hover{border-color:#2563eb;color:#1e3a8a;background:#eff6ff;}

button.hc-btn{font-family:inherit;cursor:pointer;}
button.hc-btn-secondary{border-style:solid;}
button.hc-btn-outline{border-style:solid;}
