/**
 * Cannamommy — lead capture modal + form.
 */

.cannamommy-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.cannamommy-modal.is-open {
  display: flex !important;
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.cannamommy-modal[hidden]:not(.is-open) {
  display: none !important;
}

body.cannamommy-gated-download-modal-open {
  overflow: hidden;
}

.cannamommy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 24, 40, 0.72);
  backdrop-filter: blur(6px);
}

.cannamommy-modal__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(90vh, 720px);
  overflow-y: auto;
  padding: 32px 32px 36px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #fff;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cannamommy-modal.is-open .cannamommy-modal__panel {
  transform: translateY(0) scale(1);
}

.cannamommy-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  background: #f8f6f3;
  color: #2d2a26;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.cannamommy-modal__title {
  margin: 0 40px 8px 0;
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  line-height: 1.15;
  color: #2d2a26;
}

.cannamommy-modal__subtitle {
  margin: 0 0 24px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #5c574f;
}

.cannamommy-gated-download-form__field {
  margin-bottom: 16px;
  text-align: left;
}

.cannamommy-gated-download-form__field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c574f;
}

.cannamommy-gated-download-form__field input[type="text"],
.cannamommy-gated-download-form__field input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: #fff;
  color: #2d2a26;
  font: inherit;
}

.cannamommy-gated-download-form__interests {
  margin: 20px 0;
  padding: 0;
  border: 0;
  text-align: left;
}

.cannamommy-gated-download-form__interests legend {
  margin-bottom: 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c574f;
}

.cannamommy-gated-download-form__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #2d2a26;
  cursor: pointer;
}

.cannamommy-gated-download-form__check input {
  margin-top: 3px;
}

.cannamommy-gated-download-form__actions {
  margin-top: 20px;
}

.cannamommy-gated-download-form__submit {
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 999px;
  background: #6b4c9a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.cannamommy-gated-download-form__submit:hover {
  background: #5a3f82;
}

.cannamommy-gated-download-form__message {
  margin-top: 12px;
  font-size: 0.875rem;
  color: #5c574f;
}

@media (max-width: 640px) {
  .cannamommy-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .cannamommy-modal__panel {
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
  }
}
