
/* Lead pop up model */
/* Contractor and customer part */
/* code start */
.lead-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; 
    top: 20px;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
  }

  /* Modal Content */
  .lead-modal-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    height: 80vh;
    max-width: 900px;
    width: 95%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.3s ease;
    position: relative;
    font-family: 'Segoe UI', sans-serif;
    overflow-y: auto;
  }

   @media (max-width:768px) {
    .lead-modal-content{
      top: 20px;
      overflow-y: auto;   
    overflow-x: hidden; 
    max-height: 80vh;
    }
  }
  /* Close Button */
  .lead-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
  }

  .lead-modal-close:hover {
    color: #e74c3c;
  }

  
/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-20px); }
}

/* pop up design */
.FP-card {
      /* width: 850px; */
      max-width: 100%;
      background: #fff;
      border-radius: 14px;
      /* box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px; */
      display: flex;
      overflow-y: auto;
    }
    .FP-drawing-details{
      width: 100%;
      margin-top: 10px;
    }
    .FP-drawing-details img{
      width: 100%;
    }

    .FP-left {
      width: 280px;
      background: #fafafa;
      padding: 10px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      border-right: 1px solid #eee;
    }

    .FP-avatar {
      width: 130px;
      height: 130px;
      border-radius: 50%;
      background: #e0e0e0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      font-size: 28px;
      color: #555;
      margin-bottom: 15px;
      overflow: hidden;
      box-shadow: 0px 0px 15px rgb(141, 141, 141);
    }

    .FP-avatar img {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      object-fit: cover;
    }

    .FP-lead-name {
      text-align: center;
    }

    .FP-lead-name h2 {
      font-size: 22px;
      margin: 0;
      color: #222;
    }

    .FP-lead-name p {
      margin: 6px 0 0;
      font-size: 13px;
      color: #777;
    }

    .FP-right {
      padding: 10px;
      flex: 1;
      font-size: 14px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .FP-header-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
    }

    .FP-id-box {
      font-size: 14px;
      color: #555;
      font-weight: 800;
      padding: 6px 12px;
      border-radius: 6px;
      background: #f7f7f7;
    }

    .FP-status {
      font-size: 13px;
      padding: 6px 14px;
      border-radius: 20px;
      font-weight: 800;
      color: #fff;
    }

    /* Status colors */
    .FP-status[data-status="Accepted"] {
      background: #4caf50;
    }
    .FP-status[data-status="Pending"] {
      background: #ff9800;
    }
    .FP-status[data-status="Rejected"] {
      background: #f44336;
    }
    .FP-status[data-status="In Progress"] ,.FP-status[data-status="Revised"] {
      background: #2196f3;
    }
    .FP-status[data-status="Rescheduled"] {
      background: #d514f3;
    }

    .FP-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px 16px;
    }

    .FP-field {
      background: #fafafa;
      padding: 10px 14px;
      border-radius: 8px;
      border: 1px solid #eee;
    }

    .FP-field .FP-label {
      font-size: 12px;
      color: #777;
      margin-bottom: 2px;
    }

    .FP-field .FP-value {
      font-size: 14px;
      font-weight: 600;
      color: #333;
    }

    .FP-fullwidth {
      grid-column: 1 / -1;
    }

    .drawing-table {
      margin-top: 20px;
      font-size: 13px;
      color: #555;
      background: #fff8e1;
      padding: 14px;
      border-radius: 8px;
      border: 1px solid #f5e0a3;
    }
    .FP-drawing-details>div{
      font-size: 16px;
      font-weight: 500;
    }

    @media (max-width: 700px) {
      .FP-card { flex-direction: column; }
      .FP-left { width: 100%; flex-direction: row; justify-content: center; gap: 20px; border-right: none; border-bottom: 1px solid #eee; padding: 20px; }
      .FP-avatar { margin-bottom: 0; width: 80px; height: 80px; font-size: 20px; }
      .FP-lead-name { text-align: left; }
      .FP-grid { grid-template-columns: 1fr; }
    }

    /* code end */


