#jhd29-me-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  padding: 20px;
  box-sizing: border-box;
  pointer-events: none;
}

#jhd29-me-popup-overlay.is-visible {
  display: flex;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.jhd29-me-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 18, 0.62);
  backdrop-filter: blur(4px);
}

.jhd29-me-popup {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  padding: 28px 28px 24px;
  border-radius: 18px;
  background: #ffffff;
  color: #1a1d26;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.jhd29-me-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.jhd29-me-popup__close:hover {
  background: #e5e7eb;
}

.jhd29-me-popup__title {
  margin: 0 36px 12px 0;
  font-size: clamp(22px, 4vw, 28px);
  line-height: 1.2;
  font-weight: 800;
  color: #111827;
}

.jhd29-me-popup__text {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
}

.jhd29-me-popup__label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

.jhd29-me-popup__input {
  width: 100%;
  min-height: 48px;
  margin-bottom: 14px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 16px;
  color: #111827;
  background: #fff;
  box-sizing: border-box;
}

.jhd29-me-popup__input:focus {
  outline: none;
  border-color: #00b894;
  box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.15);
}

.jhd29-me-popup__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #4b5563;
}

.jhd29-me-popup__consent input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.jhd29-me-popup__submit {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #00c9a7, #00a884);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.jhd29-me-popup__submit:hover {
  filter: brightness(1.03);
}

.jhd29-me-popup__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.jhd29-me-popup__message {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
}

.jhd29-me-popup__message.is-error {
  color: #b42318;
}

.jhd29-me-popup__message.is-success {
  color: #027a48;
}

@media (max-width: 480px) {
  .jhd29-me-popup {
    padding: 24px 20px 20px;
    border-radius: 16px;
  }

  .jhd29-me-popup__title {
    font-size: 22px;
  }
}
