/* ── Modal overlay ─────────────────────────────────────────── */
  #pdf-lead-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9998;
    align-items: center;
    justify-content: center;
  }
  #pdf-lead-overlay.active { display: flex; }
 
  /* ── Modal box ──────────────────────────────────────────────── */
  #pdf-lead-modal {
    background: #fff;
    border-radius: 12px;
    padding: 36px 32px 28px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    position: relative;
    animation: modalIn .22s ease;
    z-index: 9999;
  }
  @keyframes modalIn {
    from { opacity:0; transform:translateY(-18px); }
    to   { opacity:1; transform:translateY(0);     }
  }
 
  #pdf-lead-modal h2 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
  }
  #pdf-lead-modal p.subtitle {
    margin: 0 0 22px;
    font-size: .875rem;
    color: #666;
  }
 
  /* ── Close button ───────────────────────────────────────────── */
  #pdf-lead-modal .modal-close {
    position: absolute;
    top: 14px; right: 16px;
    background: none;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background .15s, color .15s;
  }
  #pdf-lead-modal .modal-close:hover { background:#f0f0f0; color:#333; }
 
  /* ── Form fields ─────────────────────────────────────────────── */
  .lead-field { margin-bottom: 16px; }
  .lead-field label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .04em;
  }
  .lead-field input {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid #d8d8d8;
    border-radius: 8px;
    font-size: .95rem;
    color: #1a1a2e;
    transition: border-color .18s, box-shadow .18s;
    box-sizing: border-box;
    outline: none;
  }
  .lead-field input:focus {
    border-color: #e8651a;
    box-shadow: 0 0 0 3px rgba(232,101,26,.15);
  }
  .lead-field input.error { border-color: #e53e3e; }
 
  .field-error {
    color: #e53e3e;
    font-size: .78rem;
    margin-top: 4px;
    display: none;
  }
 
  /* ── Submit button ───────────────────────────────────────────── */
  #lead-submit-btn {
    width: 100%;
    padding: 12px;
    background: #e8651a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    letter-spacing: .03em;
    transition: background .18s, transform .1s;
  }
  #lead-submit-btn:hover:not(:disabled) { background: #c9560f; }
  #lead-submit-btn:active:not(:disabled) { transform: scale(.98); }
  #lead-submit-btn:disabled { opacity: .65; cursor: not-allowed; }
 
  /* ── Status message ──────────────────────────────────────────── */
  #lead-status {
    margin-top: 12px;
    font-size: .875rem;
    text-align: center;
    min-height: 20px;
    color: #e53e3e;
  }
  #lead-status.success { color: #2f855a; }