/* css/contact-widget.css */

#seaccgs-contact-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

@media (max-width: 768px) {
  #seaccgs-contact-widget {
    bottom: 16px;
    right: 16px;
  }
}

/* ------------------------
   Floating Action Button
   ------------------------ */
.scw-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #1A1A1A; /* Dark premium charcoal */
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.3);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  position: relative;
  outline: none;
}

/* Idle Pulse Animation */
.scw-fab::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  background-color: rgba(26, 26, 26, 0.4);
  z-index: -1;
  animation: scw-pulse 3s infinite;
}

@keyframes scw-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

.scw-fab:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 12px 32px rgba(26, 26, 26, 0.4);
}

.scw-fab:focus-visible {
  box-shadow: 0 0 0 4px rgba(242, 175, 41, 0.5); /* Brand accent focus */
}

.scw-fab svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  transition: transform 0.3s ease;
  position: absolute; /* Ensures they stack perfectly to rotate and fade */
}

.scw-fab .scw-chat-icon {
  transform: rotate(0) scale(1);
  opacity: 1;
}

.scw-fab.scw-active .scw-chat-icon {
  transform: rotate(90deg) scale(0);
  opacity: 0;
}

.scw-fab .scw-close-icon {
  transform: rotate(-90deg) scale(0);
  opacity: 0;
}

.scw-fab.scw-active .scw-close-icon {
  transform: rotate(0) scale(1);
  opacity: 1;
}

/* ------------------------
   Panel
   ------------------------ */
.scw-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 340px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom right;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
  overflow: hidden;
  pointer-events: none;
}

@media (max-width: 400px) {
  .scw-panel {
    width: calc(100vw - 32px);
  }
}

.scw-panel.scw-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scw-panel-header {
  padding: 24px;
  background: #f8f9fa;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  position: relative;
}

.scw-panel-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
  line-height: 1.3;
}

.scw-panel-header p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}

.scw-panel-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  transition: background 0.2s, color 0.2s;
}

.scw-panel-close:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.scw-panel-close:focus-visible {
  outline: 2px solid #1a1a1a;
}

.scw-panel-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scw-action-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  color: #1e293b;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s ease;
  outline: none;
}

.scw-action-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.scw-action-btn:focus-visible {
  border-color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(26,26,26,0.1);
}

.scw-action-icon {
  width: 20px;
  height: 20px;
  color: #1a1a1a;
}

.scw-whatsapp-icon { color: #25D366; }
.scw-phone-icon { color: #1a1a1a; }
.scw-mail-icon { color: #f2af29; }

.scw-panel-footer {
  padding: 12px 16px 16px;
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.04);
}

.scw-panel-footer span {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.6;
}
