/* CSS Document */

/* ── Chat Widget ── */
#pdp-chat-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

#pdp-chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(10,46,92,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background .2s ease;
  position: relative;
}
#pdp-chat-toggle:hover {
  background: var(--accent-dark);
  transform: scale(1.08);
}
#pdp-chat-toggle svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}
#pdp-chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--brand-100);
  color: var(--brand-900);
  font-size: 11px;
  font-weight: 900;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.15); }
}

#pdp-chat-window {
  width: 340px;
  max-height: 520px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(10,46,92,.20);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(10,46,92,.10);
  animation: chat-in .2s ease;
}
#pdp-chat-window.open {
  display: flex;
}
@keyframes chat-in {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

#pdp-chat-header {
  background: linear-gradient(135deg, #061D3A, #0A2E5C);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
#pdp-chat-header .chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
#pdp-chat-header .chat-info .chat-name {
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
}
#pdp-chat-header .chat-info .chat-status {
  color: rgba(255,255,255,.65);
  font-size: .78rem;
}
#pdp-chat-close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 0 0 0 8px;
}
#pdp-chat-close:hover { color: #fff; }

#pdp-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #F8FAFC;
}

.chat-msg {
  max-width: 85%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: .9rem;
  line-height: 1.5;
}
.chat-msg.bot {
  background: #fff;
  border: 1px solid rgba(10,46,92,.12);
  color: var(--ink-900);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-msg.user {
  background: var(--brand-700);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-questions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 4px;
}
.chat-q-btn {
  background: #fff;
  border: 1.5px solid rgba(10,46,92,.18);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--brand-700);
  cursor: pointer;
  text-align: left;
  transition: border-color .15s ease, background .15s ease;
}
.chat-q-btn:hover {
  border-color: var(--brand-700);
  background: var(--brand-100);
}

.chat-divider {
  text-align: center;
  font-size: .78rem;
  color: var(--ink-600);
  margin: 4px 0;
}

#pdp-chat-footer {
  padding: 10px 12px;
  border-top: 1px solid rgba(10,46,92,.08);
  background: #fff;
  display: flex;
  gap: 8px;
}
#pdp-chat-input {
  flex: 1;
  border: 1.5px solid rgba(10,46,92,.15);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: .88rem;
  font-family: inherit;
  outline: none;
  color: var(--ink-900);
  resize: none;
}
#pdp-chat-input:focus {
  border-color: var(--brand-700);
}
#pdp-chat-send {
  background: var(--brand-700);
  border: none;
  border-radius: 10px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s ease;
}
#pdp-chat-send:hover { background: var(--brand-900); }
#pdp-chat-send svg { width: 18px; height: 18px; fill: #fff; }

/* Aetna badge in hero */
.aetna-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 12px;
  padding: 8px 14px;
  margin-top: 1.25rem;
}
.aetna-badge img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}
.aetna-badge span {
  color: rgba(255,255,255,.85);
  font-size: .85rem;
  font-weight: 600;
}

@media (max-width: 480px) {
  #pdp-chat-window { width: calc(100vw - 32px); }
  #pdp-chat-bubble { bottom: 16px; right: 16px; }
}