.whatsapp-lead-popup {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1.5rem;
}

.whatsapp-lead-popup.is-open {
  display: flex;
}

.whatsapp-lead-popup__overlay {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
}

.whatsapp-lead-popup__dialog {
  position: relative;
  width: min(100%, 34rem);
  max-height: calc(100vh - 3rem);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(152deg, #0f1014 0%, #1c1d24 50%, #101116 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.whatsapp-lead-popup__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.whatsapp-lead-popup__close:hover {
  border-color: rgba(253, 225, 77, 0.8);
  color: #fde14d;
}

.whatsapp-lead-popup__content h3 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 120%;
}

.whatsapp-lead-popup__content p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 145%;
  color: rgba(255, 255, 255, 0.88);
}

.whatsapp-lead-popup .wpcf7-form > p {
  margin-bottom: 0.75rem;
}

.whatsapp-lead-popup .wpcf7-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  line-height: 130%;
  color: rgba(255, 255, 255, 0.85);
}

.whatsapp-lead-popup .wpcf7-form input[type='text'],
.whatsapp-lead-popup .wpcf7-form input[type='tel'],
.whatsapp-lead-popup .wpcf7-form input[type='email'],
.whatsapp-lead-popup .wpcf7-form select,
.whatsapp-lead-popup .wpcf7-form textarea {
  width: 100%;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0 0.85rem;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-lead-popup .wpcf7-form textarea {
  min-height: 7rem;
  padding-top: 0.75rem;
  resize: vertical;
}

.whatsapp-lead-popup .wpcf7-form input[type='text']:focus,
.whatsapp-lead-popup .wpcf7-form input[type='tel']:focus,
.whatsapp-lead-popup .wpcf7-form input[type='email']:focus,
.whatsapp-lead-popup .wpcf7-form select:focus,
.whatsapp-lead-popup .wpcf7-form textarea:focus {
  border-color: rgba(253, 225, 77, 0.9);
  box-shadow: 0 0 0 2px rgba(253, 225, 77, 0.2);
}

.whatsapp-lead-popup .wpcf7-form select option {
  color: #000;
}

.whatsapp-lead-popup .wpcf7-form input[type='submit'] {
  width: 100%;
  min-height: 3rem;
  border: 0;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-weight: 700;
  line-height: 120%;
  color: #000;
  background: #fde14d;
  cursor: pointer;
  transition: all 0.2s ease;
}

.whatsapp-lead-popup .wpcf7-form input[type='submit']:hover {
  filter: brightness(1.08);
}

.whatsapp-lead-popup .wpcf7-not-valid-tip,
.whatsapp-lead-popup .wpcf7-response-output {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
}

.whatsapp-lead-popup__error {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.85rem;
  font-size: 0.9rem;
}

body.whatsapp-lead-popup-open {
  overflow: hidden;
}

@media (max-width: 766px) {
  .whatsapp-lead-popup {
    padding: 1rem;
  }

  .whatsapp-lead-popup__dialog {
    max-height: calc(100vh - 2rem);
    padding: 1.75rem 1rem 1.25rem;
  }

  .whatsapp-lead-popup__content h3 {
    font-size: 1.3rem;
    padding-right: 1.5rem;
  }
}
