/* Pure Relief — Partner Massage lead magnet popup */
.prs-lm-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(26, 16, 40, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
}

.prs-lm-overlay *,
.prs-lm-overlay *::before,
.prs-lm-overlay *::after {
  box-sizing: border-box;
}

.prs-lm-overlay.prs-lm-open {
  opacity: 1;
  visibility: visible;
}

.prs-lm-modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: #f3f0f8;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(75, 39, 103, 0.28);
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.prs-lm-overlay.prs-lm-open .prs-lm-modal {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: prs-lm-fade-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes prs-lm-fade-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Small gold circle → purple on hover */
.prs-lm-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 3;
  width: 1.65rem !important;
  height: 1.65rem !important;
  min-width: 1.65rem !important;
  max-width: 1.65rem !important;
  min-height: 1.65rem !important;
  max-height: 1.65rem !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1 !important;
  flex: 0 0 auto !important;
  background: linear-gradient(135deg, #f3d78a 0%, #e8cf7a 45%, #c9a24a 100%) !important;
  color: #4b2767 !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(75, 39, 103, 0.22);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  overflow: hidden;
}

.prs-lm-close:hover,
.prs-lm-close:focus {
  background: #4b2767 !important;
  color: #f3e8ff !important;
  transform: scale(1.08);
  outline: none;
}

.prs-lm-hero {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px 14px 0 0;
  object-fit: cover;
  max-height: 220px;
}

.prs-lm-body {
  padding: 1.35rem 1.5rem 1.5rem;
  text-align: center;
}

.prs-lm-title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  color: #1a1028;
  letter-spacing: -0.02em;
}

.prs-lm-sub {
  margin: 0 0 1.15rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #4a3d56;
}

/* Email + CTA — equal height, mockup proportions */
.prs-lm-form {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.45rem;
  justify-content: center;
  max-width: 100%;
  margin: 0 auto;
}

.prs-lm-email {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  padding: 0 0.95rem !important;
  margin: 0 !important;
  border: 1px solid #d8cfe6 !important;
  border-radius: 10px !important;
  font-family: inherit !important;
  font-size: 0.9rem !important;
  line-height: 1.2 !important;
  background: #fff !important;
  color: #1a1028 !important;
  outline: none !important;
  box-shadow: none !important;
}

.prs-lm-email::placeholder {
  color: #9a8faa;
}

.prs-lm-email:focus {
  border-color: #6b3b87 !important;
  box-shadow: 0 0 0 3px rgba(107, 59, 135, 0.12) !important;
}

.prs-lm-submit {
  flex: 0 0 auto;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  padding: 0 0.85rem !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 10px !important;
  background: #4b2767 !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 0.62rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s ease, background 0.15s ease;
}

.prs-lm-submit:hover:not(:disabled) {
  filter: brightness(1.1);
  background: #5a3380 !important;
}

.prs-lm-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.prs-lm-error {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: #b42318;
}

.prs-lm-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Thank-you state */
.prs-lm-success .prs-lm-form-wrap {
  display: none;
}

.prs-lm-success-title {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.4;
  color: #1a1028;
  text-align: center;
}

.prs-lm-success-text {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4a3d56;
  text-align: left;
}

.prs-lm-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.prs-lm-actions-row {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.5rem;
}

.prs-lm-actions-row .prs-lm-btn {
  flex: 1 1 50%;
  min-width: 0;
  padding: 0.75rem 0.5rem;
  font-size: 0.68rem;
}

.prs-lm-btn {
  display: block;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: filter 0.15s;
}

.prs-lm-btn-primary {
  background: #4b2767 !important;
  color: #fff !important;
  border: none;
}

.prs-lm-btn-secondary {
  background: #fff;
  color: #4b2767;
  border: 1px solid #c9b8d9;
}

.prs-lm-btn-gold {
  background: linear-gradient(135deg, #f3d78a 0%, #e8cf7a 45%, #c9a24a 100%) !important;
  color: #4b2767 !important;
  border: none !important;
  cursor: pointer;
  font-family: inherit;
}

.prs-lm-btn-gold:hover {
  filter: brightness(1.06);
}

.prs-lm-btn:hover {
  filter: brightness(1.05);
}

.prs-lm-success-wrap {
  display: none;
}

.prs-lm-success .prs-lm-success-wrap {
  display: block;
}

@media (max-width: 480px) {
  .prs-lm-form {
    flex-direction: column;
    flex-wrap: wrap;
  }
  .prs-lm-email,
  .prs-lm-submit {
    width: 100% !important;
    flex: 1 1 100%;
  }
  .prs-lm-title {
    font-size: 1.15rem;
  }
  .prs-lm-actions-row {
    flex-direction: column;
  }
  .prs-lm-actions-row .prs-lm-btn {
    flex: 1 1 100%;
    width: 100%;
  }
}
