/* Lead-capture modal, opened from the site's existing "Hire me / Let's
   talk / Start a project / Inquire for retainer" buttons in place of the
   dead /project-inquiry link they used to point to. Matches the site's
   dark theme, font, and entrance-easing rather than introducing a new
   visual language. */

.lead-modal_overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-expo, cubic-bezier(0.78, 0, 0.22, 1));
}

.lead-modal_overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lead-modal_dialog {
  width: 100%;
  max-width: 460px;
  background: var(--background-color--background-secondary, #0f0f0f);
  border: 1px solid var(--border-color--border-primary, #222);
  border-radius: 0.75rem;
  padding: 2rem;
  transform: translateY(1.5rem) scale(0.97);
  opacity: 0;
  transition: transform 0.35s var(--ease-expo, cubic-bezier(0.78, 0, 0.22, 1)),
    opacity 0.35s var(--ease-expo, cubic-bezier(0.78, 0, 0.22, 1));
  max-height: 90vh;
  overflow-y: auto;
}

.lead-modal_overlay.is-open .lead-modal_dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.lead-modal_close {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-color--border-primary, #222);
  color: var(--text-color--text-secondary, #aaa);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.lead-modal_close:hover {
  color: var(--text-color--text-primary, #f0f0f0);
  border-color: var(--text-color--text-secondary, #aaa);
}

.lead-modal_dialog h2 {
  font-family: Brockmann, Arial, sans-serif;
  color: var(--text-color--text-primary, #f0f0f0);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 0.4rem;
}

.lead-modal_dialog p.lead-modal_subtitle {
  color: var(--text-color--text-secondary, #aaa);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

.lead-modal_field {
  margin-bottom: 1rem;
}

.lead-modal_field label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-color--text-secondary, #aaa);
  margin-bottom: 0.35rem;
  font-family: Brockmann, Arial, sans-serif;
}

.lead-modal_field input,
.lead-modal_field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: #000;
  border: 1px solid var(--border-color--border-primary, #222);
  border-radius: 0.4rem;
  color: var(--text-color--text-primary, #f0f0f0);
  font-family: Brockmann, Arial, sans-serif;
  font-size: 0.92rem;
  transition: border-color 0.15s ease;
}

.lead-modal_field input:focus,
.lead-modal_field textarea:focus {
  outline: none;
  border-color: var(--text-color--text-secondary, #aaa);
}

.lead-modal_field textarea {
  resize: vertical;
  min-height: 90px;
}

.lead-modal_submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.8rem 1.25rem;
  border: none;
  border-radius: 0.4rem;
  background: var(--text-color--text-primary, #f0f0f0);
  color: #060606;
  font-family: Brockmann, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.lead-modal_submit:hover {
  opacity: 0.88;
}

.lead-modal_submit:active {
  transform: scale(0.98);
}

.lead-modal_submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.lead-modal_message {
  font-size: 0.82rem;
  margin-top: 0.75rem;
  min-height: 1em;
}

.lead-modal_message.is-error {
  color: #e5484d;
}

.lead-modal_message.is-success {
  color: #4ade80;
}

.lead-modal_success {
  text-align: center;
  padding: 1.5rem 0;
}

.lead-modal_success svg {
  margin-bottom: 1rem;
}

.lead-modal_success h3 {
  font-family: Brockmann, Arial, sans-serif;
  color: var(--text-color--text-primary, #f0f0f0);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
}

.lead-modal_success p {
  color: var(--text-color--text-secondary, #aaa);
  font-size: 0.9rem;
  margin: 0;
}
