/* Sarala agent panel. Tokens match site.css: plum #281B3F, orchid #C64FC3, teal #3ED5C2, button #B643B3. */

.agent-section {
  padding-bottom: clamp(56px, 8vw, 104px);
}

.agent-panel {
  border-radius: 32px;
  padding: clamp(32px, 4vw, 56px) clamp(20px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  color: #FFFFFF;
}

.agent-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3ED5C2;
}

.agent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ED5C2;
  display: inline-block;
  animation: agent-pulse 2.2s cubic-bezier(.23,1,.32,1) infinite;
}

@keyframes agent-pulse {
  0% { box-shadow: 0 0 0 0 rgba(62,213,194,.45); }
  100% { box-shadow: 0 0 0 14px rgba(62,213,194,0); }
}

.agent-h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.agent-sub {
  margin: 0;
  max-width: 560px;
  font-size: 16px;
  color: rgba(255,255,255,0.65);
}

.agent-card {
  width: 100%;
  max-width: 720px;
  margin-top: 16px;
  border-radius: 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
  text-align: left;
}

.agent-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.agent-avatar-img {
  flex: none;
  width: 24px;
  height: 24px;
  display: block;
}

.agent-card-head .agent-status {
  margin-left: auto;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.agent-log {
  padding: 22px 22px 6px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 360px;
  overflow-y: auto;
}

.agent-msg {
  max-width: 460px;
  padding: 12px 16px;
  border-radius: 4px 16px 16px 16px;
  background: rgba(255,255,255,0.09);
  color: #FFFFFF;
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-line;
}

.agent-msg-user {
  margin-left: auto;
  border-radius: 16px 4px 16px 16px;
  background: #B643B3;
}

.agent-msg-typing {
  opacity: 0.6;
}

.agent-input-row {
  position: relative;
  margin: 8px 22px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 0 0 2.5px rgba(62, 213, 194, 0.95), 0 0 28px 4px rgba(62, 213, 194, 0.4);
  transition: box-shadow 200ms ease;
}
.agent-input-row:focus-within {
  box-shadow: none;
}
.agent-nudge {
  position: absolute;
  left: clamp(10px, 2.5vw, 40px);
  top: -14%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.agent-nudge-text {
  display: inline-block;
  transform: rotate(-7deg);
  font-family: 'Segoe Script', 'Bradley Hand', 'Comic Sans MS', cursive;
  font-size: 30px;
  font-weight: 700;
  color: #3ED5C2;
  text-shadow: 0 3px 14px rgba(22, 14, 36, 0.55);
  white-space: nowrap;
}
.agent-nudge-arrow {
  width: 70px;
  height: 56px;
  margin: -2px 0 0 36px;
  color: #3ED5C2;
  filter: drop-shadow(0 3px 10px rgba(22, 14, 36, 0.5));
  animation: nudge-wiggle 1600ms ease-in-out infinite;
}
@keyframes nudge-wiggle {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) {
  .agent-nudge-arrow { animation: none; }
}
@media (max-width: 1180px) {
  .agent-nudge { display: none; }
}
.agent-panel:has(.agent-input-row input:focus) .agent-nudge {
  opacity: 0;
}
.agent-input-row:focus-within .agent-nudge {
  opacity: 0;
  transform: translateY(4px);
}

.agent-input-row input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 15px;
  padding: 10px 0;
}

.agent-input-row input::placeholder {
  color: rgba(255,255,255,0.45);
}

.agent-input-row input:focus {
  outline: none;
}

.agent-send {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #B643B3;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.agent-send:disabled {
  opacity: 0.5;
  cursor: default;
}

.agent-quickpick-row {
  margin: 0 22px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-quickpick {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.agent-quickpick:hover {
  text-decoration-color: currentColor;
}

.agent-chips {
  margin: 0 22px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.agent-chip {
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.03);
  color: #FFFFFF;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}

.agent-chip:hover {
  border-color: rgba(255,255,255,.55);
  background-color: rgba(255,255,255,.08);
}

.agent-lead-form {
  margin: 0 22px 22px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.agent-lead-form p {
  margin: 0 0 4px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}

.agent-lead-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 14px;
}

.agent-lead-form input::placeholder {
  color: rgba(255,255,255,0.4);
}

.agent-lead-form button {
  align-self: flex-start;
}

@media (prefers-reduced-motion: reduce) {
  .agent-dot { animation: none; }
}
