/* =========================================================
   Lead modal — matches engineered Oasis Defender design system
   ========================================================= */

.lead-modal-overlay{
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(14,17,22,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.lead-modal-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
}

.lead-modal{
  width: 100%;
  max-width: 480px;
  background: #FFFFFF;
  border: 1px solid rgba(14,17,22,.10);
  border-radius: 12px;
  box-shadow: 0 32px 80px rgba(14,17,22,.30);
  overflow: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  transform: translateY(8px);
  transition: transform .2s ease;
}
.lead-modal-overlay.is-open .lead-modal{
  transform: translateY(0);
}

.lead-modal-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(14,17,22,.08);
}
.lead-modal-title{
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #0E1116;
  margin: 0;
}
.lead-modal-close{
  width: 32px;
  height: 32px;
  border: 1px solid rgba(14,17,22,.10);
  background: transparent;
  border-radius: 6px;
  font-size: 18px;
  line-height: 1;
  color: #5A6271;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.lead-modal-close:hover{
  color: #0E1116;
  border-color: rgba(14,17,22,.18);
  background: rgba(14,17,22,.04);
}

.lead-modal-body{
  padding: 22px 24px 24px;
}
.lead-modal-intro{
  font-size: 14px;
  line-height: 1.6;
  color: #5A6271;
  margin: 0 0 18px;
}

.lead-form{
  display: grid;
  gap: 14px;
}
.lead-field{
  display: grid;
  gap: 6px;
}
.lead-field label{
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5A6271;
}
.lead-field input,
.lead-field textarea{
  width: 100%;
  font: inherit;
  font-size: 14.5px;
  color: #0E1116;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(14,17,22,.14);
  background: #FFFFFF;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  font-family: inherit;
}
.lead-field input:focus,
.lead-field textarea:focus{
  border-color: #0F9E89;
  box-shadow: 0 0 0 3px rgba(15,158,137,.16);
}
.lead-field textarea{
  min-height: 88px;
  resize: vertical;
  line-height: 1.5;
}

.lead-modal-actions{
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.lead-modal-actions .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid rgba(14,17,22,.10);
  background: #FFFFFF;
  color: #0E1116;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  font-family: inherit;
}
.lead-modal-actions .btn:hover{
  border-color: rgba(14,17,22,.18);
}
.lead-modal-actions .btn.primary{
  background: #0E1116;
  color: #FFFFFF;
  border-color: #0E1116;
}
.lead-modal-actions .btn.primary:hover{
  background: #0A6657;
  border-color: #0A6657;
}
.lead-modal-actions .btn[disabled]{
  opacity: .55;
  cursor: not-allowed;
}

.lead-modal-status{
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #5A6271;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
.lead-modal-status.success{ color: #0A6657; }
.lead-modal-status.error{ color: #B0413E; }

@media (max-width: 480px){
  .lead-modal-head{ padding: 16px 18px; }
  .lead-modal-body{ padding: 18px 18px 20px; }
  .lead-modal-title{ font-size: 18px; }
  .lead-modal-actions{ flex-direction: column-reverse; }
  .lead-modal-actions .btn{ width: 100%; }
}
