/* DDA Employment Chat Widget — widget.css */

/* ── Trigger bubble ─────────────────────────────────────────────── */
#dda-trigger {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8a1a1a, #601a0c);
  border: none;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 8px 32px rgba(96, 26, 12, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  outline: none;
}
#dda-trigger:hover  { transform: scale(1.08); }
#dda-trigger:active { transform: scale(0.96); }

#dda-trigger svg { width: 28px; height: 28px; }
#dda-trigger .icon-chat  { display: block; }
#dda-trigger .icon-close { display: none;  }
#dda-trigger.open .icon-chat  { display: none;  }
#dda-trigger.open .icon-close { display: block; }

/* Notification badge */
#dda-trigger::after {
  content: '';
  position: absolute;
  top: 4px; right: 4px;
  width: 12px; height: 12px;
  background: #e85c3a;
  border-radius: 50%;
  border: 2px solid #fff;
  animation: ddaBadgePulse 2.5s ease-in-out infinite;
}
#dda-trigger.open::after { display: none; }

@keyframes ddaBadgePulse {
  0%, 100% { transform: scale(1);   }
  50%       { transform: scale(1.2); }
}

/* ── Widget panel ───────────────────────────────────────────────── */
#dda-widget {
  position: fixed;
  bottom: 108px;
  right: 28px;
  width: 360px;
  max-width: calc(100vw - 40px);
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  z-index: 9999;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity   0.25s ease;
}
#dda-widget.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

/* ── Header ─────────────────────────────────────────────────────── */
.dda-header {
  background: linear-gradient(160deg, #5a0a0a 0%, #8a2020 60%, #6a1010 100%);
  position: relative;
  overflow: hidden;
}

.dda-photo-area { position: relative; width: 100%; overflow: hidden; }
.dda-photo-area img { width: 100%; height: auto; display: block; }
.dda-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(90,10,10,.2) 0%, rgba(40,5,5,.75) 100%);
}
.dda-results-badge {
  position: absolute; bottom: 12px; left: 14px;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(255,255,255,.85);
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}

.dda-header-text { padding: 14px 18px 16px; }
.dda-firm-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.02em;
}
.dda-firm-sub {
  font-size: 0.65rem;
  color: rgba(255,255,255,.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}
.dda-tagline {
  margin-top: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,.85);
  line-height: 1.5;
}
.dda-tagline strong { color: #c8a96e; font-weight: 600; }

/* ── Options list ───────────────────────────────────────────────── */
.dda-options { padding: 14px 14px 0; background: #f8f9fb; }
.dda-options-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.dda-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: white;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
  margin-bottom: 8px;
  text-decoration: none;
  outline: none;
}
.dda-btn:hover {
  border-color: #8a2020;
  background: #fff5f5;
  transform: translateX(2px);
  box-shadow: 0 2px 12px rgba(138,32,32,.12);
}
.dda-btn:active { transform: translateX(0); }

.dda-btn-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dda-btn-icon svg { width: 18px; height: 18px; }

.icon-chat-btn { background: #E8F8F2; }
.icon-chat-btn svg { stroke: #0a7a52; }

.icon-form { background: #FFF0ED; }
.icon-form svg { stroke: #c04020; }

.icon-call { background: #FBF3E3; }
.icon-call svg { stroke: #8a2020; }

.dda-btn-call { border-color: #e8d9b5; }
.dda-btn-call:hover {
  border-color: #8a2020;
  background: #fdf8ee;
  box-shadow: 0 2px 12px rgba(138,32,32,.15);
}
.dda-btn-call .dda-btn-sub { color: #5a0a0a; font-weight: 500; letter-spacing: 0.02em; }

.dda-btn-title { font-size: 0.88rem; font-weight: 600; color: #1a1a2e; display: block; }
.dda-btn-sub   { font-size: 0.75rem; color: #888; display: block; margin-top: 1px; }

.dda-btn-arrow {
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
}
.dda-btn:hover .dda-btn-arrow { opacity: 1; transform: translateX(2px); }

/* ── Footer ─────────────────────────────────────────────────────── */
.dda-footer {
  padding: 12px 14px 16px;
  background: #f8f9fb;
  text-align: center;
  border-top: 1px solid #eee;
}
.dda-footer p  { font-size: 0.72rem; color: #aaa; }
.dda-footer strong { color: #5a0a0a; font-weight: 600; }

/* ── Mobile ─────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  #dda-widget {
    bottom: 0; right: 0; left: 0;
    width: 100%; max-width: 100%;
    border-radius: 20px 20px 0 0;
  }
  #dda-trigger { bottom: 20px; right: 20px; }
}
