
  
    body {
      background: #f5f5f5;
      margin: 0;
      padding: 20px;
      font-family: Arial, sans-serif;
    }
    .container {
      display: flex;
      justify-content: center;
      align-items: flex-start;
      gap: 30px;
      flex-wrap: wrap;
    }
    .form-section, .preview-section {
      background: white;
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
      flex: 1 1 450px;
    }
    .form-group { margin-bottom: 5px; }
    label { font-weight: bold; display: block; margin-bottom: 5px; }
    input, textarea, select { width:92%; padding: 8px; margin-bottom: 5px; border: 1px solid #ddd; }
    textarea { resize: vertical; }
    button {
      padding: 8px 12px;
      background: #4CAF50;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      margin: 5px 0;
    }
    button:hover { background: #45a049; }
    table { width: 100%; border-collapse: collapse; margin-top: 1px; }
    table, th, td { border: 1px solid #ccc; }
    th, td { padding: 0px; text-align: left; }
    .section-title {
      margin-top: 5px;
      font-size: 16px;
      font-weight: bold;
      background:#e0e0e0;
      padding: 5px 10px;
      border-left: px solid #4CAF50;
    }
    .preview-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
    }
    .photo-box {
      width: 70px;
      height: 80px;
      border: 0px solid #ddd;
      overflow: hidden;
    }
    .photo-box img {
      width: 90%;
      height: 90%;
      object-fit: cover;
    }
    .print-btn {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background: #2196F3;
    }
    .print-btn:hover { background: #0b7dda; }
    .personal-info {
      display: flex;
      justify-content: space-between;
      margin-bottom: 15px;
    }
    .signature {
      text-align: right;
      margin-top: 5px;
    }
    .social-share {
      margin-top: 20px;
      text-align: center;
    }
    .social-share a {
      margin: 0 5px;
      display: inline-block;
    }
    @media print {
      body * { visibility: hidden; }
      .preview-section, .preview-section * {
        visibility: visible;
      }
      .preview-section {
        position: absolute;
        top: 0; 
        left: 0; 
        width: 92%;
        padding: 20px;
        background: white;
        box-shadow: none;
      }
      .print-btn, .social-share { display: none; }
      .section-title {
        background-color: #e0e0e0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
      }
    }