.lead-modal[hidden],
.lead-toast[hidden] {
  display: none;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 16, 13, 0.78);
}

.lead-modal__panel {
  position: relative;
  width: min(34rem, 100%);
  max-height: min(42rem, calc(100vh - 2rem));
  overflow: auto;
  border: 1px solid rgba(246, 241, 232, 0.16);
  background:
    linear-gradient(180deg, rgba(246, 241, 232, 0.08), rgba(246, 241, 232, 0.02)),
    rgba(17, 16, 13, 0.96);
  color: #f6f1e8;
  box-shadow: 0 32px 90px rgba(17, 16, 13, 0.32);
}

.lead-modal__close {
  border: 0;
  background: transparent;
  color: rgba(246, 241, 232, 0.7);
  cursor: pointer;
}

.lead-honeypot {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-field {
  display: grid;
  gap: 0.5rem;
}

.lead-field label {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.62);
}

.lead-field input {
  width: 100%;
  border: 1px solid rgba(246, 241, 232, 0.16);
  background: rgba(246, 241, 232, 0.04);
  color: #f6f1e8;
  padding: 0.95rem 1rem;
  font: inherit;
}

.lead-field input::placeholder {
  color: rgba(246, 241, 232, 0.34);
}

.lead-field input:focus {
  border-color: rgba(215, 182, 168, 0.8);
}

.lead-modal__close:focus-visible,
.lead-submit:focus-visible,
.lead-field input:focus-visible {
  outline: 2px solid #d7b6a8;
  outline-offset: 3px;
}

.lead-submit {
  border: 0;
  cursor: pointer;
}

.lead-submit[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.lead-status {
  min-height: 1.5rem;
}

.lead-status[data-state='error'] {
  color: #f2b8a9;
}

.lead-status[data-state='success'] {
  color: #d7b6a8;
}

.lead-toast {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 85;
  border: 1px solid rgba(17, 16, 13, 0.1);
  background: rgba(237, 231, 220, 0.96);
  color: #11100d;
  padding: 1rem 1.15rem;
  box-shadow: 0 20px 40px rgba(17, 16, 13, 0.12);
}

body.is-lead-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .lead-modal {
    padding: 1rem;
  }
}
