/* ════════════════════════════════════════════════════════════
   bekah.ai — live-agent.css
   live-agent.php 전용 스타일
   base.css / components.css 와 충돌 없음
   ════════════════════════════════════════════════════════════ */

/* ─── Hero Strip ─────────────────────────────────────────── */
.la-hero {
  padding: 3.5rem 3.5rem 2.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.la-hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.la-hero-left { flex: 1; }
.la-hero-eyebrow {
  font-family: var(--f-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  animation: fade-up 0.8s var(--ease-out-expo) 0.4s forwards;
}
.la-hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}
.la-hero-title {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  opacity: 0;
  animation: fade-up 1s var(--ease-out-expo) 0.55s forwards;
}
.la-hero-title em { font-style: italic; color: var(--gold); }
.la-hero-sub {
  font-family: var(--f-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 480px;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out-expo) 0.7s forwards;
}

/* 상태 배지 */
.la-hero-right {
  flex-shrink: 0;
  opacity: 0;
  animation: fade-up 0.8s var(--ease-out-expo) 0.8s forwards;
}
.la-status-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}
.la-status-dot-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.la-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6EE7B7;
  box-shadow: 0 0 8px rgba(110, 231, 183, 0.5);
  animation: status-pulse 2.5s ease-in-out infinite;
}
@keyframes status-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}
.la-status-text {
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6EE7B7;
}
.la-status-sub {
  font-family: var(--f-body);
  font-size: 0.65rem;
  font-weight: 300;
  color: var(--slate);
  letter-spacing: 0.06em;
}
/* 배경 히브리어 */
.la-hero-heb {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  font-family: var(--f-display);
  font-size: clamp(6rem, 16vw, 12rem);
  font-weight: 300;
  color: rgba(201, 146, 74, 0.04);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ─── Main Layout ────────────────────────────────────────── */
.la-body {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 3.5rem 5rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

/* ─── Chat Panel (좌) ────────────────────────────────────── */
.la-chat-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(8, 12, 20, 0.7);
  backdrop-filter: blur(12px);
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out-expo) 0.9s forwards;
}

/* 채팅 헤더 */
.la-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 27, 46, 0.5);
}
.la-chat-head-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.la-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(201, 146, 74, 0.3);
  background: rgba(201, 146, 74, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.la-avatar svg { width: 18px; height: 18px; color: var(--gold); opacity: 0.85; }
.la-chat-head-name {
  font-family: var(--f-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
}
.la-chat-head-status {
  font-family: var(--f-body);
  font-size: 0.62rem;
  font-weight: 300;
  color: #6EE7B7;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.la-chat-head-status::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6EE7B7;
  display: inline-block;
}
.la-chat-head-tag {
  font-family: var(--f-body);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 146, 74, 0.25);
  border-radius: 1px;
  padding: 0.2rem 0.55rem;
}

/* 이름 수집 훅 (소프트) */
.la-hook {
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--line);
  background: rgba(201, 146, 74, 0.03);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.la-hook.hidden { display: none; }
.la-hook-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(201, 146, 74, 0.08);
  border: 1px solid rgba(201, 146, 74, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.la-hook-icon svg { width: 14px; height: 14px; color: var(--gold); opacity: 0.8; }
.la-hook-text {
  flex: 1;
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.4;
}
.la-hook-text strong { color: var(--white); font-weight: 400; }
.la-hook-form {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.la-hook-input {
  background: rgba(245, 240, 232, 0.05);
  border: 1px solid rgba(245, 240, 232, 0.15);
  border-radius: 2px;
  padding: 0.42rem 0.8rem;
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--white);
  outline: none;
  width: 130px;
  transition: border-color 0.2s ease;
}
.la-hook-input:focus { border-color: rgba(201, 146, 74, 0.45); }
.la-hook-input::placeholder { color: var(--slate); }
.la-hook-btn {
  background: var(--gold);
  border: none;
  border-radius: 2px;
  padding: 0.42rem 0.9rem;
  font-family: var(--f-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-deep);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.la-hook-btn:hover { background: var(--gold-lt); }
.la-hook-skip {
  background: none;
  border: none;
  font-family: var(--f-body);
  font-size: 0.65rem;
  color: var(--slate);
  cursor: pointer;
  padding: 0.42rem 0.3rem;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.la-hook-skip:hover { color: var(--white-dim); }

/* 메시지 스트림 */
.la-messages {
  min-height: 340px;
  max-height: 420px;
  overflow-y: auto;
  padding: 1.8rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  scroll-behavior: smooth;
}
.la-messages::-webkit-scrollbar { width: 4px; }
.la-messages::-webkit-scrollbar-track { background: transparent; }
.la-messages::-webkit-scrollbar-thumb { background: rgba(245,240,232,0.1); border-radius: 2px; }

/* 메시지 버블 */
.la-msg {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  max-width: 88%;
}
.la-msg.agent { align-self: flex-start; }
.la-msg.user  { align-self: flex-end; flex-direction: row-reverse; }

.la-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(201, 146, 74, 0.25);
  background: rgba(201, 146, 74, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.la-msg-avatar svg { width: 13px; height: 13px; color: var(--gold); opacity: 0.8; }
.la-msg-bubble {
  padding: 0.75rem 1rem;
  border-radius: 2px;
  font-family: var(--f-body);
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
.la-msg.agent .la-msg-bubble {
  background: rgba(13, 27, 46, 0.8);
  border: 1px solid var(--line);
  color: var(--white-dim);
  border-radius: 0 4px 4px 4px;
}
.la-msg.user .la-msg-bubble {
  background: rgba(201, 146, 74, 0.12);
  border: 1px solid rgba(201, 146, 74, 0.2);
  color: var(--white);
  border-radius: 4px 0 4px 4px;
}
.la-msg-time {
  font-family: var(--f-body);
  font-size: 0.58rem;
  font-weight: 300;
  color: var(--slate);
  margin-top: 0.3rem;
  letter-spacing: 0.06em;
}
.la-msg.agent .la-msg-time { text-align: left; margin-left: 35px; }
.la-msg.user .la-msg-time  { text-align: right; margin-right: 35px; }

/* 타이핑 인디케이터 */
.la-typing {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  align-self: flex-start;
}
.la-typing-bubble {
  padding: 0.75rem 1rem;
  background: rgba(13, 27, 46, 0.8);
  border: 1px solid var(--line);
  border-radius: 0 4px 4px 4px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.la-typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.5;
  animation: typing-bounce 1.2s ease-in-out infinite;
}
.la-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.la-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%            { transform: translateY(-4px); opacity: 1; }
}

/* 퀵 리플라이 */
.la-quick-replies {
  padding: 0 1.4rem 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.la-qr-btn {
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--gold);
  background: none;
  border: 1px solid rgba(201, 146, 74, 0.25);
  border-radius: 2px;
  padding: 0.4rem 0.9rem;
  cursor: default;           /* 비활성 */
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

/* 입력창 (비활성 Coming Soon) */
.la-input-area {
  border-top: 1px solid var(--line);
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(8, 12, 20, 0.5);
  position: relative;
}
.la-input-field {
  flex: 1;
  background: rgba(245, 240, 232, 0.04);
  border: 1px solid rgba(245, 240, 232, 0.1);
  border-radius: 2px;
  padding: 0.7rem 1rem;
  font-family: var(--f-body);
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--slate);
  outline: none;
  cursor: not-allowed;
  pointer-events: none;
}
.la-send-btn {
  width: 36px;
  height: 36px;
  background: rgba(201, 146, 74, 0.15);
  border: 1px solid rgba(201, 146, 74, 0.2);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: not-allowed;
  opacity: 0.5;
  flex-shrink: 0;
}
.la-send-btn svg { width: 14px; height: 14px; color: var(--gold); }
/* 비활성 오버레이 배너 */
.la-coming-banner {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 9, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.la-coming-banner-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
  animation: status-pulse 2s ease-in-out infinite;
}
.la-coming-banner-text {
  font-family: var(--f-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
}

/* ─── Side Panel (우) ────────────────────────────────────── */
.la-side-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5px;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out-expo) 1.1s forwards;
}

/* 컨택 카드 */
.la-side-card {
  border: 1px solid var(--line);
  background: rgba(8, 12, 20, 0.6);
  backdrop-filter: blur(8px);
  overflow: hidden;
  border-radius: 3px;
}
.la-side-card-head {
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.la-side-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(201, 146, 74, 0.08);
  border: 1px solid rgba(201, 146, 74, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.la-side-card-icon svg { width: 13px; height: 13px; color: var(--gold); opacity: 0.8; }
.la-side-card-title {
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
}
.la-side-card-body { padding: 1.4rem; }

/* 직접 연락 폼 */
.la-contact-form { display: flex; flex-direction: column; gap: 0.8rem; }
.la-form-row { display: flex; flex-direction: column; gap: 0.35rem; }
.la-form-label {
  font-family: var(--f-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.la-form-input,
.la-form-select {
  background: rgba(245, 240, 232, 0.04);
  border: 1px solid rgba(245, 240, 232, 0.12);
  border-radius: 2px;
  padding: 0.62rem 0.9rem;
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
}
.la-form-input:focus,
.la-form-select:focus { border-color: rgba(201, 146, 74, 0.45); }
.la-form-input::placeholder { color: var(--slate); }
.la-form-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(245,240,232,0.38)' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 10px;
  padding-right: 2rem;
}
.la-form-select option { background: #0D1520; color: var(--white); }
.la-form-submit {
  margin-top: 0.4rem;
  background: var(--gold);
  border: none;
  border-radius: 2px;
  padding: 0.72rem;
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-deep);
  cursor: pointer;
  width: 100%;
  transition: background 0.2s ease;
}
.la-form-submit:hover { background: var(--gold-lt); }
.la-form-success {
  display: none;
  text-align: center;
  padding: 0.8rem 0;
}
.la-form-success.show { display: block; }
.la-form-success-text {
  font-family: var(--f-display);
  font-size: 0.9rem;
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.la-form-note {
  font-family: var(--f-body);
  font-size: 0.62rem;
  font-weight: 300;
  color: var(--slate);
  letter-spacing: 0.04em;
  text-align: center;
  margin-top: 0.4rem;
  line-height: 1.5;
}

/* What to Expect 카드 */
.la-expect-list { display: flex; flex-direction: column; gap: 0.8rem; }
.la-expect-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}
.la-expect-num {
  font-family: var(--f-display);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--gold);
  opacity: 0.55;
  letter-spacing: 0.1em;
  min-width: 1.4rem;
  padding-top: 0.1rem;
  flex-shrink: 0;
}
.la-expect-text {
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.55;
}
.la-expect-text strong { color: var(--white); font-weight: 400; }

/* ─── FAQ Section ────────────────────────────────────────── */
.la-faq {
  border-top: 1px solid var(--line);
  padding: 5rem 3.5rem;
}
.la-faq-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 5rem;
  align-items: start;
}
.la-faq-left { position: sticky; top: 5rem; }
.la-faq-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.01em;
}
.la-faq-title em { font-style: italic; color: var(--gold); }
.la-faq-sub {
  font-family: var(--f-body);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--slate);
  line-height: 1.7;
  margin-top: 1rem;
}
/* 아코디언 */
.la-faq-list { display: flex; flex-direction: column; }
.la-faq-item { border-bottom: 1px solid var(--line); }
.la-faq-item:first-child { border-top: 1px solid var(--line); }
.la-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--white-dim);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}
.la-faq-q:hover { color: var(--white); }
.la-faq-item.open .la-faq-q { color: var(--gold); }
.la-faq-icon {
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s ease, transform 0.3s var(--ease-out-expo), background 0.2s ease;
}
.la-faq-icon svg { width: 8px; height: 8px; transition: transform 0.3s var(--ease-out-expo); }
.la-faq-item.open .la-faq-icon {
  background: rgba(201, 146, 74, 0.1);
  border-color: rgba(201, 146, 74, 0.3);
}
.la-faq-item.open .la-faq-icon svg { transform: rotate(45deg); }
.la-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out-expo);
}
.la-faq-item.open .la-faq-a { max-height: 300px; }
.la-faq-a-inner {
  padding-bottom: 1.4rem;
  font-family: var(--f-body);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.8;
}
.la-faq-a-inner strong { color: var(--white); font-weight: 400; }
.la-faq-a-inner a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 146, 74, 0.3);
  transition: border-color 0.2s ease;
}
.la-faq-a-inner a:hover { border-color: var(--gold); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .la-hero          { padding: 3rem 2rem 2rem; }
  .la-body          { padding: 2rem 2rem 4rem; grid-template-columns: 1fr; }
  .la-side-panel    { order: -1; }   /* 모바일: 사이드폼 채팅 위로 */
  .la-faq           { padding: 4rem 2rem; }
  .la-faq-inner     { grid-template-columns: 1fr; gap: 2.5rem; }
  .la-faq-left      { position: static; }
}
@media (max-width: 768px) {
  .la-hero-inner    { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .la-hero-right    { align-self: flex-start; }
  .la-status-badge  { align-items: flex-start; }
  .la-hero-heb      { display: none; }
  .la-hook          { flex-wrap: wrap; }
  .la-hook-form     { width: 100%; }
  .la-hook-input    { flex: 1; width: auto; min-width: 0; }
  .la-messages      { min-height: 280px; max-height: 360px; }
  .la-faq           { padding: 3.5rem 1.5rem; }
}
