/* =========================================================
   LEAD GENERATION PAGE: visitors become enquiries
   Left: Layla's website with a quick quote form.
   Right (in front): her enquiries inbox filling up.
   ========================================================= */

.leads-stage {
  position: relative;
  height: 450px;
}

.leads-site {
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
}

.leads-site .demo-screen {
  height: 330px;
  padding: 14px 16px;
  box-sizing: border-box;
}

.leads-nav {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #777777;
}

.leads-nav strong {
  color: #e84393;
  font-weight: 800;
  font-size: 14px;
}

.leads-hero {
  margin-top: 10px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff9a5c, #e84393);
  color: #ffffff;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
}

/* The quick quote popup */
.leads-popup {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  padding: 14px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transform: translateY(120%);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.show-popup .leads-popup {
  transform: translateY(0);
}

.leads-popup strong {
  display: block;
  font-size: 14px;
}

.leads-popup > span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: #777777;
}

.leads-field {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  padding: 6px 10px;
  border: 1px solid #e2e2ea;
  border-radius: 8px;
  font-size: 12px;
}

.leads-field em {
  width: 70px;
  flex-shrink: 0;
  font-style: normal;
  color: #999999;
}

.leads-field.active {
  border-color: #e84393;
}

.leads-popup .leads-send {
  display: block;
  margin-top: 8px;
  padding: 8px;
  border-radius: 8px;
  background: #e84393;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  transition: transform 0.15s, background 0.3s;
}

.leads-send.pressed {
  transform: scale(0.94);
}

.form-sent .leads-send {
  background: #00a86b;
}

/* The inbox, in front of the website */
.leads-inbox {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 48%;
  height: 320px;
  padding: 14px;
  box-sizing: border-box;
  border-radius: 16px;
  background: #15151c;
  border: 1px solid #2a2a35;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.inbox-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
}

.inbox-count {
  min-width: 26px;
  padding: 2px 8px;
  border-radius: 99px;
  background: #6c5ce7;
  color: #ffffff;
  font-size: 12px;
  text-align: center;
}

.inbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lead {
  border: 1px solid transparent;
  transition: border-color 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  background: #1f1f2a;
  animation: lead-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes lead-in {
  from { opacity: 0; transform: translateX(30px); }
}

.lead.picked {
  border-color: #55efc4;
}

/* The reply button appears after an enquiry is opened */
.inbox-reply {
  margin-top: auto;
  padding: 9px;
  border-radius: 10px;
  background: #25d366;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s, transform 0.4s, background 0.3s;
}

.show-reply .inbox-reply {
  opacity: 1;
  transform: none;
}

.replied .inbox-reply {
  background: #00a86b;
}

.lead-avatar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9a5c, #e84393);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.lead div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.lead strong {
  font-size: 13px;
  color: #ffffff;
}

.lead div span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11.5px;
  color: #a0a0b0;
}

.lead-source {
  flex-shrink: 0;
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 600;
}

.src-form { background: rgba(232, 67, 147, 0.18); color: #ff7eb8; }
.src-whatsapp { background: rgba(37, 211, 102, 0.18); color: #4ee38a; }
.src-social { background: rgba(162, 155, 254, 0.2); color: #b9b3ff; }
.src-search { background: rgba(0, 210, 255, 0.16); color: #5fe0ff; }

@media (max-width: 900px) {
  .leads-stage {
    height: 590px;
  }

  .leads-site {
    width: 92%;
  }

  .leads-inbox {
    width: 86%;
    height: 345px;
  }
}


@media (prefers-reduced-motion: reduce) {
  .leads-popup,
  .leads-send {
    transition: none;
  }

  .lead {
    animation: none;
  }
}
