.wa-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 9, 8, 0.65);
  backdrop-filter: blur(3px);
}
.wa-overlay[hidden] { display: none; }
body.wa-open { overflow: hidden; }

.wa-dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 28px 24px 24px;
  border-radius: 16px;
  background: #1e1b17;
  color: #f3ede0;
  border: 1px solid #332e26;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  animation: wa-in 0.22s ease-out;
}
@keyframes wa-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .wa-dialog { animation: none; } }

.wa-dialog h2 { margin: 0 32px 8px 0; font-size: 20px; line-height: 1.25; }
.wa-intro { margin: 0 0 18px; color: #a39a8a; font-size: 14px; line-height: 1.5; }
.wa-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #a39a8a;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.wa-close:hover { color: #f3ede0; background: #2a2620; }

.wa-form { display: flex; flex-direction: column; gap: 14px; }
.wa-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #a39a8a; }
.wa-field input,
.wa-field select {
  width: 100%;
  padding: 12px;
  border: 1px solid #332e26;
  border-radius: 10px;
  background: #141210;
  color: #f3ede0;
  font: inherit;
  font-size: 16px;
}
.wa-field input:focus,
.wa-field select:focus { outline: 2px solid #e9b949; outline-offset: 1px; }
.wa-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wa-error { margin: 0; min-height: 18px; color: #ff8a80; font-size: 13px; }
.wa-note { margin: 0; color: #8a8173; font-size: 12px; line-height: 1.5; }
.wa-note a { color: #e9b949; text-decoration: underline; }

.wa-submit {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-radius: 10px;
  background: #e9b949;
  color: #141210;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.wa-submit:hover { background: #f0c565; }
.wa-done p { margin: 0 0 16px; color: #d8d0c0; font-size: 14px; line-height: 1.5; }
