.wa-gate {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.wa-gate[hidden] { display: none; }

.wa-gate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 23, 18, 0.55);
  backdrop-filter: blur(2px);
}

.wa-gate__dialog {
  position: relative;
  width: min(100%, 460px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: clamp(24px, 5vw, 40px);
  border-radius: var(--radius, 28px);
  background: var(--white, #fff);
  box-shadow: var(--shadow, 0 24px 80px rgba(76, 26, 11, 0.16));
}

.wa-gate__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(143, 25, 123, 0.08);
  color: var(--purple, #8f197b);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.wa-gate__dialog h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  color: var(--ink, #2b1712);
}

.wa-gate__copy {
  margin: 0 0 22px;
  color: var(--muted, #6d564f);
  line-height: 1.55;
}

.wa-gate__actions {
  display: grid;
  gap: 12px;
}

.wa-gate__form {
  display: grid;
  gap: 16px;
}

.wa-field {
  display: grid;
  gap: 6px;
}

.wa-field label {
  color: var(--ink, #2b1712);
  font-weight: 800;
  font-size: 0.92rem;
}

.wa-field input,
.wa-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(143, 25, 123, 0.18);
  border-radius: 13px;
  color: var(--ink, #2b1712);
  background: #fcfafc;
  font: inherit;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.wa-field input:focus,
.wa-field select:focus {
  border-color: rgba(143, 25, 123, 0.55);
  box-shadow: 0 0 0 4px rgba(143, 25, 123, 0.08);
}
