/* ProBot Voice Demo Widget — probotma.boston */

/* HERO PRIMARY BUTTON STYLE OVERRIDE FOR VOICE TRIGGER */
.voice-cta-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.voice-cta-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.5);
}
.voice-cta-hero .pulse-dot {
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  animation: vd-pulse 1.6s infinite;
}
@keyframes vd-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* STICKY FLOATING BUBBLE */
.voice-cta-sticky {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.4);
  z-index: 9998;
  animation: vd-float-in 0.6s ease-out 1.5s backwards;
}
.voice-cta-sticky:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.55);
}
@keyframes vd-float-in {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* MODAL */
.voice-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 26, 0.78);
  backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: vd-fade-in 0.25s ease-out;
}
.voice-modal-backdrop.open { display: flex; }
@keyframes vd-fade-in { from { opacity: 0; } to { opacity: 1; } }

.voice-modal {
  background: #1a1a2e;
  color: #fff;
  border-radius: 18px;
  max-width: 560px;
  width: 100%;
  padding: 32px 32px 28px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(124, 58, 237, 0.3);
}
.voice-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.voice-modal-close:hover { background: rgba(255, 255, 255, 0.15); }

.voice-modal h3 { margin: 0 0 8px; font-size: 1.4rem; font-weight: 800; }
.voice-modal .subtitle { color: #a0a0c0; font-size: 0.95rem; margin: 0 0 22px; }

.voice-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px) {
  .voice-options { grid-template-columns: 1fr; }
}
.voice-option {
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  color: #fff;
  font-family: inherit;
  text-decoration: none;
  display: block;
}
.voice-option:hover {
  background: rgba(124, 58, 237, 0.18);
  border-color: rgba(168, 85, 247, 0.6);
  transform: translateY(-2px);
}
.voice-option .icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.voice-option .label { font-weight: 700; display: block; margin-bottom: 4px; font-size: 1rem; }
.voice-option .meta { font-size: 0.82rem; color: #a0a0c0; line-height: 1.4; }
.voice-option .digits {
  font-size: 1.05rem;
  font-weight: 800;
  color: #c084fc;
  margin: 4px 0;
  font-family: 'Inter', monospace;
}

.voice-modal .footnote {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #a0a0c0;
  text-align: center;
}
.voice-modal .footnote a {
  color: #c084fc;
  text-decoration: none;
  font-weight: 600;
}

/* IN-CALL UI */
.voice-call-ui {
  display: none;
  text-align: center;
  padding: 12px 0 4px;
}
.voice-call-ui.active { display: block; }

.voice-orb {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #c084fc, #7c3aed 60%, #4c1d95);
  margin: 8px auto 16px;
  position: relative;
  box-shadow: 0 0 60px rgba(168, 85, 247, 0.6);
  animation: vd-orb-idle 3s ease-in-out infinite;
}
.voice-orb.speaking { animation: vd-orb-speak 0.6s ease-in-out infinite alternate; }
@keyframes vd-orb-idle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes vd-orb-speak {
  from { transform: scale(1); box-shadow: 0 0 60px rgba(168, 85, 247, 0.6); }
  to   { transform: scale(1.15); box-shadow: 0 0 100px rgba(168, 85, 247, 0.95); }
}

.voice-call-status { font-size: 0.85rem; color: #a0a0c0; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px; }
.voice-call-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.voice-call-timer { font-size: 1rem; color: #c084fc; font-family: monospace; margin-bottom: 18px; }

.voice-call-controls { display: flex; gap: 12px; justify-content: center; }
.voice-call-controls button {
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
  border: none;
}
.voice-btn-end { background: #ef4444; color: #fff; }
.voice-btn-end:hover { background: #dc2626; }
.voice-btn-mute { background: rgba(255, 255, 255, 0.1); color: #fff; }
.voice-btn-mute:hover { background: rgba(255, 255, 255, 0.18); }
.voice-btn-mute.active { background: #f59e0b; }

/* POST-CALL FORM */
.voice-postcall {
  display: none;
  padding-top: 8px;
}
.voice-postcall.active { display: block; }
.voice-postcall h4 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 700; }
.voice-postcall .pc-sub { color: #a0a0c0; font-size: 0.9rem; margin: 0 0 18px; }

.voice-postcall input,
.voice-postcall select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 10px;
  box-sizing: border-box;
}
.voice-postcall input:focus,
.voice-postcall select:focus {
  outline: none;
  border-color: #a855f7;
  background: rgba(255, 255, 255, 0.1);
}
.voice-postcall input::placeholder { color: #6a6a8a; }

.voice-postcall button[type=submit] {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
}
.voice-postcall button[type=submit]:hover { filter: brightness(1.1); }
.voice-postcall button[type=submit]:disabled { opacity: 0.5; cursor: wait; }

.voice-postcall .pc-skip {
  text-align: center;
  margin-top: 12px;
  font-size: 0.88rem;
}
.voice-postcall .pc-skip a {
  color: #a0a0c0;
  text-decoration: underline;
}

.voice-thanks {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.voice-thanks.active { display: block; }
.voice-thanks .check { font-size: 3rem; margin-bottom: 12px; }
.voice-thanks h4 { margin: 0 0 8px; font-size: 1.2rem; }
.voice-thanks p { color: #a0a0c0; font-size: 0.95rem; margin: 0; }
