/* ============================================================
   Lead capture modal — shared across index.html and every page.
   Reuses the existing design tokens/radii/shadows from style.css;
   adds only what doesn't already exist (modal chrome, form fields).
   ============================================================ */

.lead-modal{
  position:fixed;
  inset:0;
  z-index:1000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.lead-modal.open{display:flex;}

.lead-modal-overlay{
  position:absolute;
  inset:0;
  background:rgba(22,58,95,0.55);
}

.lead-modal-dialog{
  position:relative;
  background:#fff;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);
  width:100%;
  max-width:560px;
  max-height:90vh;
  overflow-y:auto;
  padding:44px;
}

.lead-modal-close{
  position:absolute;
  top:18px;right:18px;
  width:36px;height:36px;
  border-radius:50%;
  border:1px solid var(--line);
  background:#fff;
  font-size:20px;
  line-height:1;
  color:var(--navy);
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all .2s var(--ease);
}
.lead-modal-close:hover{background:var(--bg);border-color:var(--navy);}

.lead-modal-intro h2{font-size:25px;margin-bottom:8px;}
.lead-modal-intro p{color:var(--muted);font-size:14.5px;margin-bottom:26px;line-height:1.6;}

.lead-field{margin-bottom:16px;}
.lead-field label{
  display:block;
  font-family:'Manrope',sans-serif;
  font-size:12.5px;
  font-weight:600;
  color:var(--navy);
  margin-bottom:6px;
}
.lead-field input[type="text"],
.lead-field input[type="tel"],
.lead-field input[type="email"],
.lead-field select,
.lead-field textarea{
  width:100%;
  padding:12px 14px;
  border:1.5px solid var(--line);
  border-radius:var(--radius-sm);
  font-family:'Inter',sans-serif;
  font-size:14.5px;
  color:var(--text);
  background:#fff;
  transition:border-color .2s;
}
.lead-field input:focus,
.lead-field select:focus,
.lead-field textarea:focus{
  outline:none;
  border-color:var(--primary);
}
.lead-field textarea{resize:vertical;min-height:70px;}

.lead-field-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.lead-field-hp{
  position:absolute;
  left:-9999px;
  top:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

.lead-field-consent{margin-top:22px;margin-bottom:22px;}
.lead-field-consent label{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:12.5px;
  font-weight:500;
  color:var(--muted);
  line-height:1.55;
}
.lead-field-consent input{margin-top:3px;flex-shrink:0;}
.lead-field-consent a{color:var(--primary);text-decoration:underline;}

.lead-form-error{
  background:rgba(178,58,58,0.08);
  border:1px solid rgba(178,58,58,0.25);
  color:#8a2c2c;
  border-radius:var(--radius-sm);
  padding:12px 14px;
  font-size:13.5px;
  line-height:1.5;
  margin-bottom:18px;
}

.lead-submit-btn{width:100%;justify-content:center;}
.lead-submit-btn:disabled{opacity:.6;cursor:not-allowed;}

.lead-form-success{text-align:center;padding:16px 0;}
.lead-form-success h3{font-size:22px;margin-bottom:10px;color:var(--navy);}
.lead-form-success p{color:var(--muted);font-size:14.5px;line-height:1.6;}

body.lead-modal-lock{overflow:hidden;}

@media (max-width:600px){
  .lead-modal{padding:16px;}
  .lead-modal-dialog{padding:30px 22px;}
  .lead-field-row{grid-template-columns:1fr;gap:0;}
}
