body {
    font-family: Arial, sans-serif;
    background-color: #f3f3f3;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
  }

  .form-container {
    
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 5px 10px 15px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px; /* Maximum width for the container */
    text-align: center;
    margin: 10px; /* Adds margin for better spacing on smaller devices */
   
  }
  .receipt-container{
    background-color:white ;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid gray;
    width: 100%;
    max-width: 400px; /* Maximum width for the container */
    text-align: center;
    margin: 10px;
  }
  h1,
  h2 {
    margin-bottom: 20px;
    color: #333;
  }

  .form-group {
    margin-bottom: 15px;
    text-align: left;
  }

  label {
    font-weight: bold;
    color: #555;
  }

  input {
    width: calc(100% - 20px);
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 5px;
    font-size: 17px;
  }

  .btn-primary {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    font-weight: bold;
  }

  .btn-primary:hover {
    background-color: #0056b3;
  }

  .receipt {
    text-align: left;
    margin-bottom: 20px;
    background-image: url("/stamp.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 2.8rem 6.5rem;
  }

  .field {
    margin-bottom: 10px;
    padding: 5px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
  }

  .field label {
    font-weight: bold;
    color: #555;
  }

  .field span {
    color: #333;
  }

  /* Responsive Styles for Mobile Devices */
  @media (max-width: 768px) {
    body {
      padding: 10px; /* Reduce padding for smaller screens */
    }

    .form-container,
    .receipt-container {
      width: 100%;
      padding: 15px;
      margin: 5px;
    }

    input {
      width: calc(100% - 15px); /* Adjust width to fit smaller screens */
      padding: 10px;
    }

    .btn-primary {
      padding: 12px 20px; /* Increase padding for better tap targets */
      width: 100%;
      font-size: 20px;
    }

    .receipt {
      text-align: left;
      margin-bottom: 10px; /* Adjust margin for better spacing */
      
    }

    .field {
      flex-direction: column; /* Stack fields vertically */
      align-items: flex-start;
    }

    .field label,
    .field span {
      margin-bottom: 5px; /* Add space between label and value */
    }
  }

  /* Responsive Styles for Very Small Mobile Devices */
  @media (max-width: 480px) {
    .form-container,
    .receipt-container {
      width: 100%;
      padding: 10px;
    }

    .btn-primary {
      padding: 10px;
      font-size: 20px; /* Increase font size for better readability */
    }

    .field {
      margin-bottom: 15px; /* Add more space between fields */
    }

    input {
      padding: 12px; /* Increase input padding */
    }
  }