/* ===========================
   WHATSAPP WIDGET
   matches new HTML structure
   =========================== */

.whatsapp-widget {
  position: fixed;
  right: 1.25rem;
  bottom: 1.6rem;
  z-index: 50;
}

.whatsapp-fab {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 999px;
  border: none;
  background: #22c55e;
  color: #ecfdf5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 18px 40px rgba(22, 163, 74, 0.65);
  transition: transform 0.16s ease-out,
    box-shadow 0.16s ease-out,
    background-color 0.16s ease-out;
}

.whatsapp-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(22, 163, 74, 0.9);
  background: #16a34a;
}

.whatsapp-popup {
  position: absolute;
  right: 0;
  bottom: 3.3rem;
  width: 300px;
  max-width: calc(100vw - 2.2rem);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.95);
  display: none;
  flex-direction: column;
}

.whatsapp-popup.open {
  display: flex;
}

.whatsapp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.5);
}

.whatsapp-header h3 {
  margin: 0 0 0.15rem;
  font-size: 0.9rem;
}

.whatsapp-header p {
  margin: 0;
  font-size: 0.75rem;
}

.whatsapp-form {
  padding: 0.6rem 0.85rem 0.5rem;
  font-size: 0.82rem;
}

.whatsapp-form .form-group {
  margin-bottom: 0.55rem;
}

.whatsapp-form textarea {
  font-size: 0.8rem;
  min-height: 70px;
}

.whatsapp-form .btn {
  margin-top: 0.35rem;
}

@media (max-width: 768px) {
  .whatsapp-widget {
    right: 1rem;
    bottom: 1.2rem;
  }
  .whatsapp-popup {
    width: calc(100vw - 2rem);
    bottom: 3.1rem;
  }
}

/* ===========================
   WHATSAPP STICKY RIBBON (MOBILE)
   =========================== */

.whatsapp-ribbon {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.35rem 0.9rem 0.45rem;
  z-index: 40;
  display: none;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
  border-top: 1px solid rgba(148, 163, 184, 0.6);
}

.whatsapp-ribbon-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: none;
  background: #22c55e;
  color: #ecfdf5;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.8rem;
  box-shadow: 0 18px 40px rgba(22, 163, 74, 0.85);
}

.whatsapp-ribbon-btn i {
  font-size: 1.1rem;
}

/* Show ribbon only on small screens */
@media (max-width: 768px) {
  .whatsapp-ribbon {
    display: block;
  }
}

