/* whatsapp-concierge.css */
#zuga-whatsapp-concierge {
  position: fixed;
  z-index: 9999;
  display: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1f2a1f;
}

#zuga-whatsapp-concierge.visible {
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.zwc-modal {
  width: 100%;
  max-width: 880px;
  background: #f6f4ef;
  border-radius: 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  position: relative;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
  margin: 20px;
}

#zuga-whatsapp-concierge.visible .zwc-modal {
  transform: translateY(0);
  opacity: 1;
}

.zwc-layout {
  display: flex;
  flex-direction: row;
  min-height: 500px;
}

/* === LEFT PHOTO PANEL === */
.zwc-photo-panel {
  flex: 0 0 40%;
  position: relative;
  background-image: url('../images/popup-yoga-mat.webp');
  background-size: cover;
  background-position: center;
  background-color: #e5dfd3;
  /* Organic curved right edge using clip-path */
  clip-path: ellipse(150% 100% at -50% 50%);
  z-index: 2;
}

/* Fallback for old browsers if needed, though clip-path is widely supported now */
@supports not (clip-path: ellipse(150% 100% at -50% 50%)) {
  .zwc-photo-panel {
    border-radius: 0 50% 50% 0 / 0 10% 10% 0;
  }
}

/* Blobs */
.zwc-blob {
  position: absolute;
  background: #cfe0c3; /* sage */
  border-radius: 50%;
  opacity: 0.8;
  z-index: 1;
}
.zwc-blob-tl {
  width: 120px;
  height: 120px;
  top: -40px;
  left: -40px;
  filter: blur(10px);
}
.zwc-blob-bl {
  width: 150px;
  height: 150px;
  bottom: -50px;
  left: -30px;
  filter: blur(15px);
}
.zwc-blob-br {
  width: 180px;
  height: 180px;
  bottom: -60px;
  right: -60px;
  filter: blur(20px);
  z-index: 0;
}

/* Handwritten Notes */
.zwc-note {
  position: absolute;
  font-family: 'Caveat', cursive;
  color: #2c5f2d;
  font-size: 1.4rem;
  line-height: 1.2;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
}
.zwc-note-photo {
  bottom: 40px;
  left: 20px;
  transform: rotate(-4deg);
  background: rgba(255, 255, 255, 0.8);
  padding: 6px 12px;
  border-radius: 8px;
  backdrop-filter: blur(2px);
}
.zwc-note-content {
  bottom: 20px;
  right: 20px;
  transform: rotate(-3deg);
}
.zwc-heart {
  width: 20px;
  height: 20px;
  color: #2c5f2d;
}

/* === RIGHT CONTENT PANEL === */
.zwc-content-panel {
  flex: 0 0 60%;
  padding: 40px 40px 30px 30px;
  box-sizing: border-box;
  background: #f6f4ef;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
}

/* Close Button */
.zwc-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
  z-index: 10;
  border-radius: 50%;
}
.zwc-close:hover {
  opacity: 1;
  background: rgba(0,0,0,0.05);
}

/* Header */
.zwc-header {
  position: relative;
  margin-bottom: 24px;
  z-index: 2;
}

.zwc-header h3 {
  margin: 0;
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 2rem;
  color: #1e4d38;
  line-height: 1.2;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.zwc-icon-dart {
  width: 28px;
  height: 28px;
  color: #1e4d38;
  flex-shrink: 0;
}

.zwc-highlight {
  background: #cfe0c3;
  padding: 0 6px;
  transform: skew(-2deg);
  display: inline-block;
  border-radius: 4px;
  margin-left: 6px;
}

.zwc-sub {
  margin: 12px 0 0;
  font-size: 1rem;
  color: #444;
}

/* Body / Form */
.zwc-body {
  position: relative;
  z-index: 2;
}

.zwc-form-group {
  margin-bottom: 20px;
}

.zwc-form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2a1f;
}

.zwc-icon-dart-small,
.zwc-icon-wa,
.zwc-icon-clock {
  width: 18px;
  height: 18px;
  color: #1e4d38;
}

.zwc-form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d0ccc0;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
  background: #fff;
  color: #333;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.zwc-form-control:focus {
  outline: none;
  border-color: #2c5f2d;
  box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.15);
}

.zwc-phone-row {
  display: flex;
  gap: 12px;
}
.zwc-phone-row select {
  flex: 0 0 35%;
  width: 35%;
}
.zwc-phone-row input[type="tel"] {
  flex: 1;
  width: 65%;
}

/* Button & Sparkles */
.zwc-btn-wrapper {
  position: relative;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zwc-submit {
  width: 100%;
  background: #2c5f2d;
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(44, 95, 45, 0.2);
}
.zwc-submit .zwc-icon-wa {
  color: #fff;
  width: 20px;
  height: 20px;
}
.zwc-icon-chevron {
  width: 20px;
  height: 20px;
}

.zwc-submit:hover {
  background: #1e4d38;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(44, 95, 45, 0.3);
}

.zwc-sparkle {
  position: absolute;
  width: 24px;
  height: 24px;
  color: #2c5f2d;
  opacity: 0.7;
}
.zwc-sparkle-tr {
  top: -10px;
  right: -20px;
}
.zwc-sparkle-bl {
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
}
.zwc-sparkle-br {
  right: -24px;
  top: 50%;
  transform: translateY(-50%);
}

.zwc-leaf {
  position: absolute;
  width: 48px;
  height: 48px;
  right: -10px;
  bottom: 60px;
  opacity: 0.2;
  transform: rotate(-15deg);
}

.zwc-micro {
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  margin: 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.zwc-micro .zwc-icon-clock {
  color: #888;
  width: 16px;
  height: 16px;
}

/* === MOBILE === */
@media (max-width: 768px) {
  #zuga-whatsapp-concierge.visible {
    align-items: flex-end;
  }

  .zwc-modal {
    margin: 0;
    max-width: 100%;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
  }

  .zwc-layout {
    flex-direction: column;
    min-height: auto;
  }

  .zwc-photo-panel {
    flex: none;
    width: 100%;
    height: 140px;
    clip-path: ellipse(150% 100% at 50% 0%);
  }

  .zwc-note-photo {
    bottom: 10px;
    left: 10px;
    font-size: 1.2rem;
  }

  .zwc-content-panel {
    flex: none;
    width: 100%;
    padding: 24px 20px;
  }

  .zwc-header h3 {
    font-size: 1.6rem;
  }

  .zwc-sparkle-bl, .zwc-sparkle-br {
    display: none;
  }

  .zwc-note-content {
    display: none; /* Might overlap too much on mobile */
  }

  .zwc-close {
    top: -120px; /* Move into photo panel */
    right: 12px;
    background: rgba(255,255,255,0.7);
    color: #333;
  }
  .zwc-close:hover {
    background: rgba(255,255,255,0.9);
  }
}
