/**
 * Lead capture modal — same interaction pattern as Dr. Maly Solan site group registration.
 */

.maestro-lead-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 12000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(44, 38, 32, 0.55);
  backdrop-filter: blur(4px);
}

.maestro-lead-modal.is-open {
  display: flex;
}

.maestro-lead-modal__dialog {
  position: relative;
  width: min(100%, 480px);
  max-height: min(90vh, 640px);
  overflow-y: auto;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--mp-paper, #fff);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(44, 38, 32, 0.18);
  animation: maestroLeadModalIn 0.28s ease;
}

@keyframes maestroLeadModalIn {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.maestro-lead-modal__close {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--mp-muted, #666);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.maestro-lead-modal__close:hover {
  background: var(--mp-cream, #f5f3ef);
  color: var(--mp-ink, #2c3e2c);
}

.maestro-lead-modal__title {
  margin: 0 0 0.35rem;
  padding-inline: 0.5rem 2rem;
  font-family: var(--mp-font-display, "Rubik", sans-serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  color: var(--mp-ink, #2c3e2c);
}

.maestro-lead-modal__subtitle {
  margin: 0 0 1.25rem;
  padding-inline: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: center;
  color: var(--mp-muted, #666);
}

.maestro-lead-form .form-group {
  margin-bottom: 1rem;
}

.maestro-lead-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mp-ink, #2c3e2c);
}

.maestro-lead-form input,
.maestro-lead-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(44, 38, 32, 0.12);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--mp-ink, #333);
  background: var(--mp-paper, #fff);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.maestro-lead-form input:focus,
.maestro-lead-form textarea:focus {
  outline: none;
  border-color: var(--mp-sage, #5c7c5c);
  box-shadow: 0 0 0 3px rgba(92, 124, 92, 0.15);
}

.maestro-lead-form__submit {
  margin-top: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .maestro-lead-modal__dialog {
    animation: none;
  }
}
