/* ============================================
   SK AGENCY — FLOATING CALL WIDGET CSS
   Save as: floating-widgets.css  (all lowercase)
   ============================================ */

/* ---- TRIGGER BUTTON (fixed right side) ---- */
.fcw-trigger {
  position: fixed;
  right: 24px;
  bottom: 40px;
  z-index: 8300; /* raised above backdrop */
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #7c3aed, #c800ff);
  border: none;
  border-radius: 999px;
  padding: 14px 20px 14px 16px;
  cursor: pointer;
  box-shadow:
    0 8px 32px rgba(124,58,237,0.55),
    0 0 0 1px rgba(255,255,255,0.08);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.3s ease;
  overflow: hidden;
}

.fcw-trigger::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
  pointer-events: none;
}

.fcw-trigger:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    0 14px 40px rgba(124,58,237,0.7),
    0 0 0 1px rgba(255,255,255,0.12);
}

.fcw-trigger:active { transform: scale(0.97); }

/* Pulse ring behind button */
.fcw-trigger-ring {
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid rgba(200,0,255,0.4);
  animation: fcwPulse 2.5s ease-out infinite;
  pointer-events: none;
}

@keyframes fcwPulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  70%  { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}

.fcw-trigger-icon {
  position: relative;
  width: 22px;
  height: 22px;
  color: white;
  flex-shrink: 0;
}

/* Phone icon visible by default, X icon hidden */
.fcw-icon-phone {
  position: absolute;
  inset: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.fcw-icon-close {
  position: absolute;
  inset: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  opacity: 0;
  transform: scale(0.6) rotate(-90deg);
}

/* When overlay is open, swap icons */
.fcw-trigger.is-open .fcw-icon-phone {
  opacity: 0;
  transform: scale(0.6) rotate(90deg);
}

.fcw-trigger.is-open .fcw-icon-close {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.fcw-trigger-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: opacity 0.2s, max-width 0.3s;
}

/* ---- BACKDROP ---- */
.fcw-backdrop {
  position: fixed;
  inset: 0;
  z-index: 8100;
  background: rgba(5, 5, 12, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.fcw-backdrop.is-open {
  opacity: 1;
  pointer-events: all;
}

/* ---- OVERLAY PANEL ---- */
.fcw-overlay {
  position: fixed;
  right: 24px;
  bottom: 100px;
  z-index: 8200;
  width: min(360px, calc(100vw - 32px));
  background: #0e0e1a;
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 28px;
  padding: 32px 28px 24px;
  box-shadow:
    0 40px 100px rgba(0,0,0,0.7),
    0 0 0 1px rgba(124,58,237,0.12),
    0 0 60px rgba(124,58,237,0.1);
  opacity: 0;
  transform: translateY(24px) scale(0.95);
  transform-origin: bottom right;
  pointer-events: none;
  transition:
    opacity 0.35s cubic-bezier(0.23,1,0.32,1),
    transform 0.35s cubic-bezier(0.23,1,0.32,1);
  overflow: hidden;
}

.fcw-overlay::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #7c3aed, #c800ff, #7c3aed);
  background-size: 200%;
  animation: fcwShimmer 3s linear infinite;
}

@keyframes fcwShimmer {
  0%   { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

.fcw-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.fcw-overlay.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* ---- CLOSE BUTTON ---- */
.fcw-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 1;
}

.fcw-close:hover {
  background: rgba(200,0,255,0.15);
  border-color: rgba(200,0,255,0.3);
  color: white;
}

/* ---- HEADER ---- */
.fcw-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.fcw-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #7c3aed, #c800ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.fcw-header-text { flex: 1; }

.fcw-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: white;
  margin: 0 0 2px;
}

.fcw-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.fcw-status {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #4ade80;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.fcw-dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: fcwBlink 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes fcwBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ---- DESCRIPTION ---- */
.fcw-desc {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  margin: 0 0 22px;
  position: relative;
  z-index: 1;
}

/* ---- ACTION BUTTONS ---- */
.fcw-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

.fcw-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.23,1,0.32,1);
  position: relative;
  overflow: hidden;
}

.fcw-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), transparent);
  pointer-events: none;
}

/* Call button */
.fcw-btn-call {
  background: rgba(124,58,237,0.12);
  border-color: rgba(124,58,237,0.25);
}

.fcw-btn-call:hover {
  background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(200,0,255,0.2));
  border-color: rgba(124,58,237,0.5);
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(124,58,237,0.25);
}

.fcw-btn-call .fcw-btn-icon { color: #a78bfa; }

/* WhatsApp button */
.fcw-btn-whatsapp {
  background: rgba(37,211,102,0.08);
  border-color: rgba(37,211,102,0.2);
}

.fcw-btn-whatsapp:hover {
  background: rgba(37,211,102,0.18);
  border-color: rgba(37,211,102,0.4);
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.2);
}

.fcw-btn-whatsapp .fcw-btn-icon { color: #25d366; }

/* Icon circle */
.fcw-btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.fcw-btn:hover .fcw-btn-icon { transform: scale(1.08); }

.fcw-btn-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fcw-btn-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: white;
}

.fcw-btn-val {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
}

.fcw-btn-arrow {
  font-size: 1rem;
  color: rgba(255,255,255,0.3);
  transition: transform 0.3s ease, color 0.3s ease;
}

.fcw-btn:hover .fcw-btn-arrow {
  transform: translateX(4px);
  color: rgba(255,255,255,0.7);
}

/* ---- FOOTER PILLS ---- */
.fcw-footer {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.fcw-footer span {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.5px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
  .fcw-trigger {
    right: 16px;
    bottom: 24px;
    padding: 13px 16px 13px 14px;
  }

  .fcw-trigger-label { display: none; }

  .fcw-overlay {
    right: 16px;
    bottom: 84px;
    width: calc(100vw - 32px);
    padding: 28px 20px 20px;
  }

  .fcw-status { display: none; }

  .fcw-footer { gap: 8px; }
}