[hidden] { display: none !important; }

.button { font-family: inherit; cursor: pointer; }

body.form-open { overflow: hidden; }

.lead-dialog {
  width: min(32rem, calc(100% - 2rem));
  max-height: calc(100svh - 2rem);
  margin: auto;
  padding: 2.25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(111, 255, 184, 0.25);
  border-radius: 1.5rem;
  color: var(--ink);
  background: linear-gradient(145deg, #0b1d13, #07100b 60%);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.5);
}

.lead-dialog::backdrop {
  background: rgba(2, 7, 4, 0.8);
  backdrop-filter: blur(8px);
}

.lead-dialog .eyebrow { margin: 0 2rem 1rem 0; font-size: 0.65rem; }

.lead-dialog h2 {
  margin: 0;
  padding-right: 1rem;
  font-size: clamp(1.65rem, 6vw, 2.1rem);
  letter-spacing: -0.045em;
  line-height: 1.15;
  text-wrap: balance;
}

.form-description {
  margin: 1rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.dialog-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 1.8rem;
  cursor: pointer;
}

.dialog-close:hover { color: white; background: rgba(71, 227, 154, 0.1); }

.lead-dialog button { font-family: inherit; cursor: pointer; }

.lead-dialog button:disabled { cursor: wait; opacity: 0.65; transform: none; }

.lead-dialog :focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.form-field { margin-bottom: 1.1rem; }

.form-field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.form-field label span { color: var(--muted); font-size: 0.8rem; font-weight: 400; }

.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  min-height: 3rem;
  border: 1px solid rgba(111, 255, 184, 0.24);
  border-radius: 0.7rem;
  padding: 0.75rem 0.85rem;
  background: rgba(2, 8, 4, 0.7);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}

.form-field textarea { resize: vertical; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: #809689; font-size: 0.88rem; }
.form-field [aria-invalid="true"] { border-color: #ffaaa7; }

.field-error { margin: 0.45rem 0 0; color: #ffbbb8; font-size: 0.8rem; line-height: 1.4; }

.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.form-purpose,
.form-privacy,
.form-contact,
.form-fallback { color: var(--muted); font-size: 0.78rem; line-height: 1.6; }
.form-purpose { margin: 1.4rem 0 0; }
.form-privacy { margin: 0.5rem 0 0; }
.form-contact { margin: 1rem 0 0; text-align: center; }
.form-contact a,
.form-privacy a,
.form-fallback a { color: var(--green); text-underline-offset: 3px; }
.form-feedback { margin: 0; color: var(--muted); font-size: 0.85rem; line-height: 1.5; }
.form-feedback:not(:empty) { margin: 1rem 0; }
.form-feedback[data-error="true"] { color: #ffbbb8; }
.form-submit { width: 100%; margin-top: 1.3rem; }
.form-feedback:not(:empty) + .form-submit { margin-top: 0; }

.form-success { text-align: center; }
.success-mark {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 1.75rem auto 1.25rem;
  border: 1px solid rgba(71, 227, 154, 0.35);
  border-radius: 50%;
  color: var(--green);
  background: rgba(71, 227, 154, 0.08);
  font-size: 1.5rem;
}

.form-success h3 { margin: 0; font-size: 1.45rem; letter-spacing: -0.03em; }
.form-success p { margin: 0.75rem 0 1.75rem; color: var(--muted); line-height: 1.65; }

@media (max-width: 600px) {
  .lead-dialog { padding: 2rem 1.25rem 1.5rem; border-radius: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .button:hover { transform: none; }
}
