/* Sasha — JNJ Recruiting chat widget */

/* ----- Floating launcher ----- */
/* Mark removed the floating launcher 2026-05-27 — redundant with hero/nav CTAs. */
/* To restore: delete the display:none line below. */
.sasha-launcher { display: none !important; }

.sasha-launcher {
  position: fixed;
  right: 1rem;
  bottom: 5rem; /* clear of sticky mobile call bar */
  z-index: 60;
  background: #1d4ed8;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 0.875rem 1.25rem;
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 30px rgba(29, 78, 216, 0.35);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.sasha-launcher:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(29, 78, 216, 0.5); }
.sasha-launcher .pulse-dot {
  width: 8px; height: 8px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
@media (min-width: 768px) {
  .sasha-launcher { bottom: 1.5rem; right: 1.5rem; }
}
.sasha-launcher.hidden { display: none; }

/* ----- Backdrop ----- */
.sasha-backdrop {
  position: fixed; inset: 0; background: rgba(2, 6, 23, 0.7); z-index: 70;
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.sasha-backdrop.open { opacity: 1; pointer-events: auto; }

/* ----- Panel ----- */
.sasha-panel {
  position: fixed;
  z-index: 80;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
  /* Mobile: full-screen */
  inset: 0;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.sasha-panel.open { transform: translateX(0); }
@media (min-width: 768px) {
  .sasha-panel {
    inset: auto 0 0 auto;
    width: 480px;
    height: 100vh;
    max-height: 100vh;
  }
}
@media (min-width: 1024px) {
  .sasha-panel { width: 540px; }
}

/* ----- Header ----- */
.sasha-header {
  padding: 1rem 1.25rem;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.sasha-avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.05em;
  position: relative;
  flex-shrink: 0;
}
.sasha-avatar::after {
  content: ''; position: absolute; bottom: 0; right: 0;
  width: 12px; height: 12px;
  background: #22c55e; border: 2px solid #f8fafc; border-radius: 50%;
}
.sasha-name {
  font-weight: 700; color: #0f172a; line-height: 1.2;
}
.sasha-name span {
  display: block;
  font-size: 0.75rem; font-weight: 500; color: #64748b; margin-top: 2px;
}
.sasha-close {
  margin-left: auto;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: background 0.15s;
}
.sasha-close:hover { background: #f1f5f9; color: #0f172a; }

/* ----- Progress strip ----- */
.sasha-progress {
  height: 3px;
  background: #e2e8f0;
  position: relative;
}
.sasha-progress-fill {
  position: absolute; inset: 0 auto 0 0;
  background: linear-gradient(90deg, #1d4ed8, #2563eb);
  width: 0;
  transition: width 0.4s ease-out;
}

/* ----- Messages ----- */
.sasha-thread {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scroll-behavior: smooth;
}
.sasha-msg {
  max-width: 88%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-size: 0.95rem;
  line-height: 1.45;
  animation: msgIn 0.25s ease-out;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sasha-msg.agent {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  align-self: flex-start;
  border-bottom-left-radius: 0.25rem;
}
.sasha-msg.user {
  background: #1d4ed8;
  color: #ffffff;
  font-weight: 600;
  align-self: flex-end;
  border-bottom-right-radius: 0.25rem;
}
.sasha-msg.system {
  background: transparent;
  color: #64748b;
  align-self: center;
  font-size: 0.75rem;
  font-style: italic;
  max-width: 100%;
  text-align: center;
  padding: 0.25rem 0.5rem;
}

/* Typing indicator */
.sasha-typing {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  border-bottom-left-radius: 0.25rem;
  padding: 0.85rem 1rem;
  display: flex;
  gap: 0.25rem;
}
.sasha-typing span {
  width: 7px; height: 7px;
  background: #94a3b8;
  border-radius: 50%;
  animation: typing 1.2s infinite;
}
.sasha-typing span:nth-child(2) { animation-delay: 0.15s; }
.sasha-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-3px); }
}

/* Quick reply chips */
.sasha-chips {
  align-self: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: -0.25rem;
}
.sasha-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e3a8a;
  padding: 0.5rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.sasha-chip:hover {
  border-color: #1d4ed8;
  color: #1d4ed8;
  background: #eff6ff;
}

/* ----- Input ----- */
.sasha-input-wrap {
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 0.75rem;
}
.sasha-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}
.sasha-input {
  flex: 1;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  resize: none;
  font-family: inherit;
  max-height: 120px;
  min-height: 44px;
}
.sasha-input:focus {
  outline: none;
  border-color: #1d4ed8;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}
.sasha-send {
  background: #1d4ed8;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 44px; height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.05s;
}
.sasha-send:hover { background: #2563eb; }
.sasha-send:active { transform: scale(0.95); }
.sasha-send:disabled { background: #cbd5e1; color: #94a3b8; cursor: not-allowed; }
.sasha-helper {
  text-align: center;
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 0.5rem;
}
.sasha-helper a { color: #64748b; text-decoration: underline; }

/* ----- Review screen (inside thread) ----- */
.sasha-review {
  align-self: stretch;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem;
  margin: 0.25rem 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
.sasha-review-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: #2563eb;
  letter-spacing: 0.03em;
}
.sasha-review-sub {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 0.25rem;
}
.sasha-review-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
}
.sasha-review-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  transition: border-color 0.15s;
}
.sasha-review-row:hover { border-color: #cbd5e1; }
.sasha-review-row.editing {
  border-color: #1d4ed8;
  background: #eff6ff;
}
.sasha-review-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  font-weight: 700;
  flex-shrink: 0;
  width: 110px;
}
.sasha-review-value {
  flex: 1;
  color: #0f172a;
  font-weight: 500;
  word-break: break-word;
}
.sasha-review-value.empty { color: #64748b; font-style: italic; }
.sasha-review-edit {
  background: transparent;
  border: none;
  color: #1d4ed8;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
}
.sasha-review-edit:hover { background: rgba(29, 78, 216, 0.1); }
.sasha-review-input {
  flex: 1;
  background: #ffffff;
  border: 1px solid #1d4ed8;
  border-radius: 0.375rem;
  padding: 0.4rem 0.6rem;
  color: #0f172a;
  font-size: 0.95rem;
  font-family: inherit;
}
.sasha-review-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sasha-btn-primary {
  background: #1d4ed8;
  color: #ffffff;
  border: none;
  font-weight: 800;
  padding: 0.85rem 1.25rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s;
}
.sasha-btn-primary:hover { background: #2563eb; }
.sasha-btn-secondary {
  background: transparent;
  color: #475569;
  border: 1px solid #475569;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
}
.sasha-btn-secondary:hover { border-color: #1d4ed8; color: #2563eb; }

/* ----- Submitted state ----- */
.sasha-submitted {
  align-self: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.1) 0%, rgba(15, 23, 42, 0) 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  margin: 0.5rem 0;
  width: 100%;
}
.sasha-submitted-icon {
  width: 56px; height: 56px;
  background: #22c55e;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.875rem;
  animation: pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop {
  0%   { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.sasha-submitted-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: #0f172a;
  letter-spacing: 0.02em;
}
.sasha-submitted-sub {
  color: #475569;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}
.sasha-submitted-ref {
  margin-top: 1rem;
  padding: 0.5rem 0.875rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.08em;
  color: #2563eb;
}
.sasha-submitted-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  background: #1d4ed8;
  color: #ffffff;
  padding: 0.7rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 800;
  font-size: 1rem;
}
