.oa-lead-lock {
  overflow: hidden;
}

.oa-lead-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2.4vw, 28px);
  background: rgba(8, 20, 32, 0.46);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.oa-lead-backdrop[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

.oa-lead-modal {
  position: relative;
  width: min(780px, calc(100vw - 32px));
  max-height: min(640px, calc(100dvh - 32px));
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr);
  background: #f8fbfd;
  color: #081420;
  border: 1px solid rgba(9, 37, 60, 0.14);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(8, 20, 32, 0.26);
  transform: translateY(14px) scale(0.985);
  transition: transform 180ms ease;
}

.oa-lead-backdrop[data-open="true"] .oa-lead-modal {
  transform: translateY(0) scale(1);
}

.oa-lead-panel {
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(22px, 3.1vw, 36px);
}

.oa-lead-visual {
  min-height: 100%;
  background-image:
    linear-gradient(180deg, rgba(248, 251, 253, 0.04), rgba(248, 251, 253, 0.52)),
    url("https://open-assets.openanalyst.com/brand/hero/openanalyst-download-sky.webp");
  background-size: cover;
  background-position: 62% 50%;
}

.oa-lead-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #081420;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0 !important;
}

.oa-lead-brand img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  opacity: 1;
  filter: brightness(0) saturate(100%);
}

.oa-lead-title {
  margin: 0;
  max-width: 10ch;
  color: #081420;
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1.02;
  letter-spacing: 0 !important;
  text-wrap: balance;
}

.oa-lead-copy {
  margin: 14px 0 20px;
  max-width: 420px;
  color: #627789;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0 !important;
}

.oa-lead-form {
  display: grid;
  gap: 11px;
  max-width: 420px;
}

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

.oa-lead-field span {
  color: #314355;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0 !important;
}

.oa-lead-field input {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid rgba(9, 37, 60, 0.18);
  border-radius: 8px;
  padding: 10px 13px;
  background: #ffffff;
  color: #081420;
  font: inherit;
  font-size: 15px;
  letter-spacing: 0 !important;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.oa-lead-field input:focus {
  border-color: #81b7dd;
  box-shadow: 0 0 0 4px rgba(129, 183, 221, 0.22);
}

.oa-lead-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  margin-top: 2px;
}

.oa-lead-button {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(9, 37, 60, 0.18);
  border-radius: 999px;
  padding: 0 12px;
  color: #081420;
  background: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0 !important;
  line-height: 1.1;
  white-space: normal;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.oa-lead-button:hover {
  transform: translateY(-1px);
  border-color: rgba(9, 37, 60, 0.34);
}

.oa-lead-button-primary {
  border-color: #081420;
  background: #081420;
  color: #ffffff;
}

.oa-lead-button[disabled] {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.oa-lead-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(9, 37, 60, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #081420;
  cursor: pointer;
  font: inherit;
  font-size: 22px;
  line-height: 1;
}

.oa-lead-status {
  min-height: 20px;
  color: #627789;
  font-size: 12.5px;
  line-height: 1.45;
  letter-spacing: 0 !important;
}

.oa-lead-status[data-tone="error"] {
  color: #8a2b1d;
}

.oa-lead-status[data-tone="success"] {
  color: #1b6b4b;
}

.oa-lead-small {
  margin: 0;
  color: #7b8ea0;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0 !important;
}

.oa-lead-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-height: 720px) and (min-width: 761px) {
  .oa-lead-modal {
    width: min(720px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.58fr);
  }

  .oa-lead-panel {
    padding: 24px 28px;
  }

  .oa-lead-brand {
    margin-bottom: 14px;
  }

  .oa-lead-title {
    font-size: 40px;
  }

  .oa-lead-copy {
    margin: 12px 0 16px;
    font-size: 14px;
  }

  .oa-lead-field input {
    min-height: 42px;
  }

  .oa-lead-button {
    min-height: 42px;
  }
}

@media (max-width: 760px) {
  .oa-lead-backdrop {
    align-items: end;
    padding: 12px;
  }

  .oa-lead-modal {
    width: min(560px, calc(100vw - 24px));
    grid-template-columns: 1fr;
    max-height: calc(100vh - 24px);
  }

  .oa-lead-visual {
    order: -1;
    min-height: 142px;
    background-position: 70% 50%;
  }

  .oa-lead-panel {
    padding: 22px;
  }

  .oa-lead-title {
    max-width: 11ch;
    font-size: 34px;
  }

  .oa-lead-copy,
  .oa-lead-form {
    max-width: none;
  }
}

@media (max-width: 420px) {
  .oa-lead-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oa-lead-backdrop,
  .oa-lead-modal,
  .oa-lead-button,
  .oa-lead-field input {
    transition: none;
  }
}
