.wa-dialog {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(440px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - max(14px, env(safe-area-inset-top)) - max(14px, env(safe-area-inset-bottom)));
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 22px;
  color: #142c47;
  background: #fff;
  box-shadow: 0 24px 64px #10274252;
}

.wa-dialog:not([open]) { display: none; }

.wa-dialog::backdrop {
  background: rgb(20 39 62 / 66%);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.wa-dialog-content { padding: clamp(18px, 5.5vw, 28px); }

.wa-dialog-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.wa-dialog-avatar {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 28%;
}

.wa-dialog-identity {
  margin: 0;
  color: #23405c;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.wa-dialog-close {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef2f6;
  color: #142c47;
  font: 400 25px/1 Inter, sans-serif;
  cursor: pointer;
}

.wa-dialog-close:hover { background: #e0e8f0; }

.wa-dialog h2 {
  margin: 0 0 8px;
  color: #142c47;
  font: 650 clamp(22px, 5.8vw, 28px)/1.18 Inter, sans-serif;
  letter-spacing: -.025em;
  text-transform: none;
}

.wa-dialog h2:focus { outline: none; }

.wa-dialog-intro {
  margin: 0 0 18px;
  color: #495d70;
  font-size: 14px;
  line-height: 1.5;
}

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

.wa-field label {
  display: block;
  margin-bottom: 5px;
  color: #142c47;
  font-size: 13px;
  font-weight: 650;
}

.wa-field input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid #bccbd8;
  border-radius: 9px;
  background: #fff;
  color: #142c47;
  font: 400 16px Inter, sans-serif;
}

.wa-field input::placeholder { color: #627284; }
.wa-field input[aria-invalid="true"] { border-color: #a12941; }

.wa-field-error {
  margin: 4px 0 0;
  color: #a12941;
  font-size: 12px;
}

.wa-lead-form .btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 10px;
  border-radius: 9px;
  background: #10783b;
  color: #fff;
  font: 650 15px/1.25 Inter, sans-serif;
  text-align: center;
}

.wa-lead-form .btn-wa:hover {
  background: #0d6432;
  filter: none;
}

.wa-lead-form .btn-wa svg {
  flex: none;
  width: 18px;
  height: 18px;
}

.wa-dialog button:focus-visible,
.wa-field input:focus-visible {
  outline: 2px solid #1265a0;
  outline-offset: 2px;
}

.wa-form-note {
  margin: 0;
  color: #495d70;
  font-size: 12px;
  line-height: 1.45;
}

.wa-form-note a {
  color: #145d92;
  text-underline-offset: 2px;
}
