@keyframes soft-float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

@keyframes wa-beep {
  0% {
    transform: translateZ(0) scale(1);
    box-shadow: 0 14px 34px rgba(16, 185, 129, 0.35);
  }
  40% {
    transform: translateZ(0) scale(1.06);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.18), 0 16px 40px rgba(16, 185, 129, 0.45);
  }
  80% {
    transform: translateZ(0) scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0), 0 14px 34px rgba(16, 185, 129, 0.35);
  }
  100% {
    transform: translateZ(0) scale(1);
    box-shadow: 0 14px 34px rgba(16, 185, 129, 0.35);
  }
}

html,
body {
  overflow-x: clip;
}

.float-card {
  animation: soft-float 6s ease-in-out infinite;
}

.wa-beep {
  animation: wa-beep 2.6s ease-in-out infinite;
}

/* Keep intl-tel-input dropdown closer to input width */
.iti {
  width: 100%;
}

.iti__dropdown-content {
  width: 100%;
  min-width: 260px;
  max-width: 360px;
}

.iti__country-list {
  width: 100%;
  min-width: 280px;
  max-width: 360px;
}

.iti__dropdown {
  width: 100%;
  min-width: 280px;
  max-width: 360px;
}

/* WhatsApp CTA panel polish */
.wa-panel {
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.wa-panel-header {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.06), rgba(34, 197, 94, 0.06));
}

.wa-header-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.78rem;
  color: #94a3b8;
}

.wa-header-text {
  color: #94a3b8;
}

.wa-employee {
  border-radius: 16px;
  padding: 12px 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.wa-employee:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.wa-employee.is-offline {
  opacity: 0.6;
  cursor: not-allowed;
}

.wa-employee--grid {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
}

.wa-meta {
  display: grid;
  gap: 2px;
}

.wa-subtle {
  font-size: 0.72rem;
  color: #6b7280;
  font-style: italic;
}

.wa-name {
  font-weight: 700;
  color: #0f172a;
}

.wa-status-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #16a34a;
}

.wa-status-line::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  display: inline-block;
}

.wa-status-line.is-offline {
  color: #94a3b8;
}

.wa-status-line.is-offline::before {
  background: #94a3b8;
}

.wa-avatar {
  border: 2px solid #e2e8f0;
}

/* Ensure dropdown text is readable in light panels */
.iti__dropdown-content,
.iti__country-list {
  background-color: #ffffff;
  color: #0f172a;
}

.iti__country,
.iti__country-name,
.iti__dial-code,
.iti__search-input {
  color: #0f172a;
}

.iti__country.iti__highlight {
  background-color: #f1f5f9;
}

/* FAQ accordion styles (shared with home FAQ section) */
.faq-group {
  display: none;
}

.faq-group.active {
  display: block;
}

.faq-item {
  background: #f8fafc;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
}

.faq-question {
  width: 100%;
  text-align: left;
  font-weight: 600;
  color: #0f172a;
  position: relative;
  padding-right: 30px;
}

.faq-question::after {
  content: "ƒ-_";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 18px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  color: #475569;
  font-size: 0.95rem;
  margin-top: 10px;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.wa-widget {
  position: fixed;
  right: 1.5rem;
  bottom: 6.25rem;
  z-index: 45;
  font-family: inherit;
}

.wa-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), transparent 55%),
              linear-gradient(135deg, #19e071 0%, #12c96b 55%, #0aa95f 100%);
  color: #ffffff;
  border-radius: 50% 50% 50% 18%;
  width: 3.4rem;
  height: 3.4rem;
  padding: 0.6rem;
  font-weight: 600;
  box-shadow: none;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.wa-toggle::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: -5px;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #19e071 0%, #0aa95f 100%);
  transform: rotate(45deg);
  border-radius: 4px;
}

.wa-toggle:hover {
  transform: scale(1.02);
  filter: brightness(1.05);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25) inset,
    0 14px 34px rgba(18, 201, 107, 0.55),
    0 0 30px rgba(25, 224, 113, 0.5);
}

.wa-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 9999px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: none;
}

.wa-panel {
  position: absolute;
  right: 0;
  bottom: 3.6rem;
  width: min(320px, 90vw);
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  padding: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.wa-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.wa-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.wa-close {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.wa-close:hover {
  background: #e2e8f0;
}

.wa-panel-body {
  padding-top: 0.75rem;
  display: grid;
  gap: 0.65rem;
}

.wa-employee {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 0.9rem;
  transition: background 0.2s ease;
}

.wa-employee:hover {
  background: #f8fafc;
}

.wa-avatar {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.8rem;
  background: rgba(37, 211, 102, 0.15);
  color: #15803d;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wa-name {
  display: block;
  font-weight: 600;
  color: #0f172a;
}

.wa-role,
.wa-lang {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
}

.wa-note {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

@media (max-width: 640px) {
  .wa-toggle {
    width: 3.1rem;
    height: 3.1rem;
    padding: 0.55rem;
  }

  .wa-widget {
    left: 1rem;
    right: auto;
    bottom: 1rem;
  }
}
